@progress/kendo-charts 2.12.3-develop.4 → 2.13.0-develop.2
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/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/plotarea/categorical-plotarea.js +9 -6
- package/dist/es2015/chart/plotarea/categorical-plotarea.js +9 -6
- package/dist/npm/api-types/axis-range.interface.d.ts +14 -0
- package/dist/npm/api-types/chart-axis.interface.d.ts +50 -0
- package/dist/npm/api-types/chart-pane.interface.d.ts +16 -0
- package/dist/npm/api-types/chart-plotarea.interface.d.ts +16 -0
- package/dist/npm/api-types/event-axis-options.interface.d.ts +9 -0
- package/dist/npm/api-types/event-series-options.interface.d.ts +19 -0
- package/dist/npm/api-types/series-point.interface.d.ts +46 -0
- package/dist/npm/api-types.d.ts +7 -0
- package/dist/npm/argument-types/axis-label-content-args.interface.d.ts +41 -0
- package/dist/npm/argument-types/axis-label-visual-args.interface.d.ts +52 -0
- package/dist/npm/argument-types/axis-note-content-args.interface.d.ts +19 -0
- package/dist/npm/argument-types/axis-note-visual-args.interface.d.ts +32 -0
- package/dist/npm/argument-types/error-bars-value-args.interface.d.ts +29 -0
- package/dist/npm/argument-types/error-bars-visual-args.interface.d.ts +37 -0
- package/dist/npm/argument-types/highlight-toggle-args.interface.d.ts +41 -0
- package/dist/npm/argument-types/highlight-visual-args.interface.d.ts +63 -0
- package/dist/npm/argument-types/legend-item-visual-args.interface.d.ts +43 -0
- package/dist/npm/argument-types/legend-labels-content-args.interface.d.ts +31 -0
- package/dist/npm/argument-types/markers-visual-args.interface.d.ts +47 -0
- package/dist/npm/argument-types/plot-band-label-visual-args.interface.d.ts +32 -0
- package/dist/npm/argument-types/series-labels-content-args.interface.d.ts +54 -0
- package/dist/npm/argument-types/series-labels-visual-args.interface.d.ts +77 -0
- package/dist/npm/argument-types/series-note-content-args.interface.d.ts +29 -0
- package/dist/npm/argument-types/series-note-visual-args.interface.d.ts +52 -0
- package/dist/npm/argument-types/series-visual-args.interface.d.ts +95 -0
- package/dist/npm/argument-types/title-visual-args.interface.d.ts +32 -0
- package/dist/npm/chart-options.d.ts +226 -0
- package/dist/npm/chart.d.ts +4 -3
- package/dist/npm/field-types/auto-base-unit-steps.interface.d.ts +62 -0
- package/dist/npm/field-types/axis-labels-position.d.ts +62 -0
- package/dist/npm/field-types/axis-line.interface.d.ts +41 -0
- package/dist/npm/field-types/axis-ticks.interface.d.ts +45 -0
- package/dist/npm/field-types/axis-title-position.d.ts +62 -0
- package/dist/npm/field-types/base-unit.d.ts +82 -0
- package/dist/npm/field-types/border.interface.d.ts +19 -4
- package/dist/npm/field-types/bullet-target-line.interface.d.ts +9 -0
- package/dist/npm/field-types/bullet-target.interface.d.ts +23 -0
- package/dist/npm/field-types/category-base-unit.d.ts +113 -0
- package/dist/npm/field-types/dash-type.d.ts +87 -5
- package/dist/npm/field-types/date-formats.interface.d.ts +47 -0
- package/dist/npm/field-types/drag-action.interface.d.ts +17 -0
- package/dist/npm/field-types/error-bar-line.interface.d.ts +16 -0
- package/dist/npm/field-types/grid-lines.interface.d.ts +47 -0
- package/dist/npm/field-types/highlight-line.interface.d.ts +27 -0
- package/dist/npm/field-types/label-connectors.interface.d.ts +19 -0
- package/dist/npm/field-types/label-rotation.interface.d.ts +24 -0
- package/dist/npm/field-types/legend-labels.interface.d.ts +37 -0
- package/dist/npm/field-types/line-style.d.ts +90 -0
- package/dist/npm/field-types/lock-axis.d.ts +19 -0
- package/dist/npm/field-types/margin.interface.d.ts +15 -5
- package/dist/npm/field-types/marker-type.d.ts +94 -0
- package/dist/npm/field-types/modifier-key.d.ts +30 -0
- package/dist/npm/field-types/mousewheel-select.interface.d.ts +17 -0
- package/dist/npm/field-types/mousewheel-zoom.interface.d.ts +21 -0
- package/dist/npm/field-types/negative-bubble-values.interface.d.ts +15 -0
- package/dist/npm/field-types/note-label-position.d.ts +107 -0
- package/dist/npm/field-types/note-line.interface.d.ts +26 -0
- package/dist/npm/field-types/note-position.d.ts +104 -0
- package/dist/npm/field-types/overlay.interface.d.ts +15 -0
- package/dist/npm/field-types/padding.interface.d.ts +11 -1
- package/dist/npm/field-types/plot-band-label.interface.d.ts +100 -0
- package/dist/npm/field-types/plot-band.interface.d.ts +53 -0
- package/dist/npm/field-types/series-labels-alignment.d.ts +16 -0
- package/dist/npm/field-types/series-labels-position.d.ts +28 -0
- package/dist/npm/field-types/series-line.interface.d.ts +32 -0
- package/dist/npm/field-types/series-mean.interface.d.ts +26 -0
- package/dist/npm/field-types/series-median.interface.d.ts +26 -0
- package/dist/npm/field-types/series-pattern.interface.d.ts +77 -67
- package/dist/npm/field-types/series-stack.interface.d.ts +19 -0
- package/dist/npm/field-types/series-type.d.ts +244 -0
- package/dist/npm/field-types/series-whiskers.interface.d.ts +26 -0
- package/dist/npm/field-types/trendline-forecast.interface.d.ts +14 -0
- package/dist/npm/field-types/week-start-day.enum.d.ts +49 -0
- package/dist/npm/field-types.d.ts +46 -6
- package/dist/npm/main.d.ts +4 -0
- package/dist/npm/main.js +11 -6
- package/dist/npm/option-types/axis-crosshair-tooltip.interface.d.ts +49 -0
- package/dist/npm/option-types/axis-defaults/crosshair.interface.d.ts +43 -0
- package/dist/npm/option-types/axis-defaults/crosshair.tooltip.interface.d.ts +6 -0
- package/dist/npm/option-types/axis-defaults/labels.interface.d.ts +69 -0
- package/dist/npm/option-types/axis-defaults/title.interface.d.ts +63 -0
- package/dist/npm/option-types/axis-defaults.interface.d.ts +101 -0
- package/dist/npm/option-types/category-axis-item/crosshair.interface.d.ts +40 -0
- package/dist/npm/option-types/category-axis-item/crosshair.tooltip.interface.d.ts +6 -0
- package/dist/npm/option-types/category-axis-item/labels.interface.d.ts +115 -0
- package/dist/npm/option-types/category-axis-item/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/category-axis-item/notes.interface.d.ts +40 -0
- package/dist/npm/option-types/category-axis-item/notes.label.interface.d.ts +55 -0
- package/dist/npm/option-types/category-axis-item/range-labels.interface.d.ts +28 -0
- package/dist/npm/option-types/category-axis-item/select.interface.d.ts +35 -0
- package/dist/npm/option-types/category-axis-item/title.interface.d.ts +65 -0
- package/dist/npm/option-types/category-axis-item.interface.d.ts +195 -0
- package/dist/npm/option-types/chart-area.interface.d.ts +36 -0
- package/dist/npm/option-types/legend/inactive-items.interface.d.ts +12 -0
- package/dist/npm/option-types/legend/item.interface.d.ts +124 -0
- package/dist/npm/option-types/legend/legend-title.interface.d.ts +67 -0
- package/dist/npm/option-types/legend/markers.interface.d.ts +34 -0
- package/dist/npm/option-types/legend.interface.d.ts +120 -0
- package/dist/npm/option-types/navigator/hint-content-args.interface.d.ts +15 -0
- package/dist/npm/option-types/navigator/hint.interface.d.ts +27 -0
- package/dist/npm/option-types/navigator/select.interface.d.ts +22 -0
- package/dist/npm/option-types/navigator.interface.d.ts +56 -0
- package/dist/npm/option-types/pane/title.interface.d.ts +65 -0
- package/dist/npm/option-types/pane-defaults/title.interface.d.ts +51 -0
- package/dist/npm/option-types/pane-defaults.interface.d.ts +53 -0
- package/dist/npm/option-types/pane.interface.d.ts +53 -0
- package/dist/npm/option-types/plot-area.interface.d.ts +33 -0
- package/dist/npm/option-types/series-defaults/labels.from.interface.d.ts +54 -0
- package/dist/npm/option-types/series-defaults/labels.interface.d.ts +78 -0
- package/dist/npm/option-types/series-defaults/labels.to.interface.d.ts +57 -0
- package/dist/npm/option-types/series-defaults/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/series-defaults/notes.interface.d.ts +31 -0
- package/dist/npm/option-types/series-defaults/notes.label.interface.d.ts +58 -0
- package/dist/npm/option-types/series-defaults/tooltip.interface.d.ts +54 -0
- package/dist/npm/option-types/series-defaults.interface.d.ts +218 -0
- package/dist/npm/option-types/series-item/error-bars.interface.d.ts +60 -0
- package/dist/npm/option-types/series-item/extremes.interface.d.ts +32 -0
- package/dist/npm/option-types/series-item/highlight.interface.d.ts +64 -0
- package/dist/npm/option-types/series-item/labels.from.interface.d.ts +73 -0
- package/dist/npm/option-types/series-item/labels.interface.d.ts +104 -0
- package/dist/npm/option-types/series-item/labels.to.interface.d.ts +74 -0
- package/dist/npm/option-types/series-item/markers-highlight.interface.d.ts +22 -0
- package/dist/npm/option-types/series-item/markers.interface.d.ts +59 -0
- package/dist/npm/option-types/series-item/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/series-item/notes.interface.d.ts +35 -0
- package/dist/npm/option-types/series-item/notes.label.interface.d.ts +59 -0
- package/dist/npm/option-types/series-item/outliers.interface.d.ts +32 -0
- package/dist/npm/option-types/series-item/tooltip.interface.d.ts +59 -0
- package/dist/npm/option-types/series-item/trendline.interface.d.ts +31 -0
- package/dist/npm/option-types/series-item.interface.d.ts +645 -0
- package/dist/npm/option-types/subtitle.interface.d.ts +74 -0
- package/dist/npm/option-types/title.interface.d.ts +75 -0
- package/dist/npm/option-types/tooltip-border.interface.d.ts +12 -0
- package/dist/npm/option-types/tooltip.interface.d.ts +65 -0
- package/dist/npm/option-types/value-axis-item/crosshair.interface.d.ts +36 -0
- package/dist/npm/option-types/value-axis-item/crosshair.tooltip.interface.d.ts +6 -0
- package/dist/npm/option-types/value-axis-item/labels.interface.d.ts +101 -0
- package/dist/npm/option-types/value-axis-item/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/value-axis-item/notes.interface.d.ts +39 -0
- package/dist/npm/option-types/value-axis-item/notes.label.interface.d.ts +60 -0
- package/dist/npm/option-types/value-axis-item/title.interface.d.ts +64 -0
- package/dist/npm/option-types/value-axis-item.interface.d.ts +148 -0
- package/dist/npm/option-types/x-axis-item/crosshair.interface.d.ts +33 -0
- package/dist/npm/option-types/x-axis-item/crosshair.tooltip.interface.d.ts +6 -0
- package/dist/npm/option-types/x-axis-item/labels.interface.d.ts +109 -0
- package/dist/npm/option-types/x-axis-item/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/x-axis-item/notes.interface.d.ts +40 -0
- package/dist/npm/option-types/x-axis-item/notes.label.interface.d.ts +58 -0
- package/dist/npm/option-types/x-axis-item/title.interface.d.ts +65 -0
- package/dist/npm/option-types/x-axis-item.interface.d.ts +165 -0
- package/dist/npm/option-types/y-axis-item/crosshair.interface.d.ts +36 -0
- package/dist/npm/option-types/y-axis-item/crosshair.tooltip.interface.d.ts +6 -0
- package/dist/npm/option-types/y-axis-item/labels.interface.d.ts +107 -0
- package/dist/npm/option-types/y-axis-item/notes.icon.interface.d.ts +32 -0
- package/dist/npm/option-types/y-axis-item/notes.interface.d.ts +40 -0
- package/dist/npm/option-types/y-axis-item/notes.label.interface.d.ts +58 -0
- package/dist/npm/option-types/y-axis-item/title.interface.d.ts +65 -0
- package/dist/npm/option-types/y-axis-item.interface.d.ts +154 -0
- package/dist/npm/option-types/zoomable.interface.d.ts +16 -0
- package/dist/npm/property-types.d.ts +151 -0
- package/dist/npm/sankey.d.ts +5 -3
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +4 -2
|
@@ -131,7 +131,8 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
131
131
|
this._seriesPointsCache = {};
|
|
132
132
|
this._currentPointsCache = {};
|
|
133
133
|
categoryAxis.options.dataItems = [];
|
|
134
|
-
|
|
134
|
+
|
|
135
|
+
series = this.aggregateSeries(series, categoryAxis);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
const min = range ? range.min : 0;
|
|
@@ -304,7 +305,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
304
305
|
return result;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
aggregateSeries(series, categoryAxis, range) {
|
|
308
|
+
aggregateSeries(series, categoryAxis, range = null) {
|
|
308
309
|
const srcData = series.data;
|
|
309
310
|
if (!srcData.length) {
|
|
310
311
|
return series;
|
|
@@ -314,11 +315,13 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
314
315
|
const result = deepExtend({}, series);
|
|
315
316
|
const aggregator = new SeriesAggregator(deepExtend({}, series), SeriesBinder.current, DefaultAggregates.current);
|
|
316
317
|
const data = result.data = [];
|
|
317
|
-
|
|
318
318
|
const dataItems = categoryAxis.options.dataItems || [];
|
|
319
319
|
|
|
320
|
+
// Use full range if not provided, otherwise use current range to aggregate only visible categories
|
|
321
|
+
const aggregateRange = range || { min: 0, max: srcPoints.length - 1 };
|
|
322
|
+
|
|
320
323
|
const categoryItem = (idx) => {
|
|
321
|
-
const categoryIdx = idx -
|
|
324
|
+
const categoryIdx = idx - aggregateRange.min;
|
|
322
325
|
let point = srcPoints[idx];
|
|
323
326
|
if (!point) {
|
|
324
327
|
point = srcPoints[idx] = {};
|
|
@@ -335,7 +338,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
335
338
|
return point;
|
|
336
339
|
};
|
|
337
340
|
|
|
338
|
-
for (let idx =
|
|
341
|
+
for (let idx = aggregateRange.min; idx <= aggregateRange.max; idx++) {
|
|
339
342
|
const point = categoryItem(idx);
|
|
340
343
|
data[point.categoryIx] = point.item;
|
|
341
344
|
|
|
@@ -345,7 +348,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
345
348
|
}
|
|
346
349
|
|
|
347
350
|
if (inArray(result.type, OUT_OF_RANGE_SERIES)) {
|
|
348
|
-
createOutOfRangePoints(result,
|
|
351
|
+
createOutOfRangePoints(result, aggregateRange, categoryAxis.totalCount(), categoryItem, (idx) => srcPoints[idx]);
|
|
349
352
|
}
|
|
350
353
|
|
|
351
354
|
categoryAxis.options.dataItems = dataItems;
|
|
@@ -131,7 +131,8 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
131
131
|
this._seriesPointsCache = {};
|
|
132
132
|
this._currentPointsCache = {};
|
|
133
133
|
categoryAxis.options.dataItems = [];
|
|
134
|
-
|
|
134
|
+
|
|
135
|
+
series = this.aggregateSeries(series, categoryAxis);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
const min = range ? range.min : 0;
|
|
@@ -304,7 +305,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
304
305
|
return result;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
|
-
aggregateSeries(series, categoryAxis, range) {
|
|
308
|
+
aggregateSeries(series, categoryAxis, range = null) {
|
|
308
309
|
const srcData = series.data;
|
|
309
310
|
if (!srcData.length) {
|
|
310
311
|
return series;
|
|
@@ -314,11 +315,13 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
314
315
|
const result = deepExtend({}, series);
|
|
315
316
|
const aggregator = new SeriesAggregator(deepExtend({}, series), SeriesBinder.current, DefaultAggregates.current);
|
|
316
317
|
const data = result.data = [];
|
|
317
|
-
|
|
318
318
|
const dataItems = categoryAxis.options.dataItems || [];
|
|
319
319
|
|
|
320
|
+
// Use full range if not provided, otherwise use current range to aggregate only visible categories
|
|
321
|
+
const aggregateRange = range || { min: 0, max: srcPoints.length - 1 };
|
|
322
|
+
|
|
320
323
|
const categoryItem = (idx) => {
|
|
321
|
-
const categoryIdx = idx -
|
|
324
|
+
const categoryIdx = idx - aggregateRange.min;
|
|
322
325
|
let point = srcPoints[idx];
|
|
323
326
|
if (!point) {
|
|
324
327
|
point = srcPoints[idx] = {};
|
|
@@ -335,7 +338,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
335
338
|
return point;
|
|
336
339
|
};
|
|
337
340
|
|
|
338
|
-
for (let idx =
|
|
341
|
+
for (let idx = aggregateRange.min; idx <= aggregateRange.max; idx++) {
|
|
339
342
|
const point = categoryItem(idx);
|
|
340
343
|
data[point.categoryIx] = point.item;
|
|
341
344
|
|
|
@@ -345,7 +348,7 @@ class CategoricalPlotArea extends PlotAreaBase {
|
|
|
345
348
|
}
|
|
346
349
|
|
|
347
350
|
if (inArray(result.type, OUT_OF_RANGE_SERIES)) {
|
|
348
|
-
createOutOfRangePoints(result,
|
|
351
|
+
createOutOfRangePoints(result, aggregateRange, categoryAxis.totalCount(), categoryItem, (idx) => srcPoints[idx]);
|
|
349
352
|
}
|
|
350
353
|
|
|
351
354
|
categoryAxis.options.dataItems = dataItems;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { geometry } from '@progress/kendo-drawing';
|
|
2
|
+
import { AxisRange } from './axis-range.interface';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* An interface for the Chart axes API.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChartAxisType {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the axis range.
|
|
10
|
+
*
|
|
11
|
+
* @returns {AxisRange} - The axis range.
|
|
12
|
+
*/
|
|
13
|
+
range(): AxisRange;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Returns a slot that is based on the specified `from` and `to` values.
|
|
17
|
+
*
|
|
18
|
+
* {% platform_content angular %}
|
|
19
|
+
* See [Custom Plot Bands](https://www.telerik.com/kendo-angular-ui/components/charts/elements/plot-bands#custom-plot-bands) example.
|
|
20
|
+
* {% endplatform_content %}
|
|
21
|
+
* {% platform_content react %}
|
|
22
|
+
* See [Custom Plot Bands](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/plot-bands#toc-custom-plot-bands) example.
|
|
23
|
+
* {% endplatform_content %}
|
|
24
|
+
* {% platform_content vue %}
|
|
25
|
+
* See [Custom Plot Bands](https://www.telerik.com/kendo-vue-ui/components/charts/elements/plot-bands#custom-plot-bands) example.
|
|
26
|
+
* {% endplatform_content %}
|
|
27
|
+
*
|
|
28
|
+
* @param from - The slot start value.
|
|
29
|
+
* @param to - The end slot value. If not specified, the `from` value is used.
|
|
30
|
+
* @param limit - The parameters for the exported image.
|
|
31
|
+
* @returns {Promise<string>} - Indicates whether the slot is limited to the current range.
|
|
32
|
+
* By default, the range is limited.
|
|
33
|
+
*/
|
|
34
|
+
slot(from: string | number | Date, to?: string | number | Date, limit?: boolean): geometry.Rect | geometry.Arc;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Returns the value that corresponds to the passed surface point.
|
|
38
|
+
*
|
|
39
|
+
* @param { Point } point - The surface point of the Chart.
|
|
40
|
+
* @returns {string | number | Date} - The value that corresponds to the point.
|
|
41
|
+
*/
|
|
42
|
+
value(point: geometry.Point): string | number | Date;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Returns the axis range which is determined by the minimum and maximum point values that are associated with the axis.
|
|
46
|
+
*
|
|
47
|
+
* @returns {AxisRange} - The value range.
|
|
48
|
+
*/
|
|
49
|
+
valueRange(): AxisRange;
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Group } from '@progress/kendo-drawing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An interface for the Chart panes.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartPaneType {
|
|
7
|
+
/**
|
|
8
|
+
* The group which holds the Drawing elements of the Chart.
|
|
9
|
+
*/
|
|
10
|
+
chartsVisual: Group;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The Drawing group that is used to draw the pane.
|
|
14
|
+
*/
|
|
15
|
+
visual: Group;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MultiPath, Group } from '@progress/kendo-drawing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* An interface for the plot area of the Chart.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartPlotAreaType {
|
|
7
|
+
/**
|
|
8
|
+
* The Drawing `MultiPath` that is used to draw the background.
|
|
9
|
+
*/
|
|
10
|
+
backgroundVisual: MultiPath;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The Drawing `Group` that is used to draw the plot area.
|
|
14
|
+
*/
|
|
15
|
+
visual: Group;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The series options for the Chart events.
|
|
3
|
+
*/
|
|
4
|
+
export interface EventSeriesOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The series index.
|
|
7
|
+
*/
|
|
8
|
+
index: number;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The series name.
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The series visibility.
|
|
17
|
+
*/
|
|
18
|
+
visible: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { drawing } from '@progress/kendo-drawing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A series point.
|
|
5
|
+
*/
|
|
6
|
+
export interface SeriesPointType {
|
|
7
|
+
/**
|
|
8
|
+
* The point category value. Available only for the Categorical points (Bar, Line, and other).
|
|
9
|
+
*/
|
|
10
|
+
category?: string | Date | number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The point `dataItem`.
|
|
14
|
+
*/
|
|
15
|
+
dataItem?: any;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The point options.
|
|
19
|
+
*/
|
|
20
|
+
options?: any;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The point value represented as a percentage value. Available only for the Donut, Pie, and 100% Stacked chart points.
|
|
24
|
+
*/
|
|
25
|
+
percentage?: number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The sum of point values since the last `"runningTotal"` summary point. Available for the Waterfall series points.
|
|
29
|
+
*/
|
|
30
|
+
runningTotal?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The sum of all previous series values. Available for the Waterfall series points.
|
|
34
|
+
*/
|
|
35
|
+
total?: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The point value.
|
|
39
|
+
*/
|
|
40
|
+
value?: any;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The Drawing element used to draw the point.
|
|
44
|
+
*/
|
|
45
|
+
visual?: drawing.Element;
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './api-types/axis-range.interface';
|
|
2
|
+
export * from './api-types/chart-axis.interface';
|
|
3
|
+
export * from './api-types/chart-pane.interface';
|
|
4
|
+
export * from './api-types/chart-plotarea.interface';
|
|
5
|
+
export * from './api-types/event-axis-options.interface';
|
|
6
|
+
export * from './api-types/event-series-options.interface';
|
|
7
|
+
export * from './api-types/series-point.interface';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the axis label `content` function.
|
|
3
|
+
*/
|
|
4
|
+
export interface AxisLabelContentArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the value associated with the axis label.
|
|
7
|
+
*/
|
|
8
|
+
value: any;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the data item, if set.
|
|
12
|
+
*
|
|
13
|
+
* Available for category axis with set `categoryField`.
|
|
14
|
+
*/
|
|
15
|
+
dataItem?: any;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the default label text.
|
|
19
|
+
*/
|
|
20
|
+
text: string;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the index of the label.
|
|
24
|
+
*/
|
|
25
|
+
index: number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the total number of rendered labels.
|
|
29
|
+
*/
|
|
30
|
+
count: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the default format string of the label.
|
|
34
|
+
*/
|
|
35
|
+
format: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the default culture (if set) of the label.
|
|
39
|
+
*/
|
|
40
|
+
culture: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the axis label `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface AxisLabelVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a function that gets the default visual.
|
|
10
|
+
*/
|
|
11
|
+
createVisual: () => drawing.Element;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the default culture (if set) of the label.
|
|
15
|
+
*/
|
|
16
|
+
culture: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the data item if a field is specified.
|
|
20
|
+
*/
|
|
21
|
+
dataItem?: any;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the default format of the label.
|
|
25
|
+
*/
|
|
26
|
+
format: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the label options.
|
|
30
|
+
*/
|
|
31
|
+
options: any;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the rectangle that defines the normal position of the visual.
|
|
35
|
+
*/
|
|
36
|
+
rect: geometry.Rect;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the instance of the Chart component.
|
|
40
|
+
*/
|
|
41
|
+
sender: TChart;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the text of the label.
|
|
45
|
+
*/
|
|
46
|
+
text: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the value of the label.
|
|
50
|
+
*/
|
|
51
|
+
value: any;
|
|
52
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the axis note `content` function.
|
|
3
|
+
*/
|
|
4
|
+
export interface AxisNoteContentArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the original data item for the note.
|
|
7
|
+
*/
|
|
8
|
+
dataItem: any;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the text of the note.
|
|
12
|
+
*/
|
|
13
|
+
text: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the value of the note.
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the axis note `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface AxisNoteVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a function that gets the default visual.
|
|
10
|
+
*/
|
|
11
|
+
createVisual: () => drawing.Element;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the note options.
|
|
15
|
+
*/
|
|
16
|
+
options: any;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the rectangle that defines the normal position of the visual.
|
|
20
|
+
*/
|
|
21
|
+
rect: geometry.Rect;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the instance of the Chart component.
|
|
25
|
+
*/
|
|
26
|
+
sender: TChart;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the value of the note.
|
|
30
|
+
*/
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the error bars `value` function.
|
|
3
|
+
*/
|
|
4
|
+
export interface ErrorBarsValueArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the category of the point.
|
|
7
|
+
*/
|
|
8
|
+
category: any;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provides the data item associated with the point.
|
|
12
|
+
*/
|
|
13
|
+
dataItem: any;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the series to which the point belongs.
|
|
17
|
+
*/
|
|
18
|
+
series: any;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the value of the point.
|
|
22
|
+
*/
|
|
23
|
+
value: any;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines the index of the point in the series.
|
|
27
|
+
*/
|
|
28
|
+
index: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the error bars `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface ErrorBarsVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a function that gets the default visual.
|
|
10
|
+
*/
|
|
11
|
+
createVisual: () => drawing.Element;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the high value of the error bar.
|
|
15
|
+
*/
|
|
16
|
+
high: number;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the low value of the error bar.
|
|
20
|
+
*/
|
|
21
|
+
low: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the `options` object of the error bar.
|
|
25
|
+
*/
|
|
26
|
+
options: any;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the rectangle that defines the normal position of the visual.
|
|
30
|
+
*/
|
|
31
|
+
rect: geometry.Rect;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the instance of the Chart component.
|
|
35
|
+
*/
|
|
36
|
+
sender: TChart;
|
|
37
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { drawing } from '@progress/kendo-drawing';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents the context for the series highlight `toggle` function.
|
|
5
|
+
*/
|
|
6
|
+
export interface HighlightToggleArgs {
|
|
7
|
+
/**
|
|
8
|
+
* Provides a function that prevents the default highlight overlay from appearing.
|
|
9
|
+
*/
|
|
10
|
+
preventDefault: () => void;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates whether the highlight should be displayed.
|
|
14
|
+
*/
|
|
15
|
+
show: boolean;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the visual element that needs to be highlighted.
|
|
19
|
+
*/
|
|
20
|
+
visual: drawing.Element;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Specifies the category of the point.
|
|
24
|
+
*/
|
|
25
|
+
category: any;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the data item associated with the point.
|
|
29
|
+
*/
|
|
30
|
+
dataItem?: any;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the value of the point.
|
|
34
|
+
*/
|
|
35
|
+
value: any;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the series to which the point belongs.
|
|
39
|
+
*/
|
|
40
|
+
series?: any;
|
|
41
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the point highlight `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface HighlightVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the category of the point.
|
|
10
|
+
*/
|
|
11
|
+
category: any;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies a function that gets the default visual element.
|
|
15
|
+
*/
|
|
16
|
+
createVisual: () => drawing.Element;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Provides the data item associated with the point.
|
|
20
|
+
*/
|
|
21
|
+
dataItem: any;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Defines the options for the point.
|
|
25
|
+
*/
|
|
26
|
+
options: any;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Represents the value of the point as a percentage. Available only for the Donut, Pie, and 100% Stacked series.
|
|
30
|
+
*/
|
|
31
|
+
percentage?: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the rectangle that defines the normal position of the visual.
|
|
35
|
+
*/
|
|
36
|
+
rect: geometry.Rect;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the sum of point values since the last `runningTotal` summary point. Available for the Waterfall series.
|
|
40
|
+
*/
|
|
41
|
+
runningTotal?: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the instance of the Chart component.
|
|
45
|
+
*/
|
|
46
|
+
sender: TChart;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the series to which the point belongs.
|
|
50
|
+
*/
|
|
51
|
+
series: any;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the sum of all previous series values.
|
|
55
|
+
* Available for the Waterfall series.
|
|
56
|
+
*/
|
|
57
|
+
total?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Represents the value of the point.
|
|
61
|
+
*/
|
|
62
|
+
value: any;
|
|
63
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the legend item `visual` function.
|
|
6
|
+
* {% platform_content angular %}
|
|
7
|
+
* See the [Custom Marker Shapes](https://www.telerik.com/kendo-angular-ui/components/charts/elements/legend#custom-marker-shapes) example.
|
|
8
|
+
* {% endplatform_content %}
|
|
9
|
+
*/
|
|
10
|
+
export interface LegendItemVisualArgs<TChart = Chart> {
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Indicates if the legend item is active.
|
|
14
|
+
* Depends on whether the associated point or series is visible.
|
|
15
|
+
*/
|
|
16
|
+
active: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies a function that gets the default visual.
|
|
20
|
+
*/
|
|
21
|
+
createVisual: () => drawing.Element;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the options of the legend item.
|
|
25
|
+
*/
|
|
26
|
+
options: any;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the index of the point in the series.
|
|
30
|
+
* Available for the Donut, Pie, and Funnel series.
|
|
31
|
+
*/
|
|
32
|
+
pointIndex: any;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the instance of the Chart component.
|
|
36
|
+
*/
|
|
37
|
+
sender: TChart;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the item series.
|
|
41
|
+
*/
|
|
42
|
+
series: any;
|
|
43
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the legend label `content` function.
|
|
3
|
+
*/
|
|
4
|
+
export interface LegendLabelsContentArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the text of the legend item.
|
|
7
|
+
*/
|
|
8
|
+
text: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the series configuration object.
|
|
12
|
+
*/
|
|
13
|
+
series: any;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the point value of the Donut and Pie charts.
|
|
17
|
+
*/
|
|
18
|
+
value?: any;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the point value represented as a percentage.
|
|
22
|
+
* Available only for the Donut, Pie, Funnel and Pyramid charts.
|
|
23
|
+
*/
|
|
24
|
+
percentage?: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the data item associated with the point.
|
|
28
|
+
* Available only for the Donut, Pie, Funnel and Pyramid charts.
|
|
29
|
+
*/
|
|
30
|
+
dataItem?: any;
|
|
31
|
+
}
|