@progress/kendo-angular-charts 21.4.1-develop.1 → 22.0.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/chart/localization/messages.d.ts +1 -1
- package/chart/tooltip/base-tooltip.d.ts +1 -1
- package/common/collection-item.component.d.ts +1 -1
- package/common/collection.component.d.ts +1 -1
- package/common/settings.component.d.ts +1 -1
- package/events/base-event.d.ts +1 -1
- package/events/preventable-event.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-charts.mjs +482 -482
- package/package.json +13 -21
- package/sankey/localization/messages.d.ts +1 -1
- package/esm2022/api-types/axis-range.interface.mjs +0 -5
- package/esm2022/api-types/chart-axis.interface.mjs +0 -5
- package/esm2022/api-types/chart-pane.interface.mjs +0 -5
- package/esm2022/api-types/chart-plotarea.interface.mjs +0 -5
- package/esm2022/api-types/chart-svg-export-options.interface.mjs +0 -5
- package/esm2022/api-types/chart-visual-export-options.interface.mjs +0 -5
- package/esm2022/api-types/event-axis-options.interface.mjs +0 -5
- package/esm2022/api-types/event-series-options.interface.mjs +0 -5
- package/esm2022/api-types/series-point-marker.interface.mjs +0 -5
- package/esm2022/api-types/series-point.interface.mjs +0 -5
- package/esm2022/argument-types/axis-label-content-args.interface.mjs +0 -5
- package/esm2022/argument-types/axis-label-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/axis-note-content-args.interface.mjs +0 -5
- package/esm2022/argument-types/axis-note-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/error-bars-value-args.interface.mjs +0 -5
- package/esm2022/argument-types/error-bars-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/highlight-toggle-args.interface.mjs +0 -5
- package/esm2022/argument-types/highlight-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/legend-item-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/legend-labels-content-args.interface.mjs +0 -5
- package/esm2022/argument-types/markers-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/plot-band-label-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/series-labels-content-args.interface.mjs +0 -5
- package/esm2022/argument-types/series-labels-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/series-note-content-args.interface.mjs +0 -5
- package/esm2022/argument-types/series-note-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/series-visual-args.interface.mjs +0 -5
- package/esm2022/argument-types/title-visual-args.interface.mjs +0 -5
- package/esm2022/chart/axis-defaults/crosshair.component.mjs +0 -77
- package/esm2022/chart/axis-defaults/crosshair.tooltip.component.mjs +0 -82
- package/esm2022/chart/axis-defaults/labels.component.mjs +0 -111
- package/esm2022/chart/axis-defaults/title.component.mjs +0 -103
- package/esm2022/chart/axis-defaults.component.mjs +0 -152
- package/esm2022/chart/category-axis-item/crosshair.component.mjs +0 -76
- package/esm2022/chart/category-axis-item/crosshair.tooltip.component.mjs +0 -80
- package/esm2022/chart/category-axis-item/labels.component.mjs +0 -149
- package/esm2022/chart/category-axis-item/notes.component.mjs +0 -67
- package/esm2022/chart/category-axis-item/notes.icon.component.mjs +0 -60
- package/esm2022/chart/category-axis-item/notes.label.component.mjs +0 -91
- package/esm2022/chart/category-axis-item/range-labels.component.mjs +0 -32
- package/esm2022/chart/category-axis-item/select.component.mjs +0 -60
- package/esm2022/chart/category-axis-item/title.component.mjs +0 -103
- package/esm2022/chart/category-axis-item.component.mjs +0 -265
- package/esm2022/chart/category-axis.component.mjs +0 -67
- package/esm2022/chart/chart-area.component.mjs +0 -81
- package/esm2022/chart/donut-center-template.directive.mjs +0 -35
- package/esm2022/chart/legend/inactive-items.component.mjs +0 -46
- package/esm2022/chart/legend/item.component.mjs +0 -82
- package/esm2022/chart/legend.component.mjs +0 -181
- package/esm2022/chart/localization/custom-messages.component.mjs +0 -51
- package/esm2022/chart/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/chart/localization/messages.mjs +0 -27
- package/esm2022/chart/no-data-template.directive.mjs +0 -35
- package/esm2022/chart/pane/title.component.mjs +0 -88
- package/esm2022/chart/pane-defaults/title.component.mjs +0 -84
- package/esm2022/chart/pane-defaults.component.mjs +0 -87
- package/esm2022/chart/pane.component.mjs +0 -101
- package/esm2022/chart/panes.component.mjs +0 -55
- package/esm2022/chart/plot-area.component.mjs +0 -68
- package/esm2022/chart/series-defaults/labels.component.mjs +0 -122
- package/esm2022/chart/series-defaults/labels.from.component.mjs +0 -90
- package/esm2022/chart/series-defaults/labels.to.component.mjs +0 -90
- package/esm2022/chart/series-defaults/notes.component.mjs +0 -68
- package/esm2022/chart/series-defaults/notes.icon.component.mjs +0 -62
- package/esm2022/chart/series-defaults/notes.label.component.mjs +0 -90
- package/esm2022/chart/series-defaults/tooltip.component.mjs +0 -76
- package/esm2022/chart/series-defaults.component.mjs +0 -125
- package/esm2022/chart/series-drilldown-template.directive.mjs +0 -36
- package/esm2022/chart/series-item/error-bars.component.mjs +0 -74
- package/esm2022/chart/series-item/extremes.component.mjs +0 -64
- package/esm2022/chart/series-item/highlight.component.mjs +0 -79
- package/esm2022/chart/series-item/labels.component.mjs +0 -157
- package/esm2022/chart/series-item/labels.from.component.mjs +0 -96
- package/esm2022/chart/series-item/labels.to.component.mjs +0 -96
- package/esm2022/chart/series-item/markers.component.mjs +0 -98
- package/esm2022/chart/series-item/notes.component.mjs +0 -76
- package/esm2022/chart/series-item/notes.icon.component.mjs +0 -64
- package/esm2022/chart/series-item/notes.label.component.mjs +0 -95
- package/esm2022/chart/series-item/outliers.component.mjs +0 -66
- package/esm2022/chart/series-item/tooltip.component.mjs +0 -83
- package/esm2022/chart/series-item/trendline.component.mjs +0 -75
- package/esm2022/chart/series-item/trendline.forecast.component.mjs +0 -51
- package/esm2022/chart/series-item.component.mjs +0 -754
- package/esm2022/chart/series.component.mjs +0 -67
- package/esm2022/chart/subtitle.component.mjs +0 -108
- package/esm2022/chart/title.component.mjs +0 -119
- package/esm2022/chart/tooltip/base-tooltip.mjs +0 -101
- package/esm2022/chart/tooltip/body-factory.mjs +0 -14
- package/esm2022/chart/tooltip/crosshair-tooltip.component.mjs +0 -72
- package/esm2022/chart/tooltip/crosshair-tooltips-container.component.mjs +0 -115
- package/esm2022/chart/tooltip/popup-settings.interface.mjs +0 -5
- package/esm2022/chart/tooltip/series-tooltip-template.directive.mjs +0 -59
- package/esm2022/chart/tooltip/shared-tooltip-template.directive.mjs +0 -71
- package/esm2022/chart/tooltip/tooltip-popup.component.mjs +0 -250
- package/esm2022/chart/tooltip/tooltip-template-point.mjs +0 -105
- package/esm2022/chart/tooltip.component.mjs +0 -107
- package/esm2022/chart/value-axis-item/crosshair.component.mjs +0 -84
- package/esm2022/chart/value-axis-item/crosshair.tooltip.component.mjs +0 -81
- package/esm2022/chart/value-axis-item/labels.component.mjs +0 -130
- package/esm2022/chart/value-axis-item/notes.component.mjs +0 -82
- package/esm2022/chart/value-axis-item/notes.icon.component.mjs +0 -62
- package/esm2022/chart/value-axis-item/notes.label.component.mjs +0 -90
- package/esm2022/chart/value-axis-item/title.component.mjs +0 -102
- package/esm2022/chart/value-axis-item.component.mjs +0 -202
- package/esm2022/chart/value-axis.component.mjs +0 -52
- package/esm2022/chart/x-axis-item/crosshair.component.mjs +0 -82
- package/esm2022/chart/x-axis-item/crosshair.tooltip.component.mjs +0 -80
- package/esm2022/chart/x-axis-item/labels.component.mjs +0 -140
- package/esm2022/chart/x-axis-item/notes.component.mjs +0 -86
- package/esm2022/chart/x-axis-item/notes.icon.component.mjs +0 -62
- package/esm2022/chart/x-axis-item/notes.label.component.mjs +0 -91
- package/esm2022/chart/x-axis-item/title.component.mjs +0 -103
- package/esm2022/chart/x-axis-item.component.mjs +0 -239
- package/esm2022/chart/x-axis.component.mjs +0 -60
- package/esm2022/chart/y-axis-item/crosshair.component.mjs +0 -79
- package/esm2022/chart/y-axis-item/crosshair.tooltip.component.mjs +0 -74
- package/esm2022/chart/y-axis-item/labels.component.mjs +0 -144
- package/esm2022/chart/y-axis-item/notes.component.mjs +0 -83
- package/esm2022/chart/y-axis-item/notes.icon.component.mjs +0 -62
- package/esm2022/chart/y-axis-item/notes.label.component.mjs +0 -91
- package/esm2022/chart/y-axis-item/title.component.mjs +0 -103
- package/esm2022/chart/y-axis-item.component.mjs +0 -211
- package/esm2022/chart/y-axis.component.mjs +0 -60
- package/esm2022/chart/zoomable.component.mjs +0 -52
- package/esm2022/chart-breadcrumb.component.mjs +0 -95
- package/esm2022/chart-defaults.mjs +0 -19
- package/esm2022/chart-options.interface.mjs +0 -5
- package/esm2022/chart.component.mjs +0 -1102
- package/esm2022/chart.directives.mjs +0 -30
- package/esm2022/chart.module.mjs +0 -141
- package/esm2022/charts.module.mjs +0 -184
- package/esm2022/common/api-types.mjs +0 -5
- package/esm2022/common/chart-default-theme.mjs +0 -165
- package/esm2022/common/chart-instance-observer.mjs +0 -20
- package/esm2022/common/collection-item.component.mjs +0 -64
- package/esm2022/common/collection.component.mjs +0 -58
- package/esm2022/common/collection.service.mjs +0 -37
- package/esm2022/common/configuration.service.mjs +0 -69
- package/esm2022/common/copy-changes.mjs +0 -21
- package/esm2022/common/events.mjs +0 -31
- package/esm2022/common/has-observers.mjs +0 -10
- package/esm2022/common/has-parent.mjs +0 -14
- package/esm2022/common/prefix-configuration.service.mjs +0 -43
- package/esm2022/common/property-types.mjs +0 -5
- package/esm2022/common/root-configuration.service.mjs +0 -17
- package/esm2022/common/settings.component.mjs +0 -61
- package/esm2022/common/theme.service.mjs +0 -64
- package/esm2022/common/to-simple-changes.mjs +0 -18
- package/esm2022/common/tooltip-template.service.mjs +0 -37
- package/esm2022/common.directives.mjs +0 -75
- package/esm2022/directives.mjs +0 -374
- package/esm2022/events/axis-label-click-event.mjs +0 -42
- package/esm2022/events/base-event.mjs +0 -26
- package/esm2022/events/drag-end-event.mjs +0 -27
- package/esm2022/events/drag-event.mjs +0 -27
- package/esm2022/events/drag-start-event.mjs +0 -27
- package/esm2022/events/drilldown-event.mjs +0 -31
- package/esm2022/events/instance-event.service.mjs +0 -64
- package/esm2022/events/legend-event.mjs +0 -37
- package/esm2022/events/legend-item-click-event.mjs +0 -16
- package/esm2022/events/legend-item-hover-event.mjs +0 -16
- package/esm2022/events/legend-item-leave-event.mjs +0 -23
- package/esm2022/events/note-click-event.mjs +0 -10
- package/esm2022/events/note-event.mjs +0 -42
- package/esm2022/events/note-hover-event.mjs +0 -10
- package/esm2022/events/note-leave-event.mjs +0 -10
- package/esm2022/events/pane-render-event.mjs +0 -29
- package/esm2022/events/plot-area-click-event.mjs +0 -43
- package/esm2022/events/plot-area-hover-event.mjs +0 -43
- package/esm2022/events/plot-area-leave-event.mjs +0 -10
- package/esm2022/events/preventable-event.mjs +0 -34
- package/esm2022/events/render-event.mjs +0 -16
- package/esm2022/events/select-end-event.mjs +0 -31
- package/esm2022/events/select-event.mjs +0 -31
- package/esm2022/events/select-start-event.mjs +0 -31
- package/esm2022/events/series-click-event.mjs +0 -58
- package/esm2022/events/series-event.mjs +0 -58
- package/esm2022/events/series-hover-event.mjs +0 -10
- package/esm2022/events/series-leave-event.mjs +0 -10
- package/esm2022/events/series-over-event.mjs +0 -10
- package/esm2022/events/zoom-end-event.mjs +0 -30
- package/esm2022/events/zoom-event.mjs +0 -37
- package/esm2022/events/zoom-start-event.mjs +0 -27
- package/esm2022/field-types/auto-base-unit-steps.interface.mjs +0 -5
- package/esm2022/field-types/axis-labels-position.mjs +0 -5
- package/esm2022/field-types/axis-line.interface.mjs +0 -5
- package/esm2022/field-types/axis-ticks.interface.mjs +0 -5
- package/esm2022/field-types/axis-title-position.mjs +0 -5
- package/esm2022/field-types/base-unit.mjs +0 -5
- package/esm2022/field-types/border.interface.mjs +0 -5
- package/esm2022/field-types/bullet-target-line.interface.mjs +0 -5
- package/esm2022/field-types/bullet-target.interface.mjs +0 -5
- package/esm2022/field-types/category-base-unit.mjs +0 -5
- package/esm2022/field-types/dash-type.mjs +0 -5
- package/esm2022/field-types/date-formats.interface.mjs +0 -5
- package/esm2022/field-types/drag-action.interface.mjs +0 -5
- package/esm2022/field-types/error-bar-line.interface.mjs +0 -5
- package/esm2022/field-types/grid-lines.interface.mjs +0 -5
- package/esm2022/field-types/highlight-line.interface.mjs +0 -5
- package/esm2022/field-types/label-connectors.interface.mjs +0 -5
- package/esm2022/field-types/label-rotation.interface.mjs +0 -5
- package/esm2022/field-types/legend-labels.interface.mjs +0 -5
- package/esm2022/field-types/line-style.mjs +0 -5
- package/esm2022/field-types/lock-axis.mjs +0 -5
- package/esm2022/field-types/margin.interface.mjs +0 -5
- package/esm2022/field-types/marker-type.mjs +0 -5
- package/esm2022/field-types/modifier-key.mjs +0 -5
- package/esm2022/field-types/mousewheel-select.interface.mjs +0 -5
- package/esm2022/field-types/mousewheel-zoom.interface.mjs +0 -5
- package/esm2022/field-types/negative-bubble-values.interface.mjs +0 -5
- package/esm2022/field-types/note-label-position.mjs +0 -5
- package/esm2022/field-types/note-line.interface.mjs +0 -5
- package/esm2022/field-types/note-position.mjs +0 -5
- package/esm2022/field-types/overlay.interface.mjs +0 -5
- package/esm2022/field-types/padding.interface.mjs +0 -5
- package/esm2022/field-types/plot-band-label.interface.mjs +0 -5
- package/esm2022/field-types/plot-band.interface.mjs +0 -5
- package/esm2022/field-types/series-labels-alignment.mjs +0 -5
- package/esm2022/field-types/series-labels-position.mjs +0 -5
- package/esm2022/field-types/series-line.interface.mjs +0 -5
- package/esm2022/field-types/series-mean.interface.mjs +0 -5
- package/esm2022/field-types/series-median.interface.mjs +0 -5
- package/esm2022/field-types/series-stack.interface.mjs +0 -5
- package/esm2022/field-types/series-type.mjs +0 -5
- package/esm2022/field-types/series-whiskers.interface.mjs +0 -5
- package/esm2022/field-types/trendline-forecast.interface.mjs +0 -5
- package/esm2022/field-types/week-start-day.enum.mjs +0 -38
- package/esm2022/index.mjs +0 -63
- package/esm2022/option-types/axis-crosshair-tooltip.interface.mjs +0 -5
- package/esm2022/option-types/axis-defaults/crosshair.interface.mjs +0 -5
- package/esm2022/option-types/axis-defaults/crosshair.tooltip.interface.mjs +0 -5
- package/esm2022/option-types/axis-defaults/labels.interface.mjs +0 -5
- package/esm2022/option-types/axis-defaults/title.interface.mjs +0 -5
- package/esm2022/option-types/axis-defaults.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/crosshair.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/crosshair.tooltip.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/labels.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/notes.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/range-labels.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/select.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item/title.interface.mjs +0 -5
- package/esm2022/option-types/category-axis-item.interface.mjs +0 -5
- package/esm2022/option-types/chart-area.interface.mjs +0 -5
- package/esm2022/option-types/legend/inactive-items.interface.mjs +0 -5
- package/esm2022/option-types/legend/item.interface.mjs +0 -5
- package/esm2022/option-types/legend/legend-title.interface.mjs +0 -5
- package/esm2022/option-types/legend/markers.interface.mjs +0 -5
- package/esm2022/option-types/legend.interface.mjs +0 -5
- package/esm2022/option-types/pane/title.interface.mjs +0 -5
- package/esm2022/option-types/pane-defaults/title.interface.mjs +0 -5
- package/esm2022/option-types/pane-defaults.interface.mjs +0 -5
- package/esm2022/option-types/pane.interface.mjs +0 -5
- package/esm2022/option-types/plot-area.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/labels.from.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/labels.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/labels.to.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/notes.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults/tooltip.interface.mjs +0 -5
- package/esm2022/option-types/series-defaults.interface.mjs +0 -5
- package/esm2022/option-types/series-item/error-bars.interface.mjs +0 -5
- package/esm2022/option-types/series-item/extremes.interface.mjs +0 -5
- package/esm2022/option-types/series-item/highlight.interface.mjs +0 -5
- package/esm2022/option-types/series-item/labels.from.interface.mjs +0 -5
- package/esm2022/option-types/series-item/labels.interface.mjs +0 -5
- package/esm2022/option-types/series-item/labels.to.interface.mjs +0 -5
- package/esm2022/option-types/series-item/markers-highlight.interface.mjs +0 -5
- package/esm2022/option-types/series-item/markers.interface.mjs +0 -5
- package/esm2022/option-types/series-item/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/series-item/notes.interface.mjs +0 -5
- package/esm2022/option-types/series-item/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/series-item/outliers.interface.mjs +0 -5
- package/esm2022/option-types/series-item/tooltip.interface.mjs +0 -5
- package/esm2022/option-types/series-item/trendline.interface.mjs +0 -5
- package/esm2022/option-types/series-item.interface.mjs +0 -5
- package/esm2022/option-types/subtitle.interface.mjs +0 -5
- package/esm2022/option-types/title.interface.mjs +0 -5
- package/esm2022/option-types/tooltip-border.interface.mjs +0 -5
- package/esm2022/option-types/tooltip.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/crosshair.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/crosshair.tooltip.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/labels.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/notes.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item/title.interface.mjs +0 -5
- package/esm2022/option-types/value-axis-item.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/crosshair.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/crosshair.tooltip.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/labels.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/notes.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item/title.interface.mjs +0 -5
- package/esm2022/option-types/x-axis-item.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/crosshair.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/crosshair.tooltip.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/labels.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/notes.icon.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/notes.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/notes.label.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item/title.interface.mjs +0 -5
- package/esm2022/option-types/y-axis-item.interface.mjs +0 -5
- package/esm2022/option-types/zoomable.interface.mjs +0 -5
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/progress-kendo-angular-charts.mjs +0 -8
- package/esm2022/sankey/api-types/index.mjs +0 -5
- package/esm2022/sankey/data-binding/flat-binding.directive.mjs +0 -75
- package/esm2022/sankey/data-binding/flat-binding.event.mjs +0 -25
- package/esm2022/sankey/events/index.mjs +0 -8
- package/esm2022/sankey/events/instance-event.service.mjs +0 -22
- package/esm2022/sankey/events/sankey-base-event.mjs +0 -26
- package/esm2022/sankey/events/sankey-link-event.mjs +0 -21
- package/esm2022/sankey/events/sankey-node-event.mjs +0 -21
- package/esm2022/sankey/labels.component.mjs +0 -61
- package/esm2022/sankey/legend.component.mjs +0 -129
- package/esm2022/sankey/links.component.mjs +0 -46
- package/esm2022/sankey/localization/custom-messages.component.mjs +0 -52
- package/esm2022/sankey/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/sankey/localization/messages.mjs +0 -27
- package/esm2022/sankey/nodes.component.mjs +0 -63
- package/esm2022/sankey/theme.service.mjs +0 -25
- package/esm2022/sankey/title.component.mjs +0 -104
- package/esm2022/sankey/tooltip/link-tooltip-template-context.mjs +0 -30
- package/esm2022/sankey/tooltip/link-tooltip-template.directive.mjs +0 -44
- package/esm2022/sankey/tooltip/node-tooltip-template-context.mjs +0 -30
- package/esm2022/sankey/tooltip/node-tooltip-template.directive.mjs +0 -66
- package/esm2022/sankey/tooltip/square-symbol.directive.mjs +0 -43
- package/esm2022/sankey/tooltip/tooltip-popup.component.mjs +0 -250
- package/esm2022/sankey/tooltip/tooltip-template.service.mjs +0 -18
- package/esm2022/sankey/tooltip.component.mjs +0 -80
- package/esm2022/sankey.component.mjs +0 -515
- package/esm2022/sankey.directives.mjs +0 -20
- package/esm2022/sankey.module.mjs +0 -61
- package/esm2022/sparkline.component.mjs +0 -195
- package/esm2022/sparkline.directives.mjs +0 -7
- package/esm2022/sparkline.module.mjs +0 -142
- package/esm2022/stock-chart/events/instance-event.service.mjs +0 -20
- package/esm2022/stock-chart/events/navigator-filter-event.mjs +0 -26
- package/esm2022/stock-chart/events.mjs +0 -6
- package/esm2022/stock-chart/navigator/category-axis/crosshair.component.mjs +0 -33
- package/esm2022/stock-chart/navigator/category-axis/crosshair.tooltip.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/category-axis/labels.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/category-axis/notes.component.mjs +0 -45
- package/esm2022/stock-chart/navigator/category-axis/notes.icon.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/category-axis/notes.label.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/category-axis/select.component.mjs +0 -39
- package/esm2022/stock-chart/navigator/category-axis/title.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/category-axis.component.mjs +0 -66
- package/esm2022/stock-chart/navigator/hint.component.mjs +0 -40
- package/esm2022/stock-chart/navigator/pane/title.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/pane.component.mjs +0 -33
- package/esm2022/stock-chart/navigator/select.component.mjs +0 -40
- package/esm2022/stock-chart/navigator/series-item/error-bars.component.mjs +0 -44
- package/esm2022/stock-chart/navigator/series-item/extremes.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/series-item/highlight.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/series-item/labels.component.mjs +0 -48
- package/esm2022/stock-chart/navigator/series-item/labels.from.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/series-item/labels.to.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/series-item/markers.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/series-item/notes.component.mjs +0 -47
- package/esm2022/stock-chart/navigator/series-item/notes.icon.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/series-item/notes.label.component.mjs +0 -30
- package/esm2022/stock-chart/navigator/series-item/outliers.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/series-item/tooltip.component.mjs +0 -31
- package/esm2022/stock-chart/navigator/series-item.component.mjs +0 -58
- package/esm2022/stock-chart/navigator/series.component.mjs +0 -82
- package/esm2022/stock-chart/navigator.component.mjs +0 -93
- package/esm2022/stock-chart/option-types/navigator/hint-content-args.interface.mjs +0 -5
- package/esm2022/stock-chart/option-types/navigator/hint.interface.mjs +0 -5
- package/esm2022/stock-chart/option-types/navigator/select.interface.mjs +0 -5
- package/esm2022/stock-chart/option-types/navigator.interface.mjs +0 -5
- package/esm2022/stock-chart/option-types.mjs +0 -5
- package/esm2022/stock-chart.component.mjs +0 -244
- package/esm2022/stock-chart.directives.mjs +0 -35
- package/esm2022/stock-chart.module.mjs +0 -170
|
@@ -1,1102 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, NgZone, Renderer2, ContentChildren, QueryList, ViewChild, EventEmitter, Input, Output, ElementRef } from '@angular/core';
|
|
6
|
-
import { ResizeSensorComponent, WatermarkOverlayComponent, isDocumentAvailable, shouldShowValidationUI, getLicenseMessage } from '@progress/kendo-angular-common';
|
|
7
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
8
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { Chart } from '@progress/kendo-charts';
|
|
10
|
-
import { exportImage, exportSVG } from '@progress/kendo-drawing';
|
|
11
|
-
import { validatePackage } from '@progress/kendo-licensing';
|
|
12
|
-
import { combineLatest } from 'rxjs';
|
|
13
|
-
import { auditTime, tap } from 'rxjs/operators';
|
|
14
|
-
import './chart-defaults';
|
|
15
|
-
import { DonutCenterTemplateDirective } from './chart/donut-center-template.directive';
|
|
16
|
-
import { NoDataTemplateDirective } from './chart/no-data-template.directive';
|
|
17
|
-
import { SeriesItemComponent } from './chart/series-item.component';
|
|
18
|
-
import { CrosshairTooltipsContainerComponent } from './chart/tooltip/crosshair-tooltips-container.component';
|
|
19
|
-
import { TooltipPopupComponent } from './chart/tooltip/tooltip-popup.component';
|
|
20
|
-
import { ChartInstanceObserver } from './common/chart-instance-observer';
|
|
21
|
-
import { ConfigurationService, THROTTLE_MS } from './common/configuration.service';
|
|
22
|
-
import { copyChanges } from './common/copy-changes';
|
|
23
|
-
import { hasParent } from './common/has-parent';
|
|
24
|
-
import { ThemeService } from './common/theme.service';
|
|
25
|
-
import { toSimpleChanges } from './common/to-simple-changes';
|
|
26
|
-
import { TooltipTemplateService } from './common/tooltip-template.service';
|
|
27
|
-
import { InstanceEventService } from './events/instance-event.service';
|
|
28
|
-
import { LegendItemClickEvent } from './events/legend-item-click-event';
|
|
29
|
-
import { RenderEvent } from './events/render-event';
|
|
30
|
-
import { packageMetadata } from './package-metadata';
|
|
31
|
-
import { SeriesComponent } from './chart/series.component';
|
|
32
|
-
import { DrilldownEvent } from './events/drilldown-event';
|
|
33
|
-
import { hasObservers } from './common/has-observers';
|
|
34
|
-
import { NgStyle, NgTemplateOutlet } from '@angular/common';
|
|
35
|
-
import { LocalizedChartMessagesDirective } from './chart/localization/localized-messages.directive';
|
|
36
|
-
import * as i0 from "@angular/core";
|
|
37
|
-
import * as i1 from "./common/configuration.service";
|
|
38
|
-
import * as i2 from "./common/theme.service";
|
|
39
|
-
import * as i3 from "@progress/kendo-angular-intl";
|
|
40
|
-
import * as i4 from "@progress/kendo-angular-l10n";
|
|
41
|
-
import * as i5 from "./events/instance-event.service";
|
|
42
|
-
/**
|
|
43
|
-
* Represents the Kendo UI Chart component for Angular.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```html
|
|
47
|
-
* <kendo-chart>
|
|
48
|
-
* <kendo-chart-legend [visible]="legendVisible">
|
|
49
|
-
* </kendo-chart-legend>
|
|
50
|
-
* <kendo-chart-series>
|
|
51
|
-
* <kendo-chart-series-item name="Series #1" type="line" [data]="[1, 2, 3]">
|
|
52
|
-
* </kendo-chart-series-item>
|
|
53
|
-
* </kendo-chart-series>
|
|
54
|
-
* </kendo-chart>
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
* @remarks
|
|
58
|
-
* Supported children are: {@link SeriesComponent}, {@link SeriesDefaultsComponent}, {@link PanesComponent}, {@link PaneDefaultsComponent},
|
|
59
|
-
* {@link CategoryAxisComponent}, {@link ValueAxisComponent}, {@link XAxisComponent}, {@link YAxisComponent}, {@link LegendComponent},
|
|
60
|
-
* {@link ChartAreaComponent}, {@link PlotAreaComponent}, {@link TooltipComponent}, {@link SubtitleComponent}, {@link TitleComponent},
|
|
61
|
-
* {@link ZoomableComponent}, {@link AxisDefaultsComponent}, {@link ChartCustomMessagesComponent} {@link PaneComponent}.
|
|
62
|
-
*/
|
|
63
|
-
export class ChartComponent {
|
|
64
|
-
configurationService;
|
|
65
|
-
themeService;
|
|
66
|
-
element;
|
|
67
|
-
intl;
|
|
68
|
-
localizationService;
|
|
69
|
-
ngZone;
|
|
70
|
-
instanceEventService;
|
|
71
|
-
changeDetector;
|
|
72
|
-
renderer;
|
|
73
|
-
/**
|
|
74
|
-
* Defines whether the Chart can be panned.
|
|
75
|
-
* Panning is not available for the `Donut`, `Pie`, `Funnel`, `Pyramid`, `Polar`, and `Radar` series.
|
|
76
|
-
* @default false
|
|
77
|
-
*/
|
|
78
|
-
pannable;
|
|
79
|
-
/**
|
|
80
|
-
* Defines the rendering mode of the Chart.
|
|
81
|
-
* @default 'svg'
|
|
82
|
-
*/
|
|
83
|
-
renderAs;
|
|
84
|
-
/**
|
|
85
|
-
* Defines the default colors for the Chart series.
|
|
86
|
-
*/
|
|
87
|
-
seriesColors;
|
|
88
|
-
/**
|
|
89
|
-
* Defines the subtitle configuration of the Chart.
|
|
90
|
-
*/
|
|
91
|
-
subtitle;
|
|
92
|
-
/**
|
|
93
|
-
* Defines the title configuration of the Chart.
|
|
94
|
-
*/
|
|
95
|
-
title;
|
|
96
|
-
/**
|
|
97
|
-
* Defines whether to show the no-data template when the Chart has no data.
|
|
98
|
-
* @default true
|
|
99
|
-
*/
|
|
100
|
-
noData = true;
|
|
101
|
-
/**
|
|
102
|
-
* @hidden
|
|
103
|
-
* Defines whether the Chart automatically repaints when its styles are modified through CSS variables.
|
|
104
|
-
* @default true
|
|
105
|
-
*/
|
|
106
|
-
observeStyles = true;
|
|
107
|
-
/**
|
|
108
|
-
* Defines whether the Chart plays animations when it displays the series.
|
|
109
|
-
* By default, animations are enabled.
|
|
110
|
-
* @default true
|
|
111
|
-
*/
|
|
112
|
-
transitions;
|
|
113
|
-
/**
|
|
114
|
-
* Defines the zoom configuration of the Chart.
|
|
115
|
-
*/
|
|
116
|
-
zoomable;
|
|
117
|
-
/**
|
|
118
|
-
* Defines the default configuration for all axes.
|
|
119
|
-
*/
|
|
120
|
-
axisDefaults;
|
|
121
|
-
/**
|
|
122
|
-
* Defines the category axis configuration.
|
|
123
|
-
*/
|
|
124
|
-
categoryAxis;
|
|
125
|
-
/**
|
|
126
|
-
* Defines the Chart area configuration.
|
|
127
|
-
*/
|
|
128
|
-
chartArea;
|
|
129
|
-
/**
|
|
130
|
-
* Defines the Chart legend configuration.
|
|
131
|
-
*/
|
|
132
|
-
legend;
|
|
133
|
-
/**
|
|
134
|
-
* Defines the Chart panes configuration.
|
|
135
|
-
*/
|
|
136
|
-
panes;
|
|
137
|
-
/**
|
|
138
|
-
* Defines the default configuration for all panes.
|
|
139
|
-
*/
|
|
140
|
-
paneDefaults;
|
|
141
|
-
/**
|
|
142
|
-
* Defines the plot area configuration.
|
|
143
|
-
*/
|
|
144
|
-
plotArea;
|
|
145
|
-
/**
|
|
146
|
-
* Defines the Chart series configuration.
|
|
147
|
-
*/
|
|
148
|
-
series;
|
|
149
|
-
/**
|
|
150
|
-
* Defines the default configuration for all series.
|
|
151
|
-
*/
|
|
152
|
-
seriesDefaults;
|
|
153
|
-
/**
|
|
154
|
-
* Defines the Chart tooltip configuration.
|
|
155
|
-
*/
|
|
156
|
-
tooltip;
|
|
157
|
-
/**
|
|
158
|
-
* Defines the value axis configuration.
|
|
159
|
-
*/
|
|
160
|
-
valueAxis;
|
|
161
|
-
/**
|
|
162
|
-
* Defines the X axis configuration.
|
|
163
|
-
*/
|
|
164
|
-
xAxis;
|
|
165
|
-
/**
|
|
166
|
-
* Defines the Y axis configuration.
|
|
167
|
-
*/
|
|
168
|
-
yAxis;
|
|
169
|
-
/**
|
|
170
|
-
* Fires when you click an axis label ([see example](slug:events_chart)).
|
|
171
|
-
*/
|
|
172
|
-
axisLabelClick = new EventEmitter();
|
|
173
|
-
/**
|
|
174
|
-
* Fires as long as you drag the Chart with the mouse or through swipe gestures.
|
|
175
|
-
*/
|
|
176
|
-
drag = new EventEmitter();
|
|
177
|
-
/**
|
|
178
|
-
* Fires when you stop dragging the Chart.
|
|
179
|
-
*/
|
|
180
|
-
dragEnd = new EventEmitter();
|
|
181
|
-
/**
|
|
182
|
-
* Fires when you start dragging the Chart.
|
|
183
|
-
*/
|
|
184
|
-
dragStart = new EventEmitter();
|
|
185
|
-
/**
|
|
186
|
-
* Fires when you hover over a legend item ([see example](slug:events_chart)).
|
|
187
|
-
*/
|
|
188
|
-
legendItemHover = new EventEmitter();
|
|
189
|
-
/**
|
|
190
|
-
* Fires when the cursor leaves a legend item.
|
|
191
|
-
*/
|
|
192
|
-
legendItemLeave = new EventEmitter();
|
|
193
|
-
/**
|
|
194
|
-
* Fires when you click a note.
|
|
195
|
-
*/
|
|
196
|
-
noteClick = new EventEmitter();
|
|
197
|
-
/**
|
|
198
|
-
* Fires when you hover over a note.
|
|
199
|
-
*/
|
|
200
|
-
noteHover = new EventEmitter();
|
|
201
|
-
/**
|
|
202
|
-
* Fires when the cursor leaves a note.
|
|
203
|
-
*/
|
|
204
|
-
noteLeave = new EventEmitter();
|
|
205
|
-
/**
|
|
206
|
-
* Fires when a pane is rendered because the Chart is rendered, performs panning or zooming, or is exported with different options.
|
|
207
|
-
* The event is used to render custom visuals in the panes.
|
|
208
|
-
*/
|
|
209
|
-
paneRender = new EventEmitter();
|
|
210
|
-
/**
|
|
211
|
-
* Fires when you click the plot area ([see example](slug:events_chart)).
|
|
212
|
-
* The `click` event is triggered by the `tap` and `contextmenu` events.
|
|
213
|
-
* To distinguish between the original events, inspect the `e.originalEvent.type` field.
|
|
214
|
-
*/
|
|
215
|
-
plotAreaClick = new EventEmitter();
|
|
216
|
-
/**
|
|
217
|
-
* Fires when you hover the plot area ([see example](slug:events_chart)).
|
|
218
|
-
*/
|
|
219
|
-
plotAreaHover = new EventEmitter();
|
|
220
|
-
/**
|
|
221
|
-
* Fires when the cursor leaves the plot area.
|
|
222
|
-
*/
|
|
223
|
-
plotAreaLeave = new EventEmitter();
|
|
224
|
-
/**
|
|
225
|
-
* Fires when the Chart is ready to render on screen ([see example](slug:events_chart)).
|
|
226
|
-
* For example, you can use it to remove loading indicators.
|
|
227
|
-
* Any changes made to the options are ignored.
|
|
228
|
-
*/
|
|
229
|
-
render = new EventEmitter();
|
|
230
|
-
/**
|
|
231
|
-
* Fires when you modify the selection.
|
|
232
|
-
*
|
|
233
|
-
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
234
|
-
*/
|
|
235
|
-
select = new EventEmitter();
|
|
236
|
-
/**
|
|
237
|
-
* Fires when you complete the modification of the selection.
|
|
238
|
-
*
|
|
239
|
-
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
240
|
-
*/
|
|
241
|
-
selectEnd = new EventEmitter();
|
|
242
|
-
/**
|
|
243
|
-
* Fires when you start modifying the axis selection.
|
|
244
|
-
*
|
|
245
|
-
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
246
|
-
*/
|
|
247
|
-
selectStart = new EventEmitter();
|
|
248
|
-
/**
|
|
249
|
-
* Fires when you click the Chart series.
|
|
250
|
-
*
|
|
251
|
-
* The `click` event will be triggered by the `tap` and `contextmenu` events ([see example](slug:events_chart)).
|
|
252
|
-
* To distinguish between the original events, inspect the `e.originalEvent.type` field.
|
|
253
|
-
*/
|
|
254
|
-
seriesClick = new EventEmitter();
|
|
255
|
-
/**
|
|
256
|
-
* Fires when you want to drill down on a specific point.
|
|
257
|
-
*/
|
|
258
|
-
drilldown = new EventEmitter();
|
|
259
|
-
/**
|
|
260
|
-
* Fires when you hover the Chart series ([see example](slug:events_chart)).
|
|
261
|
-
*/
|
|
262
|
-
seriesHover = new EventEmitter();
|
|
263
|
-
/**
|
|
264
|
-
* Fires when the cursor enters a series.
|
|
265
|
-
*/
|
|
266
|
-
seriesOver = new EventEmitter();
|
|
267
|
-
/**
|
|
268
|
-
* Fires when the cursor leaves a series.
|
|
269
|
-
*/
|
|
270
|
-
seriesLeave = new EventEmitter();
|
|
271
|
-
/**
|
|
272
|
-
* Fires as long as you zoom the Chart by using the mousewheel operation.
|
|
273
|
-
*/
|
|
274
|
-
zoom = new EventEmitter();
|
|
275
|
-
/**
|
|
276
|
-
* Fires when you stop zooming the Chart.
|
|
277
|
-
*/
|
|
278
|
-
zoomEnd = new EventEmitter();
|
|
279
|
-
/**
|
|
280
|
-
* Fires when you use the mousewheel to zoom the Chart.
|
|
281
|
-
*/
|
|
282
|
-
zoomStart = new EventEmitter();
|
|
283
|
-
/**
|
|
284
|
-
* Fires when a legend item is clicked before the selected series visibility is toggled.
|
|
285
|
-
* You can prevent this event.
|
|
286
|
-
*/
|
|
287
|
-
legendItemClick = new EventEmitter();
|
|
288
|
-
/**
|
|
289
|
-
* Fires when the drill-down level has changed.
|
|
290
|
-
*/
|
|
291
|
-
drilldownLevelChange = new EventEmitter();
|
|
292
|
-
/**
|
|
293
|
-
* Limits the automatic resizing of the Chart. Sets the maximum number of times per second
|
|
294
|
-
* that the component redraws its content when the size of its container changes.
|
|
295
|
-
* To disable the automatic resizing, set it to `0`.
|
|
296
|
-
*
|
|
297
|
-
* @default 10
|
|
298
|
-
*/
|
|
299
|
-
resizeRateLimit = 10;
|
|
300
|
-
/**
|
|
301
|
-
* Defines the settings for the tooltip popup.
|
|
302
|
-
*/
|
|
303
|
-
popupSettings;
|
|
304
|
-
/**
|
|
305
|
-
* Gets or sets the current drill-down level for [Drilldown Charts](slug:drilldown_chart_charts).
|
|
306
|
-
*
|
|
307
|
-
* To return to a previous level, set the value to a number less than the current level.
|
|
308
|
-
* To return to the root chart, set the value to `0`.
|
|
309
|
-
*
|
|
310
|
-
* Setting the value to a number greater than the current level has no effect.
|
|
311
|
-
*/
|
|
312
|
-
get drilldownLevel() {
|
|
313
|
-
return this.drilldownState.length;
|
|
314
|
-
}
|
|
315
|
-
set drilldownLevel(level) {
|
|
316
|
-
const currentLevel = this.drilldownState.length;
|
|
317
|
-
if (currentLevel <= level || !this.seriesComponents) {
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
this.drilldownState.slice(level, currentLevel).forEach((view) => {
|
|
321
|
-
const hiddenSeries = view.hiddenSeries;
|
|
322
|
-
hiddenSeries?.forEach(series => {
|
|
323
|
-
series.hidden = false;
|
|
324
|
-
});
|
|
325
|
-
view.destroy();
|
|
326
|
-
});
|
|
327
|
-
this.drilldownState.length = level;
|
|
328
|
-
this.drilldownLevelChange.emit(level);
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Represents the Drawing `Surface` of the Chart.
|
|
332
|
-
*/
|
|
333
|
-
surface;
|
|
334
|
-
seriesCollectionComponent;
|
|
335
|
-
seriesComponents;
|
|
336
|
-
donutCenterTemplate;
|
|
337
|
-
noDataTemplate;
|
|
338
|
-
tooltipInstance;
|
|
339
|
-
crossahirTooltips;
|
|
340
|
-
surfaceElement;
|
|
341
|
-
/**
|
|
342
|
-
* @hidden
|
|
343
|
-
*/
|
|
344
|
-
donutCenterStyle;
|
|
345
|
-
/**
|
|
346
|
-
* @hidden
|
|
347
|
-
*/
|
|
348
|
-
messageFor(key) {
|
|
349
|
-
return this.localizationService.get(key);
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* @hidden
|
|
353
|
-
*/
|
|
354
|
-
showLicenseWatermark = false;
|
|
355
|
-
/**
|
|
356
|
-
* @hidden
|
|
357
|
-
*/
|
|
358
|
-
licenseMessage;
|
|
359
|
-
instance;
|
|
360
|
-
options;
|
|
361
|
-
theme = null;
|
|
362
|
-
optionsChange;
|
|
363
|
-
suppressTransitions = false;
|
|
364
|
-
resizeTimeout;
|
|
365
|
-
redrawTimeout;
|
|
366
|
-
domSubscriptions;
|
|
367
|
-
destroyed;
|
|
368
|
-
subscriptions;
|
|
369
|
-
rtl = false;
|
|
370
|
-
hostClasses = ['k-chart', 'k-widget'];
|
|
371
|
-
drilldownState = [];
|
|
372
|
-
constructor(configurationService, themeService, element, intl, localizationService, ngZone, instanceEventService, changeDetector, renderer) {
|
|
373
|
-
this.configurationService = configurationService;
|
|
374
|
-
this.themeService = themeService;
|
|
375
|
-
this.element = element;
|
|
376
|
-
this.intl = intl;
|
|
377
|
-
this.localizationService = localizationService;
|
|
378
|
-
this.ngZone = ngZone;
|
|
379
|
-
this.instanceEventService = instanceEventService;
|
|
380
|
-
this.changeDetector = changeDetector;
|
|
381
|
-
this.renderer = renderer;
|
|
382
|
-
const isValid = validatePackage(packageMetadata);
|
|
383
|
-
this.licenseMessage = getLicenseMessage(packageMetadata);
|
|
384
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
385
|
-
this.themeService.loadTheme();
|
|
386
|
-
this.refreshWait();
|
|
387
|
-
}
|
|
388
|
-
ngOnInit() {
|
|
389
|
-
if (this.element) {
|
|
390
|
-
this.hostClasses.forEach(name => {
|
|
391
|
-
this.renderer.addClass(this.element.nativeElement, name);
|
|
392
|
-
});
|
|
393
|
-
this.renderer.setStyle(this.element.nativeElement, 'position', 'relative');
|
|
394
|
-
}
|
|
395
|
-
// Initialize observeStyles default value if not already set
|
|
396
|
-
const store = this.configurationService.store;
|
|
397
|
-
if (store.observeStyles === undefined && this.observeStyles !== undefined) {
|
|
398
|
-
store.observeStyles = this.observeStyles;
|
|
399
|
-
this.configurationService.push(store);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
ngAfterViewInit() {
|
|
403
|
-
if (this.canRender) {
|
|
404
|
-
this.ngZone.runOutsideAngular(() => {
|
|
405
|
-
const chartMouseleave = this.renderer.listen(this.surfaceElement.nativeElement, 'mouseleave', this.chartMouseleave.bind(this));
|
|
406
|
-
this.domSubscriptions = () => {
|
|
407
|
-
chartMouseleave();
|
|
408
|
-
};
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
this.setDirection();
|
|
412
|
-
this.subscriptions = this.intl.changes.subscribe(this.intlChange.bind(this));
|
|
413
|
-
this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)));
|
|
414
|
-
}
|
|
415
|
-
onStyleChanged() {
|
|
416
|
-
this.suppressTransitions = true;
|
|
417
|
-
this.themeService.reset();
|
|
418
|
-
}
|
|
419
|
-
onDrilldown(e) {
|
|
420
|
-
const seriesComponent = this.seriesComponents.find(sc => sc.name === e.series.name);
|
|
421
|
-
const seriesCollection = this.seriesCollectionComponent.first;
|
|
422
|
-
if (!seriesComponent?.drilldownTemplate || !seriesCollection) {
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
const args = new DrilldownEvent(e, this);
|
|
426
|
-
this.run(() => this.drilldown.emit(args));
|
|
427
|
-
if (args.isDefaultPrevented()) {
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
const hiddenSeries = [];
|
|
431
|
-
this.seriesComponents.forEach(series => {
|
|
432
|
-
if (!series.hidden) {
|
|
433
|
-
series.hidden = true;
|
|
434
|
-
hiddenSeries.push(series);
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
const view = seriesCollection.viewContainer.createEmbeddedView(seriesComponent.drilldownTemplate.templateRef, { drilldownValue: e.value, point: e.point, series: e.series });
|
|
438
|
-
view.hiddenSeries = hiddenSeries;
|
|
439
|
-
view.markForCheck();
|
|
440
|
-
this.drilldownState.push(view);
|
|
441
|
-
this.drilldownLevelChange.emit(this.drilldownLevel);
|
|
442
|
-
}
|
|
443
|
-
ngAfterViewChecked() {
|
|
444
|
-
if (this.instance && this.autoResize) {
|
|
445
|
-
this.ngZone.runOutsideAngular(() => {
|
|
446
|
-
clearTimeout(this.resizeTimeout);
|
|
447
|
-
this.resizeTimeout = setTimeout(() => {
|
|
448
|
-
this.resize();
|
|
449
|
-
}, 0);
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
ngOnChanges(changes) {
|
|
454
|
-
const store = this.configurationService.store;
|
|
455
|
-
copyChanges(changes, store);
|
|
456
|
-
store.popupSettings = null;
|
|
457
|
-
this.configurationService.push(store);
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Updates the component fields with the specified values and refreshes the Chart.
|
|
461
|
-
*
|
|
462
|
-
* Use this method when the configuration values cannot be set through the template.
|
|
463
|
-
*
|
|
464
|
-
* @example
|
|
465
|
-
* ```ts-no-run
|
|
466
|
-
* chart.notifyChanges({ title: { text: 'New Title' } });
|
|
467
|
-
* ```
|
|
468
|
-
*
|
|
469
|
-
* @param changes An object containing the updated input fields.
|
|
470
|
-
*/
|
|
471
|
-
notifyChanges(changes) {
|
|
472
|
-
this.ngOnChanges(toSimpleChanges(changes));
|
|
473
|
-
}
|
|
474
|
-
ngOnDestroy() {
|
|
475
|
-
this.destroyed = true;
|
|
476
|
-
if (this.optionsChange) {
|
|
477
|
-
this.optionsChange.unsubscribe();
|
|
478
|
-
}
|
|
479
|
-
if (this.domSubscriptions) {
|
|
480
|
-
this.domSubscriptions();
|
|
481
|
-
this.domSubscriptions = null;
|
|
482
|
-
}
|
|
483
|
-
if (this.instance) {
|
|
484
|
-
this.instance.destroy();
|
|
485
|
-
this.instance = null;
|
|
486
|
-
}
|
|
487
|
-
if (this.subscriptions) {
|
|
488
|
-
this.subscriptions.unsubscribe();
|
|
489
|
-
}
|
|
490
|
-
clearTimeout(this.resizeTimeout);
|
|
491
|
-
clearTimeout(this.redrawTimeout);
|
|
492
|
-
}
|
|
493
|
-
createInstance(element, observer) {
|
|
494
|
-
this.instance = new Chart(element, this.options, this.theme, {
|
|
495
|
-
intlService: this.intl,
|
|
496
|
-
observer: observer,
|
|
497
|
-
rtl: this.rtl,
|
|
498
|
-
sender: this
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Exports the Chart as an image. The export operation is asynchronous and returns a promise.
|
|
503
|
-
*
|
|
504
|
-
* @param options - The parameters for the exported image.
|
|
505
|
-
* @returns A promise that resolves with a PNG image encoded as a Data URI.
|
|
506
|
-
*/
|
|
507
|
-
exportImage(options = {}) {
|
|
508
|
-
return exportImage(this.exportVisual(options), options);
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Exports the Chart as an SVG document. The export operation is asynchronous and returns a promise.
|
|
512
|
-
*
|
|
513
|
-
* @param options - The parameters for the exported file.
|
|
514
|
-
* @returns A promise that resolves with an SVG document encoded as a Data URI.
|
|
515
|
-
*/
|
|
516
|
-
exportSVG(options = {}) {
|
|
517
|
-
return exportSVG(this.exportVisual(options), options);
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Exports the Chart as a Drawing `Scene`.
|
|
521
|
-
*
|
|
522
|
-
* @param options - The parameters for the export operation.
|
|
523
|
-
* @returns The root `Group` of the scene.
|
|
524
|
-
*/
|
|
525
|
-
exportVisual(options = {}) {
|
|
526
|
-
return this.instance.exportVisual(options);
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* Returns the axis with the specified name.
|
|
530
|
-
*
|
|
531
|
-
* @param name - The axis name.
|
|
532
|
-
* @returns The axis with a corresponding name.
|
|
533
|
-
*/
|
|
534
|
-
findAxisByName(name) {
|
|
535
|
-
if (this.instance) {
|
|
536
|
-
return this.instance.findAxisByName(name);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Returns the pane at the specified index.
|
|
541
|
-
*
|
|
542
|
-
* @param index - The pane index.
|
|
543
|
-
* @returns The pane at the specified index.
|
|
544
|
-
*/
|
|
545
|
-
findPaneByIndex(index) {
|
|
546
|
-
if (this.instance) {
|
|
547
|
-
return this.instance.findPaneByIndex(index);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Returns the pane with the specified name.
|
|
552
|
-
*
|
|
553
|
-
* @param name - The name of the pane.
|
|
554
|
-
* @returns The pane with the provided name.
|
|
555
|
-
*/
|
|
556
|
-
findPaneByName(name) {
|
|
557
|
-
if (this.instance) {
|
|
558
|
-
return this.instance.findPaneByName(name);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Returns the plot area of the Chart.
|
|
563
|
-
*
|
|
564
|
-
* @returns The plot area of the Chart.
|
|
565
|
-
*/
|
|
566
|
-
getPlotArea() {
|
|
567
|
-
if (this.instance) {
|
|
568
|
-
return this.instance.plotArea();
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Highlights the series points or the segments of a Pie, Donut, Funnel, or Pyramid Charts.
|
|
573
|
-
*
|
|
574
|
-
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details (with an [example](slug:serieshighlight_chart_charts#toc-toggling-the-highlight-with-code)).
|
|
575
|
-
*
|
|
576
|
-
* @param show - A Boolean value that indicates whether the highlight is shown or hidden.
|
|
577
|
-
* @param filter - A string that represents the series or category name, an object with the series and category name, or a function which will be called for each point. The function should return `true` for the points for which the highlight is toggled.
|
|
578
|
-
*/
|
|
579
|
-
toggleHighlight(show, filter) {
|
|
580
|
-
if (this.instance) {
|
|
581
|
-
this.instance.toggleHighlight(show, filter);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Hides the tooltip of the Chart.
|
|
586
|
-
*/
|
|
587
|
-
hideTooltip() {
|
|
588
|
-
if (this.instance) {
|
|
589
|
-
this.instance.hideTooltip();
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
/**
|
|
593
|
-
* Shows the Chart tooltip of a specific point or the shared tooltip of a specific category.
|
|
594
|
-
*
|
|
595
|
-
* @param filter - The category for a shared tooltip or a function which will be called for each point until the function returns `true`.
|
|
596
|
-
*/
|
|
597
|
-
showTooltip(filter) {
|
|
598
|
-
if (this.instance) {
|
|
599
|
-
this.instance.showTooltip(filter);
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
init() {
|
|
603
|
-
if (!this.canRender) {
|
|
604
|
-
return;
|
|
605
|
-
}
|
|
606
|
-
const element = this.surfaceElement.nativeElement;
|
|
607
|
-
const instanceObserver = new ChartInstanceObserver(this);
|
|
608
|
-
this.createInstance(element, instanceObserver);
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* Detects the size of the container and redraws the Chart.
|
|
612
|
-
* Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
|
|
613
|
-
*/
|
|
614
|
-
resize() {
|
|
615
|
-
if (this.instance) {
|
|
616
|
-
this.instance.resize();
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
/**
|
|
620
|
-
* @hidden
|
|
621
|
-
*/
|
|
622
|
-
onResize() {
|
|
623
|
-
if (this.autoResize) {
|
|
624
|
-
this.resize();
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Reloads the Chart appearance settings from the current [Kendo UI Theme]({% slug themesandstyles %}).
|
|
629
|
-
*
|
|
630
|
-
* Call this method after loading a different theme stylesheet.
|
|
631
|
-
*/
|
|
632
|
-
reloadTheme() {
|
|
633
|
-
if (!this.instance) {
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
this.themeService.reset();
|
|
637
|
-
this.instance.destroy();
|
|
638
|
-
this.instance = null;
|
|
639
|
-
}
|
|
640
|
-
onLegendItemClick(e) {
|
|
641
|
-
this.run(() => {
|
|
642
|
-
const args = new LegendItemClickEvent(e, this);
|
|
643
|
-
this.legendItemClick.emit(args);
|
|
644
|
-
if (!args.isDefaultPrevented()) {
|
|
645
|
-
const series = this.seriesComponents.toArray()[e.series.index];
|
|
646
|
-
if (!series) {
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
if (e.pointIndex !== undefined) {
|
|
650
|
-
series.togglePointVisibility(e.pointIndex);
|
|
651
|
-
}
|
|
652
|
-
else {
|
|
653
|
-
series.toggleVisibility();
|
|
654
|
-
}
|
|
655
|
-
this.suppressTransitions = true;
|
|
656
|
-
}
|
|
657
|
-
}, hasObservers(this.legendItemClick), this.seriesComponents.length > 0);
|
|
658
|
-
}
|
|
659
|
-
onInit(e) {
|
|
660
|
-
this.instance = e.sender;
|
|
661
|
-
}
|
|
662
|
-
onRender(e) {
|
|
663
|
-
const donutCenterStyle = this.getDonutCenterStyle();
|
|
664
|
-
this.run(() => {
|
|
665
|
-
const args = new RenderEvent(e, this);
|
|
666
|
-
this.surface = e.sender.surface;
|
|
667
|
-
this.render.emit(args);
|
|
668
|
-
this.donutCenterStyle = donutCenterStyle;
|
|
669
|
-
}, hasObservers(this.render), this.donutCenterStyle !== donutCenterStyle);
|
|
670
|
-
}
|
|
671
|
-
onShowTooltip(e) {
|
|
672
|
-
this.run(() => {
|
|
673
|
-
if (!e.crosshair) {
|
|
674
|
-
this.tooltipInstance.show(e);
|
|
675
|
-
}
|
|
676
|
-
else {
|
|
677
|
-
this.crossahirTooltips.show(e);
|
|
678
|
-
}
|
|
679
|
-
}, !e.crosshair, true);
|
|
680
|
-
}
|
|
681
|
-
onHideTooltip(e) {
|
|
682
|
-
if (!e.crosshair) {
|
|
683
|
-
if (this.tooltipInstance.active) {
|
|
684
|
-
this.tooltipInstance.hide();
|
|
685
|
-
this.detectChanges();
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
else if (this.crossahirTooltips.active) {
|
|
689
|
-
this.crossahirTooltips.hide();
|
|
690
|
-
this.detectChanges();
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
trigger(name, e) {
|
|
694
|
-
if (name === 'resize') {
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
if (name === 'drilldown') {
|
|
698
|
-
this.onDrilldown(e);
|
|
699
|
-
return;
|
|
700
|
-
}
|
|
701
|
-
if (name === 'styleChanged') {
|
|
702
|
-
this.onStyleChanged();
|
|
703
|
-
return;
|
|
704
|
-
}
|
|
705
|
-
const emitter = this.activeEmitter(name);
|
|
706
|
-
if (emitter) {
|
|
707
|
-
const args = this.instanceEventService.create(name, e, this);
|
|
708
|
-
this.run(() => {
|
|
709
|
-
emitter.emit(args);
|
|
710
|
-
});
|
|
711
|
-
return args.isDefaultPrevented && args.isDefaultPrevented();
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
requiresHandlers(names) {
|
|
715
|
-
for (let idx = 0; idx < names.length; idx++) {
|
|
716
|
-
if (this.activeEmitter(names[idx])) {
|
|
717
|
-
return true;
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return false;
|
|
721
|
-
}
|
|
722
|
-
refresh() {
|
|
723
|
-
clearTimeout(this.redrawTimeout);
|
|
724
|
-
this.updateDirection();
|
|
725
|
-
this.crossahirTooltips.createCrosshairTooltips(this.options);
|
|
726
|
-
this.setChartAreaSize();
|
|
727
|
-
if (!this.instance) {
|
|
728
|
-
this.init();
|
|
729
|
-
return;
|
|
730
|
-
}
|
|
731
|
-
const transitions = this.options.transitions;
|
|
732
|
-
if (this.suppressTransitions) {
|
|
733
|
-
this.options.transitions = false;
|
|
734
|
-
}
|
|
735
|
-
this.updateOptions();
|
|
736
|
-
if (this.suppressTransitions) {
|
|
737
|
-
this.options.transitions = transitions;
|
|
738
|
-
this.suppressTransitions = false;
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
setChartAreaSize() {
|
|
742
|
-
if (!this.element) {
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
const element = this.element.nativeElement;
|
|
746
|
-
const chartArea = this.options.chartArea || {};
|
|
747
|
-
if (chartArea.width) {
|
|
748
|
-
element.style.width = `${chartArea.width}px`;
|
|
749
|
-
}
|
|
750
|
-
if (chartArea.height) {
|
|
751
|
-
element.style.height = `${chartArea.height}px`;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
updateOptions() {
|
|
755
|
-
this.instance.setOptions(this.options, this.theme);
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* @hidden
|
|
759
|
-
*/
|
|
760
|
-
tooltipMouseleave(e) {
|
|
761
|
-
const relatedTarget = e.relatedTarget;
|
|
762
|
-
const chartElement = this.element.nativeElement;
|
|
763
|
-
if (this.instance && (!relatedTarget || !hasParent(relatedTarget, chartElement))) {
|
|
764
|
-
this.instance.hideElements();
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
/**
|
|
768
|
-
* @hidden
|
|
769
|
-
*/
|
|
770
|
-
chartMouseleave(e) {
|
|
771
|
-
const relatedTarget = e.relatedTarget;
|
|
772
|
-
const chartElement = this.element.nativeElement;
|
|
773
|
-
if (this.instance && (!relatedTarget || !(this.tooltipInstance.containsElement(relatedTarget) || hasParent(relatedTarget, chartElement))) &&
|
|
774
|
-
!this.instance.handlingTap) {
|
|
775
|
-
this.instance.hideElements();
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
get canRender() {
|
|
779
|
-
return isDocumentAvailable() && Boolean(this.surfaceElement);
|
|
780
|
-
}
|
|
781
|
-
get autoResize() {
|
|
782
|
-
return this.resizeRateLimit > 0;
|
|
783
|
-
}
|
|
784
|
-
activeEmitter(name) {
|
|
785
|
-
const emitter = this[name];
|
|
786
|
-
if (emitter && emitter.emit && hasObservers(emitter)) {
|
|
787
|
-
return emitter;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
getDonutCenterStyle() {
|
|
791
|
-
if (!this.instance || !this.options || !this.options.series) {
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
const firstSeries = this.options.series[0];
|
|
795
|
-
const charts = this.instance._plotArea.charts;
|
|
796
|
-
if (!firstSeries || firstSeries.type !== 'donut' || !charts || charts[0].points.length === 0) {
|
|
797
|
-
return;
|
|
798
|
-
}
|
|
799
|
-
const firstPoint = charts[0].points[0];
|
|
800
|
-
const center = firstPoint.box.center();
|
|
801
|
-
const radius = firstPoint.sector.innerRadius;
|
|
802
|
-
const top = center.y - radius;
|
|
803
|
-
const left = center.x - radius;
|
|
804
|
-
const size = radius * 2;
|
|
805
|
-
return {
|
|
806
|
-
height: size + 'px',
|
|
807
|
-
left: left + 'px',
|
|
808
|
-
top: top + 'px',
|
|
809
|
-
width: size + 'px'
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
refreshWait() {
|
|
813
|
-
this.ngZone.runOutsideAngular(() => {
|
|
814
|
-
this.optionsChange = combineLatest(this.configurationService.onChange$, this.themeService.onChange$).pipe(tap((result) => {
|
|
815
|
-
this.options = result[0];
|
|
816
|
-
this.theme = result[1];
|
|
817
|
-
}), auditTime(THROTTLE_MS))
|
|
818
|
-
.subscribe(() => {
|
|
819
|
-
this.refresh();
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
run(callback, inZone = true, detectChanges) {
|
|
824
|
-
if (inZone) {
|
|
825
|
-
if (detectChanges) {
|
|
826
|
-
this.changeDetector.markForCheck();
|
|
827
|
-
}
|
|
828
|
-
this.ngZone.run(callback);
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
callback();
|
|
832
|
-
if (detectChanges) {
|
|
833
|
-
this.detectChanges();
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
detectChanges() {
|
|
838
|
-
if (!this.destroyed) {
|
|
839
|
-
this.changeDetector.detectChanges();
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
intlChange() {
|
|
843
|
-
if (this.instance) {
|
|
844
|
-
this.deferredRedraw();
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
rtlChange() {
|
|
848
|
-
if (this.instance && this.rtl !== this.isRTL) {
|
|
849
|
-
this.deferredRedraw();
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
deferredRedraw() {
|
|
853
|
-
this.ngZone.runOutsideAngular(() => {
|
|
854
|
-
clearTimeout(this.redrawTimeout);
|
|
855
|
-
this.redrawTimeout = setTimeout(() => {
|
|
856
|
-
this.updateDirection();
|
|
857
|
-
this.instance.noTransitionsRedraw();
|
|
858
|
-
}, 0);
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
updateDirection() {
|
|
862
|
-
const current = this.isRTL;
|
|
863
|
-
if (this.rtl !== current) {
|
|
864
|
-
this.setDirection();
|
|
865
|
-
if (this.instance) {
|
|
866
|
-
this.instance.setDirection(current);
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
setDirection() {
|
|
871
|
-
this.rtl = this.isRTL;
|
|
872
|
-
if (this.element) {
|
|
873
|
-
this.renderer.setAttribute(this.element.nativeElement, 'dir', this.rtl ? 'rtl' : 'ltr');
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
get isRTL() {
|
|
877
|
-
return Boolean(this.localizationService.rtl);
|
|
878
|
-
}
|
|
879
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.ThemeService }, { token: i0.ElementRef }, { token: i3.IntlService }, { token: i4.LocalizationService }, { token: i0.NgZone }, { token: i5.InstanceEventService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
880
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ChartComponent, isStandalone: true, selector: "kendo-chart", inputs: { pannable: "pannable", renderAs: "renderAs", seriesColors: "seriesColors", subtitle: "subtitle", title: "title", noData: "noData", observeStyles: "observeStyles", transitions: "transitions", zoomable: "zoomable", axisDefaults: "axisDefaults", categoryAxis: "categoryAxis", chartArea: "chartArea", legend: "legend", panes: "panes", paneDefaults: "paneDefaults", plotArea: "plotArea", series: "series", seriesDefaults: "seriesDefaults", tooltip: "tooltip", valueAxis: "valueAxis", xAxis: "xAxis", yAxis: "yAxis", resizeRateLimit: "resizeRateLimit", popupSettings: "popupSettings", drilldownLevel: "drilldownLevel" }, outputs: { axisLabelClick: "axisLabelClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", legendItemHover: "legendItemHover", legendItemLeave: "legendItemLeave", noteClick: "noteClick", noteHover: "noteHover", noteLeave: "noteLeave", paneRender: "paneRender", plotAreaClick: "plotAreaClick", plotAreaHover: "plotAreaHover", plotAreaLeave: "plotAreaLeave", render: "render", select: "select", selectEnd: "selectEnd", selectStart: "selectStart", seriesClick: "seriesClick", drilldown: "drilldown", seriesHover: "seriesHover", seriesOver: "seriesOver", seriesLeave: "seriesLeave", zoom: "zoom", zoomEnd: "zoomEnd", zoomStart: "zoomStart", legendItemClick: "legendItemClick", drilldownLevelChange: "drilldownLevelChange" }, providers: [
|
|
881
|
-
ConfigurationService,
|
|
882
|
-
TooltipTemplateService,
|
|
883
|
-
InstanceEventService,
|
|
884
|
-
LocalizationService,
|
|
885
|
-
{
|
|
886
|
-
provide: L10N_PREFIX,
|
|
887
|
-
useValue: 'kendo.chart'
|
|
888
|
-
}
|
|
889
|
-
], queries: [{ propertyName: "donutCenterTemplate", first: true, predicate: DonutCenterTemplateDirective, descendants: true }, { propertyName: "noDataTemplate", first: true, predicate: NoDataTemplateDirective, descendants: true }, { propertyName: "seriesCollectionComponent", predicate: SeriesComponent }, { propertyName: "seriesComponents", predicate: SeriesItemComponent, descendants: true }], viewQueries: [{ propertyName: "tooltipInstance", first: true, predicate: TooltipPopupComponent, descendants: true, static: true }, { propertyName: "crossahirTooltips", first: true, predicate: CrosshairTooltipsContainerComponent, descendants: true, static: true }, { propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
|
|
890
|
-
<ng-container
|
|
891
|
-
kendoChartLocalizedMessages
|
|
892
|
-
i18n-noData="kendo.chart.noData|The message to display when no series are defined, or all series are empty"
|
|
893
|
-
noData="No data available"
|
|
894
|
-
></ng-container>
|
|
895
|
-
<div #surface class="k-chart-surface">
|
|
896
|
-
@if (noData) {
|
|
897
|
-
<div class='k-chart-overlay' [style.display]="'none'">
|
|
898
|
-
<div class='k-no-data'>
|
|
899
|
-
@if (noDataTemplate) {
|
|
900
|
-
<ng-template [ngTemplateOutlet]="noDataTemplate.templateRef"></ng-template>
|
|
901
|
-
} @else {
|
|
902
|
-
{{ messageFor('noData') }}
|
|
903
|
-
}
|
|
904
|
-
</div>
|
|
905
|
-
</div>
|
|
906
|
-
}
|
|
907
|
-
</div>
|
|
908
|
-
<kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">
|
|
909
|
-
</kendo-chart-crosshair-tooltips-container>
|
|
910
|
-
<kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
|
|
911
|
-
</kendo-chart-tooltip-popup>
|
|
912
|
-
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
913
|
-
@if (donutCenterStyle && donutCenterTemplate) {
|
|
914
|
-
<div class="k-chart-donut-center" [ngStyle]="donutCenterStyle">
|
|
915
|
-
<ng-template [ngTemplateOutlet]="donutCenterTemplate.templateRef"></ng-template>
|
|
916
|
-
</div>
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
@if (showLicenseWatermark) {
|
|
920
|
-
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
921
|
-
}
|
|
922
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedChartMessagesDirective, selector: "[kendoChartLocalizedMessages]" }, { kind: "component", type: CrosshairTooltipsContainerComponent, selector: "kendo-chart-crosshair-tooltips-container", inputs: ["popupSettings"] }, { kind: "component", type: TooltipPopupComponent, selector: "kendo-chart-tooltip-popup", inputs: ["animate", "classNames", "wrapperClass"], outputs: ["leave"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]", inputs: ["licenseMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
923
|
-
}
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ChartComponent, decorators: [{
|
|
925
|
-
type: Component,
|
|
926
|
-
args: [{
|
|
927
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
928
|
-
exportAs: 'kendoChart',
|
|
929
|
-
providers: [
|
|
930
|
-
ConfigurationService,
|
|
931
|
-
TooltipTemplateService,
|
|
932
|
-
InstanceEventService,
|
|
933
|
-
LocalizationService,
|
|
934
|
-
{
|
|
935
|
-
provide: L10N_PREFIX,
|
|
936
|
-
useValue: 'kendo.chart'
|
|
937
|
-
}
|
|
938
|
-
],
|
|
939
|
-
selector: 'kendo-chart',
|
|
940
|
-
template: `
|
|
941
|
-
<ng-container
|
|
942
|
-
kendoChartLocalizedMessages
|
|
943
|
-
i18n-noData="kendo.chart.noData|The message to display when no series are defined, or all series are empty"
|
|
944
|
-
noData="No data available"
|
|
945
|
-
></ng-container>
|
|
946
|
-
<div #surface class="k-chart-surface">
|
|
947
|
-
@if (noData) {
|
|
948
|
-
<div class='k-chart-overlay' [style.display]="'none'">
|
|
949
|
-
<div class='k-no-data'>
|
|
950
|
-
@if (noDataTemplate) {
|
|
951
|
-
<ng-template [ngTemplateOutlet]="noDataTemplate.templateRef"></ng-template>
|
|
952
|
-
} @else {
|
|
953
|
-
{{ messageFor('noData') }}
|
|
954
|
-
}
|
|
955
|
-
</div>
|
|
956
|
-
</div>
|
|
957
|
-
}
|
|
958
|
-
</div>
|
|
959
|
-
<kendo-chart-crosshair-tooltips-container [popupSettings]="popupSettings">
|
|
960
|
-
</kendo-chart-crosshair-tooltips-container>
|
|
961
|
-
<kendo-chart-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
|
|
962
|
-
</kendo-chart-tooltip-popup>
|
|
963
|
-
<kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
|
|
964
|
-
@if (donutCenterStyle && donutCenterTemplate) {
|
|
965
|
-
<div class="k-chart-donut-center" [ngStyle]="donutCenterStyle">
|
|
966
|
-
<ng-template [ngTemplateOutlet]="donutCenterTemplate.templateRef"></ng-template>
|
|
967
|
-
</div>
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
@if (showLicenseWatermark) {
|
|
971
|
-
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
972
|
-
}
|
|
973
|
-
`,
|
|
974
|
-
standalone: true,
|
|
975
|
-
imports: [LocalizedChartMessagesDirective, CrosshairTooltipsContainerComponent, TooltipPopupComponent, ResizeSensorComponent, NgStyle, NgTemplateOutlet, WatermarkOverlayComponent]
|
|
976
|
-
}]
|
|
977
|
-
}], ctorParameters: () => [{ type: i1.ConfigurationService }, { type: i2.ThemeService }, { type: i0.ElementRef }, { type: i3.IntlService }, { type: i4.LocalizationService }, { type: i0.NgZone }, { type: i5.InstanceEventService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }], propDecorators: { pannable: [{
|
|
978
|
-
type: Input
|
|
979
|
-
}], renderAs: [{
|
|
980
|
-
type: Input
|
|
981
|
-
}], seriesColors: [{
|
|
982
|
-
type: Input
|
|
983
|
-
}], subtitle: [{
|
|
984
|
-
type: Input
|
|
985
|
-
}], title: [{
|
|
986
|
-
type: Input
|
|
987
|
-
}], noData: [{
|
|
988
|
-
type: Input
|
|
989
|
-
}], observeStyles: [{
|
|
990
|
-
type: Input
|
|
991
|
-
}], transitions: [{
|
|
992
|
-
type: Input
|
|
993
|
-
}], zoomable: [{
|
|
994
|
-
type: Input
|
|
995
|
-
}], axisDefaults: [{
|
|
996
|
-
type: Input
|
|
997
|
-
}], categoryAxis: [{
|
|
998
|
-
type: Input
|
|
999
|
-
}], chartArea: [{
|
|
1000
|
-
type: Input
|
|
1001
|
-
}], legend: [{
|
|
1002
|
-
type: Input
|
|
1003
|
-
}], panes: [{
|
|
1004
|
-
type: Input
|
|
1005
|
-
}], paneDefaults: [{
|
|
1006
|
-
type: Input
|
|
1007
|
-
}], plotArea: [{
|
|
1008
|
-
type: Input
|
|
1009
|
-
}], series: [{
|
|
1010
|
-
type: Input
|
|
1011
|
-
}], seriesDefaults: [{
|
|
1012
|
-
type: Input
|
|
1013
|
-
}], tooltip: [{
|
|
1014
|
-
type: Input
|
|
1015
|
-
}], valueAxis: [{
|
|
1016
|
-
type: Input
|
|
1017
|
-
}], xAxis: [{
|
|
1018
|
-
type: Input
|
|
1019
|
-
}], yAxis: [{
|
|
1020
|
-
type: Input
|
|
1021
|
-
}], axisLabelClick: [{
|
|
1022
|
-
type: Output
|
|
1023
|
-
}], drag: [{
|
|
1024
|
-
type: Output
|
|
1025
|
-
}], dragEnd: [{
|
|
1026
|
-
type: Output
|
|
1027
|
-
}], dragStart: [{
|
|
1028
|
-
type: Output
|
|
1029
|
-
}], legendItemHover: [{
|
|
1030
|
-
type: Output
|
|
1031
|
-
}], legendItemLeave: [{
|
|
1032
|
-
type: Output
|
|
1033
|
-
}], noteClick: [{
|
|
1034
|
-
type: Output
|
|
1035
|
-
}], noteHover: [{
|
|
1036
|
-
type: Output
|
|
1037
|
-
}], noteLeave: [{
|
|
1038
|
-
type: Output
|
|
1039
|
-
}], paneRender: [{
|
|
1040
|
-
type: Output
|
|
1041
|
-
}], plotAreaClick: [{
|
|
1042
|
-
type: Output
|
|
1043
|
-
}], plotAreaHover: [{
|
|
1044
|
-
type: Output
|
|
1045
|
-
}], plotAreaLeave: [{
|
|
1046
|
-
type: Output
|
|
1047
|
-
}], render: [{
|
|
1048
|
-
type: Output
|
|
1049
|
-
}], select: [{
|
|
1050
|
-
type: Output
|
|
1051
|
-
}], selectEnd: [{
|
|
1052
|
-
type: Output
|
|
1053
|
-
}], selectStart: [{
|
|
1054
|
-
type: Output
|
|
1055
|
-
}], seriesClick: [{
|
|
1056
|
-
type: Output
|
|
1057
|
-
}], drilldown: [{
|
|
1058
|
-
type: Output
|
|
1059
|
-
}], seriesHover: [{
|
|
1060
|
-
type: Output
|
|
1061
|
-
}], seriesOver: [{
|
|
1062
|
-
type: Output
|
|
1063
|
-
}], seriesLeave: [{
|
|
1064
|
-
type: Output
|
|
1065
|
-
}], zoom: [{
|
|
1066
|
-
type: Output
|
|
1067
|
-
}], zoomEnd: [{
|
|
1068
|
-
type: Output
|
|
1069
|
-
}], zoomStart: [{
|
|
1070
|
-
type: Output
|
|
1071
|
-
}], legendItemClick: [{
|
|
1072
|
-
type: Output
|
|
1073
|
-
}], drilldownLevelChange: [{
|
|
1074
|
-
type: Output
|
|
1075
|
-
}], resizeRateLimit: [{
|
|
1076
|
-
type: Input
|
|
1077
|
-
}], popupSettings: [{
|
|
1078
|
-
type: Input
|
|
1079
|
-
}], drilldownLevel: [{
|
|
1080
|
-
type: Input
|
|
1081
|
-
}], seriesCollectionComponent: [{
|
|
1082
|
-
type: ContentChildren,
|
|
1083
|
-
args: [SeriesComponent]
|
|
1084
|
-
}], seriesComponents: [{
|
|
1085
|
-
type: ContentChildren,
|
|
1086
|
-
args: [SeriesItemComponent, { descendants: true }]
|
|
1087
|
-
}], donutCenterTemplate: [{
|
|
1088
|
-
type: ContentChild,
|
|
1089
|
-
args: [DonutCenterTemplateDirective, { static: false }]
|
|
1090
|
-
}], noDataTemplate: [{
|
|
1091
|
-
type: ContentChild,
|
|
1092
|
-
args: [NoDataTemplateDirective, { static: false }]
|
|
1093
|
-
}], tooltipInstance: [{
|
|
1094
|
-
type: ViewChild,
|
|
1095
|
-
args: [TooltipPopupComponent, { static: true }]
|
|
1096
|
-
}], crossahirTooltips: [{
|
|
1097
|
-
type: ViewChild,
|
|
1098
|
-
args: [CrosshairTooltipsContainerComponent, { static: true }]
|
|
1099
|
-
}], surfaceElement: [{
|
|
1100
|
-
type: ViewChild,
|
|
1101
|
-
args: ['surface', { static: true }]
|
|
1102
|
-
}] } });
|