@progress/kendo-react-charts 13.3.0-develop.9 → 13.4.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseChart.d.ts +137 -0
- package/BaseChartProps.d.ts +207 -0
- package/Chart.d.ts +86 -0
- package/ChartBreadcrumb.d.ts +49 -0
- package/ChartBreadcrumb.js +1 -1
- package/ChartBreadcrumb.mjs +1 -2
- package/ChartContext.d.ts +24 -0
- package/ChartNoDataOverlay.d.ts +30 -0
- package/ChartProps.d.ts +17 -0
- package/Container.d.ts +15 -0
- package/DonutCenter.d.ts +45 -0
- package/Sparkline.d.ts +92 -0
- package/SparklineProps.d.ts +21 -0
- package/StockChart.d.ts +47 -0
- package/StockChartProps.d.ts +26 -0
- package/api-types/axis-range.interface.d.ts +20 -0
- package/api-types/chart-axis.interface.d.ts +43 -0
- package/api-types/chart-drilldown-state.interface.d.ts +31 -0
- package/api-types/chart-pane.interface.d.ts +21 -0
- package/api-types/chart-plotarea.interface.d.ts +21 -0
- package/api-types/event-axis-options.interface.d.ts +16 -0
- package/api-types/event-series-options.interface.d.ts +24 -0
- package/api-types/series-point.interface.d.ts +45 -0
- package/argument-types/axis-label-visual-args.interface.d.ts +50 -0
- package/argument-types/axis-note-visual-args.interface.d.ts +34 -0
- package/argument-types/drilldown-series-factory-props.interface.d.ts +24 -0
- package/argument-types/error-bars-visual-args.interface.d.ts +38 -0
- package/argument-types/highlight-toggle-args.interface.d.ts +41 -0
- package/argument-types/highlight-visual-args.interface.d.ts +58 -0
- package/argument-types/legend-item-visual-args.interface.d.ts +34 -0
- package/argument-types/legend-labels-content-args.interface.d.ts +28 -0
- package/argument-types/markers-visual-args.interface.d.ts +46 -0
- package/argument-types/plot-band-label-visual-args.interface.d.ts +34 -0
- package/argument-types/series-labels-visual-args.interface.d.ts +34 -0
- package/argument-types/series-note-visual-args.interface.d.ts +50 -0
- package/argument-types/series-visual-args.interface.d.ts +83 -0
- package/argument-types/title-visual-args.interface.d.ts +34 -0
- package/common/api-types.d.ts +15 -0
- package/common/charts.d.ts +12 -0
- package/common/events.d.ts +29 -0
- package/common/property-types.d.ts +140 -0
- package/components/AxisDefaults.d.ts +26 -0
- package/components/CategoryAxis.d.ts +25 -0
- package/components/CategoryAxisItem.d.ts +27 -0
- package/components/ChartArea.d.ts +22 -0
- package/components/Legend.d.ts +26 -0
- package/components/Navigator.d.ts +26 -0
- package/components/Pane.d.ts +22 -0
- package/components/PaneDefaults.d.ts +26 -0
- package/components/Panes.d.ts +25 -0
- package/components/PlotArea.d.ts +19 -0
- package/components/Series.d.ts +25 -0
- package/components/SeriesDefaults.d.ts +22 -0
- package/components/SeriesItem.d.ts +34 -0
- package/components/Subtitle.d.ts +19 -0
- package/components/Title.d.ts +19 -0
- package/components/Tooltip.d.ts +29 -0
- package/components/ValueAxis.d.ts +25 -0
- package/components/ValueAxisItem.d.ts +26 -0
- package/components/XAxis.d.ts +25 -0
- package/components/XAxisItem.d.ts +26 -0
- package/components/YAxis.d.ts +25 -0
- package/components/YAxisItem.d.ts +20 -0
- package/components/Zoomable.d.ts +19 -0
- package/components/axis-defaults/Crosshair.d.ts +26 -0
- package/components/axis-defaults/CrosshairTooltip.d.ts +19 -0
- package/components/axis-defaults/Labels.d.ts +19 -0
- package/components/axis-defaults/Title.d.ts +19 -0
- package/components/axis-defaults/index.d.ts +12 -0
- package/components/base/CollectionConfigurationComponent.d.ts +27 -0
- package/components/base/ConfigurationComponent.d.ts +33 -0
- package/components/category-axis-item/Crosshair.d.ts +26 -0
- package/components/category-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/category-axis-item/Labels.d.ts +19 -0
- package/components/category-axis-item/Notes.d.ts +25 -0
- package/components/category-axis-item/NotesIcon.d.ts +19 -0
- package/components/category-axis-item/NotesLabel.d.ts +19 -0
- package/components/category-axis-item/RangeLabels.d.ts +19 -0
- package/components/category-axis-item/Select.d.ts +14 -0
- package/components/category-axis-item/Title.d.ts +19 -0
- package/components/category-axis-item/index.d.ts +17 -0
- package/components/index.d.ts +42 -0
- package/components/legend/InactiveItems.d.ts +19 -0
- package/components/legend/Item.d.ts +19 -0
- package/components/legend/Title.d.ts +20 -0
- package/components/legend/index.d.ts +11 -0
- package/components/navigator/CategoryAxis.d.ts +23 -0
- package/components/navigator/Hint.d.ts +20 -0
- package/components/navigator/Pane.d.ts +22 -0
- package/components/navigator/Select.d.ts +19 -0
- package/components/navigator/Series.d.ts +25 -0
- package/components/navigator/SeriesItem.d.ts +23 -0
- package/components/navigator/category-axis/Crosshair.d.ts +22 -0
- package/components/navigator/category-axis/CrosshairTooltip.d.ts +19 -0
- package/components/navigator/category-axis/Labels.d.ts +19 -0
- package/components/navigator/category-axis/Notes.d.ts +19 -0
- package/components/navigator/category-axis/NotesIcon.d.ts +19 -0
- package/components/navigator/category-axis/NotesLabel.d.ts +19 -0
- package/components/navigator/category-axis/Select.d.ts +14 -0
- package/components/navigator/category-axis/Title.d.ts +19 -0
- package/components/navigator/category-axis/index.d.ts +16 -0
- package/components/navigator/index.d.ts +17 -0
- package/components/navigator/pane/Title.d.ts +19 -0
- package/components/navigator/pane/index.d.ts +9 -0
- package/components/navigator/series-item/ErrorBars.d.ts +19 -0
- package/components/navigator/series-item/Extremes.d.ts +19 -0
- package/components/navigator/series-item/Highlight.d.ts +19 -0
- package/components/navigator/series-item/Labels.d.ts +22 -0
- package/components/navigator/series-item/LabelsFrom.d.ts +19 -0
- package/components/navigator/series-item/LabelsTo.d.ts +19 -0
- package/components/navigator/series-item/Markers.d.ts +19 -0
- package/components/navigator/series-item/Notes.d.ts +22 -0
- package/components/navigator/series-item/NotesIcon.d.ts +19 -0
- package/components/navigator/series-item/NotesLabel.d.ts +19 -0
- package/components/navigator/series-item/Outliers.d.ts +19 -0
- package/components/navigator/series-item/Tooltip.d.ts +27 -0
- package/components/navigator/series-item/index.d.ts +20 -0
- package/components/pane/Title.d.ts +19 -0
- package/components/pane/index.d.ts +9 -0
- package/components/pane-defaults/Title.d.ts +19 -0
- package/components/pane-defaults/index.d.ts +9 -0
- package/components/series-defaults/Labels.d.ts +22 -0
- package/components/series-defaults/LabelsFrom.d.ts +19 -0
- package/components/series-defaults/LabelsTo.d.ts +19 -0
- package/components/series-defaults/Notes.d.ts +22 -0
- package/components/series-defaults/NotesIcon.d.ts +19 -0
- package/components/series-defaults/NotesLabel.d.ts +19 -0
- package/components/series-defaults/Tooltip.d.ts +27 -0
- package/components/series-defaults/index.d.ts +15 -0
- package/components/series-item/ErrorBars.d.ts +19 -0
- package/components/series-item/Extremes.d.ts +19 -0
- package/components/series-item/Highlight.d.ts +19 -0
- package/components/series-item/Labels.d.ts +26 -0
- package/components/series-item/LabelsFrom.d.ts +19 -0
- package/components/series-item/LabelsTo.d.ts +19 -0
- package/components/series-item/Markers.d.ts +19 -0
- package/components/series-item/Notes.d.ts +22 -0
- package/components/series-item/NotesIcon.d.ts +19 -0
- package/components/series-item/NotesLabel.d.ts +19 -0
- package/components/series-item/Outliers.d.ts +19 -0
- package/components/series-item/Tooltip.d.ts +27 -0
- package/components/series-item/index.d.ts +20 -0
- package/components/value-axis-item/Crosshair.d.ts +26 -0
- package/components/value-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/value-axis-item/Labels.d.ts +19 -0
- package/components/value-axis-item/Notes.d.ts +26 -0
- package/components/value-axis-item/NotesIcon.d.ts +19 -0
- package/components/value-axis-item/NotesLabel.d.ts +19 -0
- package/components/value-axis-item/Title.d.ts +19 -0
- package/components/value-axis-item/index.d.ts +15 -0
- package/components/x-axis-item/Crosshair.d.ts +26 -0
- package/components/x-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/x-axis-item/Labels.d.ts +19 -0
- package/components/x-axis-item/Notes.d.ts +26 -0
- package/components/x-axis-item/NotesIcon.d.ts +19 -0
- package/components/x-axis-item/NotesLabel.d.ts +19 -0
- package/components/x-axis-item/Title.d.ts +19 -0
- package/components/x-axis-item/index.d.ts +15 -0
- package/components/y-axis-item/Crosshair.d.ts +26 -0
- package/components/y-axis-item/CrosshairTooltip.d.ts +19 -0
- package/components/y-axis-item/Labels.d.ts +19 -0
- package/components/y-axis-item/Notes.d.ts +22 -0
- package/components/y-axis-item/NotesIcon.d.ts +19 -0
- package/components/y-axis-item/NotesLabel.d.ts +19 -0
- package/components/y-axis-item/Title.d.ts +19 -0
- package/components/y-axis-item/index.d.ts +15 -0
- package/defaults.d.ts +8 -0
- package/dist/cdn/js/kendo-react-charts.js +1 -1
- package/events/axis-label-click-event.d.ts +39 -0
- package/events/base-event.d.ts +21 -0
- package/events/chart-event-builder.d.ts +13 -0
- package/events/dom-event.d.ts +26 -0
- package/events/drag-end-event.d.ts +29 -0
- package/events/drag-event.d.ts +29 -0
- package/events/drag-start-event.d.ts +29 -0
- package/events/drilldown-event.d.ts +45 -0
- package/events/drilldown-state-change-event.d.ts +29 -0
- package/events/legend-item-click-event.d.ts +39 -0
- package/events/legend-item-hover-event.d.ts +39 -0
- package/events/legend-item-leave-event.d.ts +39 -0
- package/events/navigator-filter-event.d.ts +26 -0
- package/events/note-click-event.d.ts +39 -0
- package/events/note-hover-event.d.ts +39 -0
- package/events/plot-area-click-event.d.ts +38 -0
- package/events/plot-area-hover-event.d.ts +38 -0
- package/events/preventable-event.d.ts +25 -0
- package/events/render-event.d.ts +18 -0
- package/events/select-end-event.d.ts +31 -0
- package/events/select-event.d.ts +31 -0
- package/events/select-start-event.d.ts +31 -0
- package/events/series-click-event.d.ts +52 -0
- package/events/series-hover-event.d.ts +56 -0
- package/events/zoom-end-event.d.ts +31 -0
- package/events/zoom-event.d.ts +35 -0
- package/events/zoom-start-event.d.ts +29 -0
- package/field-types/auto-base-unit-steps.interface.d.ts +46 -0
- package/field-types/axis-labels-position.d.ts +24 -0
- package/field-types/axis-line.interface.d.ts +29 -0
- package/field-types/axis-ticks.interface.d.ts +36 -0
- package/field-types/axis-title-position.d.ts +24 -0
- package/field-types/base-unit.d.ts +36 -0
- package/field-types/border.interface.d.ts +31 -0
- package/field-types/bullet-target-line.interface.d.ts +16 -0
- package/field-types/bullet-target.interface.d.ts +26 -0
- package/field-types/category-base-unit.d.ts +37 -0
- package/field-types/dash-type.d.ts +30 -0
- package/field-types/date-formats.interface.d.ts +46 -0
- package/field-types/drag-action.interface.d.ts +22 -0
- package/field-types/error-bar-line.interface.d.ts +21 -0
- package/field-types/grid-lines.interface.d.ts +37 -0
- package/field-types/highlight-line.interface.d.ts +29 -0
- package/field-types/label-connectors.interface.d.ts +24 -0
- package/field-types/label-rotation.interface.d.ts +26 -0
- package/field-types/legend-labels.interface.d.ts +35 -0
- package/field-types/line-style.d.ts +30 -0
- package/field-types/lock-axis.d.ts +11 -0
- package/field-types/margin.interface.d.ts +28 -0
- package/field-types/marker-type.d.ts +33 -0
- package/field-types/modifier-key.d.ts +11 -0
- package/field-types/mousewheel-select.interface.d.ts +25 -0
- package/field-types/mousewheel-zoom.interface.d.ts +25 -0
- package/field-types/negative-bubble-values.interface.d.ts +20 -0
- package/field-types/note-label-position.d.ts +31 -0
- package/field-types/note-line.interface.d.ts +29 -0
- package/field-types/note-position.d.ts +31 -0
- package/field-types/overlay.interface.d.ts +22 -0
- package/field-types/padding.interface.d.ts +13 -0
- package/field-types/plot-band-label.interface.d.ts +94 -0
- package/field-types/plot-band.interface.d.ts +37 -0
- package/field-types/series-labels-position.d.ts +23 -0
- package/field-types/series-line.interface.d.ts +35 -0
- package/field-types/series-stack.interface.d.ts +24 -0
- package/field-types/series-type.d.ts +31 -0
- package/field-types/trendline-forecast.interface.d.ts +20 -0
- package/field-types/week-start-day.enum.d.ts +40 -0
- package/index.d.mts +32 -9258
- package/index.d.ts +32 -9258
- package/messages.d.ts +17 -0
- package/methods/index.d.ts +43 -0
- package/option-types/axis-crosshair-tooltip.interface.d.ts +42 -0
- package/option-types/axis-defaults/crosshair.interface.d.ts +48 -0
- package/option-types/axis-defaults/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/axis-defaults/labels.interface.d.ts +76 -0
- package/option-types/axis-defaults/title.interface.d.ts +74 -0
- package/option-types/axis-defaults.interface.d.ts +80 -0
- package/option-types/category-axis-item/crosshair.interface.d.ts +47 -0
- package/option-types/category-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/category-axis-item/labels.interface.d.ts +110 -0
- package/option-types/category-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/category-axis-item/notes.interface.d.ts +52 -0
- package/option-types/category-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/category-axis-item/range-labels.interface.d.ts +31 -0
- package/option-types/category-axis-item/select.interface.d.ts +33 -0
- package/option-types/category-axis-item/title.interface.d.ts +72 -0
- package/option-types/category-axis-item.interface.d.ts +166 -0
- package/option-types/chart-area.interface.d.ts +37 -0
- package/option-types/legend/inactive-items.interface.d.ts +17 -0
- package/option-types/legend/item.interface.d.ts +124 -0
- package/option-types/legend/legend-title.interface.d.ts +68 -0
- package/option-types/legend.interface.d.ts +106 -0
- package/option-types/navigator/hint.interface.d.ts +25 -0
- package/option-types/navigator/select.interface.d.ts +25 -0
- package/option-types/navigator.interface.d.ts +44 -0
- package/option-types/pane/title.interface.d.ts +65 -0
- package/option-types/pane-defaults/title.interface.d.ts +59 -0
- package/option-types/pane-defaults.interface.d.ts +46 -0
- package/option-types/pane.interface.d.ts +53 -0
- package/option-types/plot-area.interface.d.ts +33 -0
- package/option-types/series-defaults/labels.from.interface.d.ts +58 -0
- package/option-types/series-defaults/labels.interface.d.ts +80 -0
- package/option-types/series-defaults/labels.to.interface.d.ts +58 -0
- package/option-types/series-defaults/notes.icon.interface.d.ts +39 -0
- package/option-types/series-defaults/notes.interface.d.ts +43 -0
- package/option-types/series-defaults/notes.label.interface.d.ts +53 -0
- package/option-types/series-defaults/tooltip.interface.d.ts +48 -0
- package/option-types/series-defaults.interface.d.ts +103 -0
- package/option-types/series-item/error-bars.interface.d.ts +64 -0
- package/option-types/series-item/extremes.interface.d.ts +39 -0
- package/option-types/series-item/highlight.interface.d.ts +74 -0
- package/option-types/series-item/labels.from.interface.d.ts +74 -0
- package/option-types/series-item/labels.interface.d.ts +109 -0
- package/option-types/series-item/labels.to.interface.d.ts +72 -0
- package/option-types/series-item/markers.interface.d.ts +72 -0
- package/option-types/series-item/notes.icon.interface.d.ts +39 -0
- package/option-types/series-item/notes.interface.d.ts +53 -0
- package/option-types/series-item/notes.label.interface.d.ts +53 -0
- package/option-types/series-item/outliers.interface.d.ts +39 -0
- package/option-types/series-item/tooltip.interface.d.ts +49 -0
- package/option-types/series-item/trendline.interface.d.ts +37 -0
- package/option-types/series-item.interface.d.ts +492 -0
- package/option-types/subtitle.interface.d.ts +68 -0
- package/option-types/title.interface.d.ts +66 -0
- package/option-types/tooltip-border.interface.d.ts +22 -0
- package/option-types/tooltip.interface.d.ts +56 -0
- package/option-types/value-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/value-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/value-axis-item/labels.interface.d.ts +88 -0
- package/option-types/value-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/value-axis-item/notes.interface.d.ts +52 -0
- package/option-types/value-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/value-axis-item/title.interface.d.ts +73 -0
- package/option-types/value-axis-item.interface.d.ts +121 -0
- package/option-types/x-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/x-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/x-axis-item/labels.interface.d.ts +95 -0
- package/option-types/x-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/x-axis-item/notes.interface.d.ts +53 -0
- package/option-types/x-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/x-axis-item/title.interface.d.ts +72 -0
- package/option-types/x-axis-item.interface.d.ts +142 -0
- package/option-types/y-axis-item/crosshair.interface.d.ts +33 -0
- package/option-types/y-axis-item/crosshair.tooltip.interface.d.ts +13 -0
- package/option-types/y-axis-item/labels.interface.d.ts +95 -0
- package/option-types/y-axis-item/notes.icon.interface.d.ts +39 -0
- package/option-types/y-axis-item/notes.interface.d.ts +52 -0
- package/option-types/y-axis-item/notes.label.interface.d.ts +53 -0
- package/option-types/y-axis-item/title.interface.d.ts +73 -0
- package/option-types/y-axis-item.interface.d.ts +138 -0
- package/option-types/zoomable.interface.d.ts +21 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +6 -6
- package/sankey/Sankey.d.ts +13 -0
- package/sankey/SankeyTooltip.d.ts +12 -0
- package/sankey/index.d.ts +11 -0
- package/sankey/messages.d.ts +17 -0
- package/sankey/propTypes.d.ts +226 -0
- package/sankey/theme-service.d.ts +12 -0
- package/sankey/types.d.ts +206 -0
- package/sankey/utils.d.ts +12 -0
- package/store/reducer.d.ts +21 -0
- package/store/store.d.ts +32 -0
- package/tooltip/Context.d.ts +36 -0
- package/tooltip/Crosshair.d.ts +44 -0
- package/tooltip/CrosshairContainer.d.ts +35 -0
- package/tooltip/Point.d.ts +78 -0
- package/tooltip/Popup.d.ts +39 -0
- package/tooltip/Series.d.ts +42 -0
- package/tooltip/SharedTooltipContent.d.ts +19 -0
- package/tooltip/index.d.ts +10 -0
- package/utils/index.d.ts +20 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Border, NoteLabelPosition } from '../../common/property-types.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface CategoryAxisNotesLabel {
|
|
13
|
+
/**
|
|
14
|
+
* The background color of the label. Accepts a valid CSS color string, including hex and rgb.
|
|
15
|
+
*/
|
|
16
|
+
background?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The border of the label.
|
|
19
|
+
*/
|
|
20
|
+
border?: Border;
|
|
21
|
+
/**
|
|
22
|
+
* The text color of the label. Accepts a valid CSS color string, including hex and rgb.
|
|
23
|
+
*/
|
|
24
|
+
color?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The function which returns the label content. The function argument contains a `value` field and defines the category value. You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
27
|
+
*/
|
|
28
|
+
content?: (e: any) => string;
|
|
29
|
+
/**
|
|
30
|
+
* The font style of the label.
|
|
31
|
+
*/
|
|
32
|
+
font?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The format for displaying the notes label. Uses the [`format`](https://www.telerik.com/kendo-react-ui/components/intl/api/intlservice#toc-format) method of IntlService. Contains one placeholder (`"{0}"`) which represents the category value.
|
|
35
|
+
*/
|
|
36
|
+
format?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The position of the label.
|
|
39
|
+
*
|
|
40
|
+
* The available options are:
|
|
41
|
+
* - `"inside"`—The label is positioned inside the icon.
|
|
42
|
+
* - `"outside"`—The label is positioned outside the icon.
|
|
43
|
+
*/
|
|
44
|
+
position?: NoteLabelPosition;
|
|
45
|
+
/**
|
|
46
|
+
* The rotation angle of the label. By default, the label is not rotated.
|
|
47
|
+
*/
|
|
48
|
+
rotation?: number;
|
|
49
|
+
/**
|
|
50
|
+
* If set to `true`, the Chart displays the category notes label. By default, the category notes label is visible.
|
|
51
|
+
*/
|
|
52
|
+
visible?: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AxisLabelsPosition } from '../../common/property-types.js';
|
|
9
|
+
import { CategoryAxisLabels } from './labels.interface.js';
|
|
10
|
+
/**
|
|
11
|
+
* The configuration options of the category axis date range labels.
|
|
12
|
+
*/
|
|
13
|
+
export interface CategoryAxisRangeLabels extends CategoryAxisLabels {
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
position?: AxisLabelsPosition;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
skip?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
step?: number;
|
|
26
|
+
/**
|
|
27
|
+
* If set to `true`, the Chart displays the category axis date range labels.
|
|
28
|
+
* By default, the category axis date range labels are not visible.
|
|
29
|
+
*/
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { MousewheelSelect } from '../../common/property-types.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface CategoryAxisSelect {
|
|
13
|
+
/**
|
|
14
|
+
* The lower boundary of the selected range.
|
|
15
|
+
*/
|
|
16
|
+
from?: any;
|
|
17
|
+
/**
|
|
18
|
+
* The maximum value which the user can select.
|
|
19
|
+
*/
|
|
20
|
+
max?: any;
|
|
21
|
+
/**
|
|
22
|
+
* The minimum value which the user can select.
|
|
23
|
+
*/
|
|
24
|
+
min?: any;
|
|
25
|
+
/**
|
|
26
|
+
* The mousewheel configuration of the selection. If set to `false`, the mousewheel does not update the selection.
|
|
27
|
+
*/
|
|
28
|
+
mousewheel?: boolean | MousewheelSelect;
|
|
29
|
+
/**
|
|
30
|
+
* The upper boundary of the selected range. The category with the specified index (date) is not included in the selected range unless the axis is justified. To select all categories, set a value that is larger than the last category index (date).
|
|
31
|
+
*/
|
|
32
|
+
to?: any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { drawing } from '@progress/kendo-drawing';
|
|
9
|
+
import { AxisTitlePosition, Border, Margin, Padding, TitleVisualArgs } from '../../common/property-types.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface CategoryAxisTitle {
|
|
14
|
+
/**
|
|
15
|
+
* The background color of the title. Accepts a valid CSS color string, including hex and rgb.
|
|
16
|
+
*/
|
|
17
|
+
background?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The border of the title.
|
|
20
|
+
*/
|
|
21
|
+
border?: Border;
|
|
22
|
+
/**
|
|
23
|
+
* The text color of the title. Accepts a valid CSS color string, including hex and rgb.
|
|
24
|
+
*/
|
|
25
|
+
color?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The font style of the title.
|
|
28
|
+
*/
|
|
29
|
+
font?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The margin of the title. A numeric value sets all margins.
|
|
32
|
+
*/
|
|
33
|
+
margin?: Margin | number;
|
|
34
|
+
/**
|
|
35
|
+
* The padding of the title. A numeric value sets all paddings.
|
|
36
|
+
*/
|
|
37
|
+
padding?: Padding | number;
|
|
38
|
+
/**
|
|
39
|
+
* The position of the title.
|
|
40
|
+
*
|
|
41
|
+
* The supported values are:
|
|
42
|
+
* - `"top"`—The axis title is positioned on the top (applicable to the vertical axis).
|
|
43
|
+
* - `"bottom"`—The axis title is positioned on the bottom (applicable to the vertical axis).
|
|
44
|
+
* - `"left"`—The axis title is positioned on the left (applicable to the horizontal axis).
|
|
45
|
+
* - `"right"`—The axis title is positioned on the right (applicable to the horizontal axis).
|
|
46
|
+
* - `"center"`—The axis title is positioned in the center.
|
|
47
|
+
*/
|
|
48
|
+
position?: AxisTitlePosition;
|
|
49
|
+
/**
|
|
50
|
+
* The rotation angle of the title. By default, the title is not rotated.
|
|
51
|
+
*/
|
|
52
|
+
rotation?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The text of the title. The text can be split into multiple lines by using the line feed characters (`"\n"`).
|
|
55
|
+
*/
|
|
56
|
+
text?: string;
|
|
57
|
+
/**
|
|
58
|
+
* If set to `true`, the Chart displays the category axis title. By default, the category axis title is visible.
|
|
59
|
+
*/
|
|
60
|
+
visible?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* A function that can be used to create a custom visual for the title.
|
|
63
|
+
*
|
|
64
|
+
* The available argument fields are:
|
|
65
|
+
* - `text`—The label text.
|
|
66
|
+
* - `rect`—The geometry [`Rect`](https://www.telerik.com/kendo-react-ui/components/drawing/api/geometry/rect) that defines where the visual has to be rendered.
|
|
67
|
+
* - `sender`—The Chart instance (can be `undefined`).
|
|
68
|
+
* - `options`—The label options.
|
|
69
|
+
* - `createVisual`—A function for getting the default visual.
|
|
70
|
+
*/
|
|
71
|
+
visual?: (e: TitleVisualArgs) => drawing.Element;
|
|
72
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { AutoBaseUnitSteps, AxisLine, AxisTicks, CategoryBaseUnit, GridLines, PlotBand, WeekStartDay } from '../common/property-types.js';
|
|
9
|
+
import { CategoryAxisCrosshair } from './category-axis-item/crosshair.interface.js';
|
|
10
|
+
import { CategoryAxisLabels } from './category-axis-item/labels.interface.js';
|
|
11
|
+
import { CategoryAxisNotes } from './category-axis-item/notes.interface.js';
|
|
12
|
+
import { CategoryAxisRangeLabels } from './category-axis-item/range-labels.interface.js';
|
|
13
|
+
import { CategoryAxisSelect } from './category-axis-item/select.interface.js';
|
|
14
|
+
import { CategoryAxisTitle } from './category-axis-item/title.interface.js';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface CategoryAxis {
|
|
19
|
+
/**
|
|
20
|
+
* The time-interval steps when `baseUnit` is set either to `"fit"` or `"auto"`. The axis will try to divide the active period into the smallest possible units that yield `maxDateGroups` or less discrete intervals.
|
|
21
|
+
*/
|
|
22
|
+
autoBaseUnitSteps?: AutoBaseUnitSteps;
|
|
23
|
+
/**
|
|
24
|
+
* The category index or the date (for date category axis) at which the first value axis crosses this axis. The category indices or the date (for date category axis) at which the value axes cross the category axis (when set as an array). To denote the far end of the axis, set an index greater than or equal to the number of categories.
|
|
25
|
+
*/
|
|
26
|
+
axisCrossingValue?: any | any[];
|
|
27
|
+
/**
|
|
28
|
+
* The background color of the axis.
|
|
29
|
+
*/
|
|
30
|
+
background?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The base time interval for the date axis ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#toc-selecting-time-intervals)). The default base unit is automatically determined by the minimum difference between subsequent categories.
|
|
33
|
+
*
|
|
34
|
+
* The supported values are:
|
|
35
|
+
* - `"fit"`
|
|
36
|
+
* - `"milliseconds"`
|
|
37
|
+
* - `"seconds"`
|
|
38
|
+
* - `"minutes"`
|
|
39
|
+
* - `"hours"`
|
|
40
|
+
* - `"days"`
|
|
41
|
+
* - `"weeks"`
|
|
42
|
+
* - `"months"`
|
|
43
|
+
* - `"years"`
|
|
44
|
+
*
|
|
45
|
+
* Setting `baseUnit` to `"fit"` sets such a base unit and [`categoryAxis.baseUnitStep`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-baseunitstep) that the total number of categories does not exceed [`categoryAxis.maxDateGroups`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-maxdategroups).
|
|
46
|
+
*
|
|
47
|
+
* Series data is aggregated for the specified base unit by using the [`series.aggregate`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-aggregate) function.
|
|
48
|
+
*/
|
|
49
|
+
baseUnit?: CategoryBaseUnit;
|
|
50
|
+
/**
|
|
51
|
+
* The step (interval) between the categories in base units ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#toc-selecting-time-intervals)). Setting it to `"auto"` sets the step to such a value that the total number of categories does not exceed [`categoryAxis.maxDateGroups`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-maxdategroups). The option is ignored if [`categoryAxis.baseUnit`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-baseunit) is set to `"fit"`.
|
|
52
|
+
*/
|
|
53
|
+
baseUnitStep?: number | 'auto';
|
|
54
|
+
/**
|
|
55
|
+
* The category names. The Chart creates a category for every item of the array.
|
|
56
|
+
*/
|
|
57
|
+
categories?: any[];
|
|
58
|
+
/**
|
|
59
|
+
* The color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb. Can be overridden by [`categoryAxis.labels.color`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxislabelsprops#toc-color) and [`categoryAxis.line.color`](https://www.telerik.com/kendo-react-ui/components/charts/api/axisline#toc-color).
|
|
60
|
+
*/
|
|
61
|
+
color?: string;
|
|
62
|
+
/**
|
|
63
|
+
* If set to `true`, the Chart positions categories and series points on major ticks. This removes the empty space before and after the series. The default value is `false` except for `"area"`, `"verticalArea"`, `"rangeArea"`, and `"verticalRangeArea"`. The option is ignored if the [`series.type`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-type) option is set to `"bar"`, `"column"`, `"boxPlot"`, `"ohlc"`, `"candlestick"`, or `"waterfall"`.
|
|
64
|
+
*/
|
|
65
|
+
justified?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* The configuration of the axis lines. Also affects the major and minor ticks, but not the grid lines.
|
|
68
|
+
*/
|
|
69
|
+
line?: AxisLine;
|
|
70
|
+
/**
|
|
71
|
+
* The configuration of the major grid lines. These are the lines that are an extension of the major ticks through the body of the Chart.
|
|
72
|
+
*/
|
|
73
|
+
majorGridLines?: GridLines;
|
|
74
|
+
/**
|
|
75
|
+
* The configuration of the category axis major ticks.
|
|
76
|
+
*/
|
|
77
|
+
majorTicks?: AxisTicks;
|
|
78
|
+
/**
|
|
79
|
+
* The last date displayed on a date category axis or the index of the last category displayed on a category axis ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/styling#toc-limiting-the-displayed-range)). By default, the max value is the same as the last category. This is often used in combination with the [`categoryAxis.min`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-min) and [`categoryAxis.roundToBaseUnit`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-roundtobaseunit) options to set up a fixed date range.
|
|
80
|
+
*/
|
|
81
|
+
max?: any;
|
|
82
|
+
/**
|
|
83
|
+
* The maximum number of groups (categories) to display when [`categoryAxis.baseUnit`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-baseunit) is set to `"fit"` or [`categoryAxis.baseUnitStep`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-baseunitstep) is set to `"auto"`([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#toc-selecting-time-intervals)).
|
|
84
|
+
*/
|
|
85
|
+
maxDateGroups?: number;
|
|
86
|
+
/**
|
|
87
|
+
* The maximum number of ticks and labels to display. Applicabable for date category axis ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#toc-limiting-the-number-of-labels)).
|
|
88
|
+
*/
|
|
89
|
+
maxDivisions?: number;
|
|
90
|
+
/**
|
|
91
|
+
* The first date which is displayed on a date category axis or the index of the first category which is displayed on a category axis ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/styling#toc-limiting-the-displayed-range)). By default, the min value is the same as the first category. This is often used in combination with the [`categoryAxis.max`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-max) and [`categoryAxis.roundToBaseUnit`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxisitemprops#toc-roundtobaseunit) options to set up a fixed date range.
|
|
92
|
+
*/
|
|
93
|
+
min?: any;
|
|
94
|
+
/**
|
|
95
|
+
* The configuration of the minor grid lines. These are the lines that are an extension of the minor ticks through the body of the Chart.
|
|
96
|
+
*/
|
|
97
|
+
minorGridLines?: GridLines;
|
|
98
|
+
/**
|
|
99
|
+
* The configuration of the category axis minor ticks.
|
|
100
|
+
*/
|
|
101
|
+
minorTicks?: AxisTicks;
|
|
102
|
+
/**
|
|
103
|
+
* The unique axis name. Used to associate a series with a category axis, which utilizes the [`series.categoryAxis`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartseriesitemprops#toc-categoryaxis) option.
|
|
104
|
+
*/
|
|
105
|
+
name?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The configuration of the date axis date range labels.
|
|
108
|
+
*/
|
|
109
|
+
rangeLabels?: CategoryAxisRangeLabels;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the pane in which the category axis has to be rendered. If not set, the axis will be rendered in the first (default) pane.
|
|
112
|
+
*/
|
|
113
|
+
pane?: string;
|
|
114
|
+
/**
|
|
115
|
+
* The plot bands of the category axis.
|
|
116
|
+
*/
|
|
117
|
+
plotBands?: PlotBand[];
|
|
118
|
+
/**
|
|
119
|
+
* If set to `true`, the category axis direction is reversed. By default, categories are listed from left to right and from bottom to top.
|
|
120
|
+
*/
|
|
121
|
+
reverse?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* If set to `true`, the Chart rounds the first and last date to the nearest base unit.
|
|
124
|
+
*/
|
|
125
|
+
roundToBaseUnit?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* The angle (degrees) of the first category on the axis. Angles increase clockwise with zero to the left. Negative values are acceptable.
|
|
128
|
+
*/
|
|
129
|
+
startAngle?: number;
|
|
130
|
+
/**
|
|
131
|
+
* The category axis type.
|
|
132
|
+
*
|
|
133
|
+
* The supported values are:
|
|
134
|
+
* - `"category"`—Discrete category axis.
|
|
135
|
+
* - `"date"`—Specialized axis for displaying chronological data.
|
|
136
|
+
*/
|
|
137
|
+
type?: 'category' | 'date';
|
|
138
|
+
/**
|
|
139
|
+
* If set to `true`, the Chart displays the category axis. By default, the category axis is visible.
|
|
140
|
+
*/
|
|
141
|
+
visible?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* The week start day when the `baseUnit` is set to `"weeks"`.
|
|
144
|
+
*/
|
|
145
|
+
weekStartDay?: WeekStartDay;
|
|
146
|
+
/**
|
|
147
|
+
* The configuration options of the crosshair. The crosshair is displayed when the [`categoryAxis.crosshair.visible`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxiscrosshairprops#toc-visible) option is set to `true`.
|
|
148
|
+
*/
|
|
149
|
+
crosshair?: CategoryAxisCrosshair;
|
|
150
|
+
/**
|
|
151
|
+
* The configuration of the axis labels.
|
|
152
|
+
*/
|
|
153
|
+
labels?: CategoryAxisLabels;
|
|
154
|
+
/**
|
|
155
|
+
* The configuration of the category axis notes.
|
|
156
|
+
*/
|
|
157
|
+
notes?: CategoryAxisNotes;
|
|
158
|
+
/**
|
|
159
|
+
* The selected axis range ([see example](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/selection)). If set, the axis selection is enabled. The range is index-based, starting from zero. Categories with indexes in the range (`select.from`, `select.to`) will be selected. That is, the last category in the range will not be included in the selection. If the categories are dates, the range has to be also specified with date values. Selection is only supported if the axis is horizontal.v
|
|
160
|
+
*/
|
|
161
|
+
select?: CategoryAxisSelect;
|
|
162
|
+
/**
|
|
163
|
+
* The title configuration of the category axis. To display the title, set the [`categoryAxis.title.text`](https://www.telerik.com/kendo-react-ui/components/charts/api/chartcategoryaxistitleprops#toc-text) option.
|
|
164
|
+
*/
|
|
165
|
+
title?: CategoryAxisTitle;
|
|
166
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Border, Margin } from '../common/property-types.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ChartingArea {
|
|
13
|
+
/**
|
|
14
|
+
* The background color of the Chart area. Accepts a valid CSS color string, including hex and rgb.
|
|
15
|
+
*/
|
|
16
|
+
background?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The border of the Chart area.
|
|
19
|
+
*/
|
|
20
|
+
border?: Border;
|
|
21
|
+
/**
|
|
22
|
+
* The height of the Chart area.
|
|
23
|
+
*/
|
|
24
|
+
height?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The margin of the Chart area. A numeric value sets all margins.
|
|
27
|
+
*/
|
|
28
|
+
margin?: Margin | number;
|
|
29
|
+
/**
|
|
30
|
+
* The background opacity of the Chart area. By default, the background is opaque.
|
|
31
|
+
*/
|
|
32
|
+
opacity?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The width of the Chart area.
|
|
35
|
+
*/
|
|
36
|
+
width?: number;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { LegendLabels } from '../../common/property-types.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface LegendInactiveItems {
|
|
13
|
+
/**
|
|
14
|
+
* The label configuration of the Chart legend.
|
|
15
|
+
*/
|
|
16
|
+
labels?: LegendLabels;
|
|
17
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { drawing } from '@progress/kendo-drawing';
|
|
9
|
+
import { Border, DashType, LegendItemVisualArgs } from '../../common/property-types.js';
|
|
10
|
+
import { SeriesMarkers } from './../series-item/markers.interface.js';
|
|
11
|
+
/**
|
|
12
|
+
* The configuration of the Chart legend item.
|
|
13
|
+
*/
|
|
14
|
+
export interface LegendItem {
|
|
15
|
+
/**
|
|
16
|
+
* The cursor style of the legend item.
|
|
17
|
+
*/
|
|
18
|
+
cursor?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Sets the type of the legend item.
|
|
21
|
+
* The default value is based on the series type.
|
|
22
|
+
*/
|
|
23
|
+
type?: LegendItemType;
|
|
24
|
+
/**
|
|
25
|
+
* Sets the configuration of the legend items of type `line`.
|
|
26
|
+
* This is the default legend item type for all line and scatter series.
|
|
27
|
+
*/
|
|
28
|
+
line?: LegendItemLine;
|
|
29
|
+
/**
|
|
30
|
+
* Sets the configuration of the legend items of type `area`.
|
|
31
|
+
* By default, all series except line and scatter use this legend type.
|
|
32
|
+
*/
|
|
33
|
+
area?: LegendItemArea;
|
|
34
|
+
/**
|
|
35
|
+
* The markers configuration of the legend item.
|
|
36
|
+
* Defaults to the series options.
|
|
37
|
+
*/
|
|
38
|
+
markers?: LegendItemMarkers;
|
|
39
|
+
/**
|
|
40
|
+
* The highlight configuration of the legend item.
|
|
41
|
+
*/
|
|
42
|
+
highlight?: LegendItemHighlight;
|
|
43
|
+
/**
|
|
44
|
+
* A function for creating a custom visual for the legend items.
|
|
45
|
+
*
|
|
46
|
+
* The available argument fields are:
|
|
47
|
+
* - `options`—The item options.
|
|
48
|
+
* - `createVisual`—A function for getting the default visual.
|
|
49
|
+
* - `series`—The item series.
|
|
50
|
+
* - `pointIndex`—The index of the point in the series. Available for the Pie, Donut, and Funnel series.
|
|
51
|
+
*/
|
|
52
|
+
visual?: (e: LegendItemVisualArgs) => drawing.Element;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The configuration of the Chart legend item markers border.
|
|
56
|
+
*/
|
|
57
|
+
export interface LegendItemMarkersBorder extends Omit<Border, 'width'> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The configuration of the Chart legend item markers.
|
|
61
|
+
*/
|
|
62
|
+
export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
|
|
63
|
+
/**
|
|
64
|
+
* The border of the markers.
|
|
65
|
+
*/
|
|
66
|
+
border?: LegendItemMarkersBorder;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The configuration of the Chart legend item highlight state.
|
|
70
|
+
*/
|
|
71
|
+
export interface LegendItemHighlight {
|
|
72
|
+
/**
|
|
73
|
+
* If set to `false`, the hover effect of the legend item is disabled.
|
|
74
|
+
*/
|
|
75
|
+
visible?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The `markers` configuration of the legend item when it is hovered.
|
|
78
|
+
*/
|
|
79
|
+
markers?: LegendItemMarkers;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The configuration of the Chart legend item of type `line`.
|
|
83
|
+
* Defaults to the series options.
|
|
84
|
+
*/
|
|
85
|
+
export interface LegendItemLine {
|
|
86
|
+
/**
|
|
87
|
+
* The color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
|
|
88
|
+
* Defaults to the series color.
|
|
89
|
+
*/
|
|
90
|
+
color?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The opacity of the legend item.
|
|
93
|
+
* Defaults to the series opacity.
|
|
94
|
+
*/
|
|
95
|
+
opacity?: number;
|
|
96
|
+
/**
|
|
97
|
+
* The dash type of the legend item.
|
|
98
|
+
* Defaults to the series dash type.
|
|
99
|
+
*/
|
|
100
|
+
dashType?: DashType;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The configuration of the Chart legend items of type `area`.
|
|
104
|
+
* Defaults to the series options.
|
|
105
|
+
*/
|
|
106
|
+
export interface LegendItemArea {
|
|
107
|
+
/**
|
|
108
|
+
* The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
|
|
109
|
+
* Defaults to the series color.
|
|
110
|
+
*/
|
|
111
|
+
background?: string;
|
|
112
|
+
/**
|
|
113
|
+
* The opacity of the legend item.
|
|
114
|
+
* Defaults to the series opacity.
|
|
115
|
+
*/
|
|
116
|
+
opacity?: number;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The type of the Chart legend item.
|
|
120
|
+
*
|
|
121
|
+
* - `"line"`—the legend items are rendered as a line. This is the default value for line charts.
|
|
122
|
+
* - `"area"`—the legend items are rendered as a filled rectangle. This is the default value for area charts.
|
|
123
|
+
*/
|
|
124
|
+
export type LegendItemType = 'line' | 'area';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Element } from '@progress/kendo-drawing';
|
|
9
|
+
import { Border, Margin, Padding, TitleVisualArgs } from '../../common/property-types.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface LegendTitle {
|
|
14
|
+
/**
|
|
15
|
+
* The alignment of the title.
|
|
16
|
+
*
|
|
17
|
+
* The available options are:
|
|
18
|
+
* - `"center"`—The text is aligned to the middle.
|
|
19
|
+
* - `"left"`—The text is aligned to the left.
|
|
20
|
+
* - `"right"`—The text is aligned to the right.
|
|
21
|
+
*/
|
|
22
|
+
align?: 'center' | 'left' | 'right';
|
|
23
|
+
/**
|
|
24
|
+
* The background color of the title. Accepts a valid CSS color string, including hex and rgb.
|
|
25
|
+
*/
|
|
26
|
+
background?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The border of the title.
|
|
29
|
+
*/
|
|
30
|
+
border?: Border;
|
|
31
|
+
/**
|
|
32
|
+
* The text color of the title. Accepts a valid CSS color string, including hex and rgb.
|
|
33
|
+
*/
|
|
34
|
+
color?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The font of the title.
|
|
37
|
+
*/
|
|
38
|
+
font?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The margin of the title. A numeric value sets all margins.
|
|
41
|
+
*/
|
|
42
|
+
margin?: Margin | number;
|
|
43
|
+
/**
|
|
44
|
+
* The padding of the title. A numeric value sets all margins.
|
|
45
|
+
*/
|
|
46
|
+
padding?: Padding | number;
|
|
47
|
+
/**
|
|
48
|
+
* The position of the title.
|
|
49
|
+
*
|
|
50
|
+
* The available options are:
|
|
51
|
+
* - `"bottom"`—The title is positioned beneath the legend.
|
|
52
|
+
* - `"top"`—The title is positioned above the legend.
|
|
53
|
+
*/
|
|
54
|
+
position?: 'top' | 'bottom';
|
|
55
|
+
/**
|
|
56
|
+
* The text of the title.
|
|
57
|
+
* You can split the text into multiple lines by using the line feed characters ("\n").
|
|
58
|
+
*/
|
|
59
|
+
text?: string;
|
|
60
|
+
/**
|
|
61
|
+
* If set to `true`, the Chart displays the Legend title. By default, the title is displayed.
|
|
62
|
+
*/
|
|
63
|
+
visible?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* A function for creating a custom visual for the title.
|
|
66
|
+
*/
|
|
67
|
+
visual?: (args: TitleVisualArgs) => Element;
|
|
68
|
+
}
|