Loading...
Loading...
Verify Kibana Lens chart UI settings against the source code. Use when documenting chart types, reviewing chart settings accuracy, or checking UI labels and rendering order for Lens visualizations (bar, line, area, pie, treemap, mosaic, waffle, tag cloud, heat map, gauge, metric, region map, table).
npx skill4agent add elastic/elastic-docs-skills docs-lens-chart-settingsdefaultMessageLegendSettingsx-pack/platform/plugins/shared/lens/public/visualizations/partition/
├── partition_charts_meta.ts # Per-chart config (toolbar options, legend config)
├── toolbar/
│ ├── style_settings.tsx # Orchestrates Style panel sections
│ ├── titles_and_text_settings.tsx # Slice labels + Slice values options
│ ├── appearance_settings.tsx # Donut hole (pie/donut only)
│ └── legend_settings.tsx # Partition-specific legend wrapperx-pack/platform/plugins/shared/lens/public/shared_components/legend/
├── legend_settings.tsx # Main legend settings (Visibility, Size, Truncation, Nested, Stats)
├── location/legend_location_settings.tsx # Position (only when `location` prop is defined)
└── size/legend_size_settings.tsx # Width/Size dropdownvisualizations/visualizations/xy/visualizations/heatmap/visualizations/gauge/visualizations/metric/visualizations/tagcloud/partition_charts_meta.tstoolbar.categoryOptionstoolbar.numberOptionstoolbar.emptySizeRatioOptionstoolbar.isDisabledlegend.defaultLegendStatslegend.hideNestedLegendSwitchlegend.getShowLegendDefaultmaxBucketstoolbar/style_settings.tsxemptySizeRatioOptionsPartitionTitlesAndTextSettingstoolbar/titles_and_text_settings.tsxcategoryOptionsxpack.lens.pieChart.labelSliceLabelsnumberOptionsxpack.lens.pieChart.sliceValuesnumberDisplay === 'percent'categoryOptionsnumberOptionsisDisabledtoolbar/legend_settings.tsxLegendSettings| Prop | What it controls | How to verify |
|---|---|---|
| Visibility options (Auto/Show/Hide) | Always present for all partition charts |
| Only renders if | Partition charts do NOT pass |
| Nested toggle | |
| Statistics/Show value | Only if |
| Width dropdown | Renders if |
| Label truncation toggle | Always present when legend not hidden |
| Auto in size dropdown | Only for pre-8.3 visualizations |
legend_settings.tsxlocationlocationallowedLegendStats.length > 1labelinputDisplay| What you might assume | Actual UI label | Source |
|---|---|---|
| "Labels" | "Slice labels" | |
| "Values" | "Slice values" | |
| "Legend size" | "Width" | |
| "Truncate" | "Label truncation" | |
| "Max lines" | "Line limit" | |
| "Show" (legend) | "Show" | |
| Feature | Pie/Donut | Treemap | Mosaic | Waffle |
|---|---|---|---|---|
| Slice labels | Hide/Inside/Auto | Hide/Show | (none) | (none) |
| Slice values | Hide/Integer/Percentage | Hide/Integer/Percentage | Hide/Integer/Percentage | (none) |
| Donut hole | Yes | No | No | No |
| Style panel disabled | No | No | No | Yes |
| Legend Position | No | No | No | No |
| Legend Width | Yes | Yes | Yes | Yes |
| Nested legend | Yes (>1 group) | Yes (>1 group) | Yes (>1 group) | No |
| Show value | No | No | No | Yes |
| Statistics | No | No | No | No |
| Default legend visibility | Auto shows when >1 bucket | Auto hides | Auto hides | Auto shows always |
| Max Group by dimensions | 3 | 2 | 2 | 1 |
| Color mapping | First Group by only | First Group by only | Vertical axis | Group by |
defaultLegendStatsemptySizeRatioOptionshideNestedLegendSwitch !== true