/kx-dashboards-knowledge:kx-piefrom kx-dashboards-knowledge
Generates a KX Dashboards PieJS pie or donut chart component for proportional segment visualization, categorical composition, and share-of-total breakdowns.
Ships in kx-dashboards-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
key: "PieJS" · definitionId: "1009" · version: "v2.3.0.1"
Also read kx-dashboard-core for: envelope, screen/widget wrapper, data sources, ViewState, binding patterns, actions, notifications, and the pre-flight checklist.
This skill uses progressive disclosure: the hazards, workflow, field summary, and output checklist are here; the full JSON schema blocks, field tables, the 30-value Animations easing list, and the worked example live in reference/. Read only the reference file relevant to your current step.
| File | Read it when you need… |
|---|---|
| reference/component-schema.md | The canonical options object plus every sub-section schema and field table — Basics, DataSet, Layers, HighlightRules, Legend, InnerLabel, Style, the full Animations easing list, Padding, and FileExport. |
| reference/examples.md | The copy-ready Minimal Working Example (donut chart). |
DataSet.Layers is an array — each layer maps one data column to a pie segment. At least one layer is required.DataSet.Label is the categorical column (segment labels). DataSet.Layers[n].Segment is the numeric value column. They must be different columns.DonutRatio: 0 for a standard pie chart; any value above 0 makes it a donut.possibleLabels / possibleColumns are auto-populated by the UI — always emit as [] or [""] when building from scratch.Basics.Focus and Basics.Selected expect ViewState paths (not literal values).Style.chartBarColors drives the segment colour palette. Supply at least as many colours as there are unique label values, or segments will cycle and repeat.HighlightRules override the layer colour for matching rows — evaluated in order, first match wins.DataSet.DonutRatio: 0 for a solid pie, or a value 1–100 for a donut. If the user wants a KPI/gauge, stop and use kx-gauge; for line/bar/area, use kx-chartgl.DataSet.Label = the categorical column (segment labels); DataSet.Layers[0].Segment = the numeric value column. They must be different columns.options with Basics, DataSet, Legend, Style, InnerLabel, Padding, Animations, FileExport. Full schema and field tables in reference/component-schema.md.Style.chartBarColors with at least as many colours as there are unique label values (see Hazards).Basics.Focus/Basics.Selected ViewState paths for cross-filtering, and Basics.Actions for click/hover behaviour (see kx-actions).reference/examples.md and adapt it.| Section | Purpose |
|---|---|
Basics | Data source, theme, Focus/Selected ViewState, click actions |
DataSet | Label column, donut ratio, rotation, data layers |
DataSet.Layers | Array of value columns with colours and conditional formatting |
Legend | Legend display, position, interaction mode |
InnerLabel | Segment labels, donut centre text, value formatting |
Style | Colour palette (chartBarColors), advanced CSS, tooltip template |
Animations | Chart animation easing and duration |
Padding | Chart canvas padding |
FileExport | CSV / Excel / PNG export buttons |
Before returning the JSON, verify:
key is "PieJS" and definitionId is the string "1009"DataSet.Layers is a non-empty array with at least one layerDataSet.Label (categorical) and each Layers[n].Segment (numeric) are different columnsDonutRatio is 0 for a pie, or 1–100 for a donutStyle.chartBarColors has at least as many entries as unique label valuesBasics.Focus / Basics.Selected are ViewState paths, not literal valuespossibleLabels / possibleColumns emitted as [] or [""]id fields are unique UUIDs across the dashboardWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kxsystems/kx-skills --plugin kx-dashboards-knowledge32 skills in this plugin
/kx-accordionUse this when the user wants collapsible or expandable sections in a KX Dashboards layout. Use it for section-based content organization; use kx-tabs for tabbed switching and kx-flex-panel for non-collapsible flexible layout containers./kx-actionsUse this alongside a component skill when adding KX Dashboards interactions such as clicks, hovers, row selection, navigation, or data-source re-execution. It defines how actions are attached and triggered, not the base component itself./kx-basiccomponents-containersUse this for KX Dashboards layout containers and navigation primitives such as panels, navigation menus, and overlay drawers. Use it for structural layout needs; use kx-tabs for tabbed switching, kx-accordion for collapsible sections, and kx-flex-panel for fixed-plus-flex layouts.Other plugins' skills for the same job