@progress/kendo-charts 2.12.3-develop.3 → 2.13.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/dist/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/core/utils/add-accessibility-attributes-to-visual.js +1 -1
- package/dist/es2015/core/utils/add-accessibility-attributes-to-visual.js +1 -1
- 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 +2 -2
- 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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the `content` function of the series label.
|
|
3
|
+
*/
|
|
4
|
+
export interface SeriesLabelsContentArgs {
|
|
5
|
+
/**
|
|
6
|
+
* Specifies the text of the label.
|
|
7
|
+
*/
|
|
8
|
+
text: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the original data item used to construct the point. If binding to an array, it will be `null`.
|
|
12
|
+
*/
|
|
13
|
+
dataItem: any;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the category name. Available for the Area, Bar, Column, Bubble, Donut, Funnel, Pyramid, Line, and Pie
|
|
17
|
+
* series.
|
|
18
|
+
*/
|
|
19
|
+
category: any;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the value of the point. The value can be a number or object containing each bound field.
|
|
23
|
+
*/
|
|
24
|
+
value: any;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the point value represented as a percentage.
|
|
28
|
+
* Available only for the Donut, Pie, and 100% Stacked charts.
|
|
29
|
+
*/
|
|
30
|
+
percentage?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the cumulative point value on the stack.
|
|
34
|
+
* Available only for the stackable series.
|
|
35
|
+
*/
|
|
36
|
+
stackValue?: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the sum of point values from the last `"runningTotal"` summary point onwards.
|
|
40
|
+
* Available for the Waterfall series.
|
|
41
|
+
*/
|
|
42
|
+
runningTotal?: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the sum of all previous series values.
|
|
46
|
+
* Available for the Waterfall series.
|
|
47
|
+
*/
|
|
48
|
+
total?: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the data series configuration object.
|
|
52
|
+
*/
|
|
53
|
+
series: any;
|
|
54
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the `visual` function of the series label.
|
|
6
|
+
*/
|
|
7
|
+
export interface SeriesLabelsVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a function that gets the default visual.
|
|
10
|
+
*/
|
|
11
|
+
createVisual: () => drawing.Element;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the options of the label.
|
|
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 text of the label.
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the data item associated with the point.
|
|
35
|
+
*/
|
|
36
|
+
dataItem: any;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the category of the point.
|
|
40
|
+
*/
|
|
41
|
+
category: any;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the value of the point.
|
|
45
|
+
*/
|
|
46
|
+
value: any;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the point value represented as a percentage.
|
|
50
|
+
* Available only for the Donut, Pie, and 100% stacked charts.
|
|
51
|
+
*/
|
|
52
|
+
percentage?: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the cumulative point value on the stack.
|
|
56
|
+
* Available only for the stackable series.
|
|
57
|
+
*/
|
|
58
|
+
stackValue?: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the sum of point values from the last `"runningTotal"` summary point onwards.
|
|
62
|
+
* Available for the Waterfall series.
|
|
63
|
+
*/
|
|
64
|
+
runningTotal?: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Specifies the sum of all previous series values.
|
|
68
|
+
* Available for the Waterfall series.
|
|
69
|
+
*/
|
|
70
|
+
total?: number;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Specifies the point series.
|
|
74
|
+
*/
|
|
75
|
+
series: any;
|
|
76
|
+
|
|
77
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the context for the series note `content` function.
|
|
3
|
+
*/
|
|
4
|
+
export interface SeriesNoteContentArgs {
|
|
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 point series.
|
|
17
|
+
*/
|
|
18
|
+
series: any;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Represents the value of the point.
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Defines the note text.
|
|
27
|
+
*/
|
|
28
|
+
text: string;
|
|
29
|
+
}
|
|
@@ -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 series note `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface SeriesNoteVisualArgs<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.
|
|
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 note.
|
|
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
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the point series.
|
|
40
|
+
*/
|
|
41
|
+
series: any;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Represents the value of the point.
|
|
45
|
+
*/
|
|
46
|
+
value: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Defines the note text.
|
|
50
|
+
*/
|
|
51
|
+
text: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Chart } from '../chart';
|
|
2
|
+
import { drawing, geometry } from '@progress/kendo-drawing';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Represents the context for the `visual` function of the series point.
|
|
6
|
+
*/
|
|
7
|
+
export interface SeriesVisualArgs<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.
|
|
15
|
+
*/
|
|
16
|
+
createVisual: () => drawing.Element;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the center point of the segment. Available for the Donut and Pie series.
|
|
20
|
+
*/
|
|
21
|
+
center?: geometry.Point;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Provides the data item associated with the point.
|
|
25
|
+
*/
|
|
26
|
+
dataItem: any;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the end angle of the segment. Available for the Donut and Pie series.
|
|
30
|
+
*/
|
|
31
|
+
endAngle?: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the inner radius of the segment. Available for the Donut and Pie series.
|
|
35
|
+
*/
|
|
36
|
+
innerRadius?: number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Defines the options for the point.
|
|
40
|
+
*/
|
|
41
|
+
options: any;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the point value represented as a percentage.
|
|
45
|
+
* Available only for the Donut, Pie, and 100% stacked charts.
|
|
46
|
+
*/
|
|
47
|
+
percentage?: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Specifies the segment points. Available for the Donut and Pie series.
|
|
51
|
+
*/
|
|
52
|
+
points?: geometry.Point[];
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Specifies the segment radius. Available for the Donut and Pie series.
|
|
56
|
+
*/
|
|
57
|
+
radius?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Specifies the rectangle that defines the normal position of the visual.
|
|
61
|
+
*/
|
|
62
|
+
rect: geometry.Rect;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the sum of point values from the last `"runningTotal"` summary point onwards.
|
|
66
|
+
* Available for the Waterfall series.
|
|
67
|
+
*/
|
|
68
|
+
runningTotal?: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Specifies the instance of the Chart component.
|
|
72
|
+
*/
|
|
73
|
+
sender: TChart;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the series to which the point belongs.
|
|
77
|
+
*/
|
|
78
|
+
series: any;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Specifies the start angle of the segment. Available for the Donut and Pie series.
|
|
82
|
+
*/
|
|
83
|
+
startAngle?: number;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Specifies the sum of all previous series values.
|
|
87
|
+
* Available for the Waterfall series.
|
|
88
|
+
*/
|
|
89
|
+
total?: number;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Represents the value of the point.
|
|
93
|
+
*/
|
|
94
|
+
value: any;
|
|
95
|
+
}
|
|
@@ -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 title `visual` function.
|
|
6
|
+
*/
|
|
7
|
+
export interface TitleVisualArgs<TChart = Chart> {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a function that gets the default visual.
|
|
10
|
+
*/
|
|
11
|
+
createVisual: () => drawing.Element;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the title 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 text of the title.
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AxisDefaults,
|
|
3
|
+
CategoryAxis,
|
|
4
|
+
ChartArea,
|
|
5
|
+
DragAction,
|
|
6
|
+
Legend,
|
|
7
|
+
Pane,
|
|
8
|
+
PaneDefaults,
|
|
9
|
+
PlotArea,
|
|
10
|
+
Series,
|
|
11
|
+
SeriesDefaults,
|
|
12
|
+
Title,
|
|
13
|
+
Tooltip,
|
|
14
|
+
ValueAxis,
|
|
15
|
+
XAxis,
|
|
16
|
+
YAxis,
|
|
17
|
+
Zoomable
|
|
18
|
+
} from './property-types';
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Represents a configuration object that groups all root-level Chart options.
|
|
23
|
+
*/
|
|
24
|
+
export interface ChartOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Defines whether the Chart can be panned.
|
|
27
|
+
* Panning is not available for the `Donut`, `Pie`, `Funnel`, `Pyramid`, `Polar`, and `Radar` series.
|
|
28
|
+
* {% platform_content angular %}
|
|
29
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-angular-ui/components/charts/pan-zoom) example.
|
|
30
|
+
* {% endplatform_content %}
|
|
31
|
+
* {% platform_content react %}
|
|
32
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-react-ui/components/charts/chart/pan-zoom) example.
|
|
33
|
+
* {% endplatform_content %}
|
|
34
|
+
* {% platform_content vue %}
|
|
35
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-vue-ui/components/charts/chart/pan-zoom) example.
|
|
36
|
+
* {% endplatform_content %}
|
|
37
|
+
*/
|
|
38
|
+
pannable?: boolean | DragAction;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Defines the preferred rendering engine.
|
|
42
|
+
* If the browser does not support it, the Chart switches to the first available mode.
|
|
43
|
+
*
|
|
44
|
+
* The supported values are:
|
|
45
|
+
* - `"svg"`—If available, renders the component as an inline `.svg` file.
|
|
46
|
+
* - `"canvas"`—If available, renders the component as a `canvas` element.
|
|
47
|
+
*
|
|
48
|
+
* {% platform_content angular %}
|
|
49
|
+
* See [Rendering Modes](https://www.telerik.com/kendo-angular-ui/components/charts/rendering) example.
|
|
50
|
+
* {% endplatform_content %}
|
|
51
|
+
* {% platform_content react %}
|
|
52
|
+
* See [Rendering Modes](https://www.telerik.com/kendo-react-ui/components/charts/chart/rendering) example.
|
|
53
|
+
* {% endplatform_content %}
|
|
54
|
+
* {% platform_content vue %}
|
|
55
|
+
* See [Rendering Modes](https://www.telerik.com/kendo-vue-ui/components/charts/chart/rendering) example.
|
|
56
|
+
* {% endplatform_content %}
|
|
57
|
+
*/
|
|
58
|
+
renderAs?: 'svg' | 'canvas';
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Defines the default colors for the Chart series.
|
|
62
|
+
* When all colors are used, new colors are pulled from the start again.
|
|
63
|
+
*/
|
|
64
|
+
seriesColors?: string[];
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Defines the configuration options or the text of the Chart subtitle.
|
|
68
|
+
*/
|
|
69
|
+
subtitle?: string | Title;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Defines the configuration options or the text of the Chart title.
|
|
73
|
+
*/
|
|
74
|
+
title?: string | Title;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Defines whether the Chart plays animations when it displays the series.
|
|
78
|
+
* By default, animations are enabled.
|
|
79
|
+
*/
|
|
80
|
+
transitions?: boolean;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @hidden
|
|
84
|
+
* Defines whether the Chart automatically repaints when its styles are modified through CSS variables.
|
|
85
|
+
*/
|
|
86
|
+
observeStyles?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Defines whether the Chart can be zoomed.
|
|
90
|
+
* Zooming is not available for the `Donut`, `Pie`, `Funnel`, `Pyramid`, `Polar`, and `Radar` series.
|
|
91
|
+
* {% platform_content angular %}
|
|
92
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-angular-ui/components/charts/pan-zoom) example.
|
|
93
|
+
* {% endplatform_content %}
|
|
94
|
+
* {% platform_content react %}
|
|
95
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-react-ui/components/charts/chart/pan-zoom) example.
|
|
96
|
+
* {% endplatform_content %}
|
|
97
|
+
* {% platform_content vue %}
|
|
98
|
+
* See the [Panning and Zooming](https://www.telerik.com/kendo-vue-ui/components/charts/chart/pan-zoom) example.
|
|
99
|
+
* {% endplatform_content %}
|
|
100
|
+
*/
|
|
101
|
+
zoomable?: boolean | Zoomable;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Defines the default options for all Chart axes. Accepts the options which are supported by
|
|
105
|
+
* `categoryAxis`, `valueAxis`, `xAxis`, and `yAxis`.
|
|
106
|
+
*
|
|
107
|
+
* {% platform_content angular %}
|
|
108
|
+
* See also the configuration components for the individual axes:
|
|
109
|
+
* * [CategoryAxisComponent](https://www.telerik.com/kendo-angular-ui/components/charts/api/categoryaxisitemcomponent)
|
|
110
|
+
* * [ValueAxisComponent](https://www.telerik.com/kendo-angular-ui/components/charts/api/valueaxisitemcomponent)
|
|
111
|
+
* * [XAxisComponent](https://www.telerik.com/kendo-angular-ui/components/charts/api/xaxisitemcomponent)
|
|
112
|
+
* * [YAxisComponent](https://www.telerik.com/kendo-angular-ui/components/charts/api/yaxisitemcomponent)
|
|
113
|
+
* {% endplatform_content %}
|
|
114
|
+
*/
|
|
115
|
+
axisDefaults?: AxisDefaults;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Defines the configuration options of the category axis.
|
|
119
|
+
*/
|
|
120
|
+
categoryAxis?: CategoryAxis | CategoryAxis[];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Defines the configuration options of the Chart area.
|
|
124
|
+
* Represents the entire visible area of the Chart.
|
|
125
|
+
*/
|
|
126
|
+
chartArea?: ChartArea;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Defines the configuration options of the Chart legend.
|
|
130
|
+
*/
|
|
131
|
+
legend?: Legend;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* If no series are defined, or all series are empty, a No Data Overlay will be displayed.
|
|
135
|
+
* It clears automatically when the series receive data.
|
|
136
|
+
*
|
|
137
|
+
* To disable the No Data Overlay, set this option to `false`.
|
|
138
|
+
*
|
|
139
|
+
* {% platform_content angular %}
|
|
140
|
+
* See the [No Data Overlay](https://www.telerik.com/kendo-angular-ui/components/charts/data-binding/no-data-overlay) example.
|
|
141
|
+
* {% endplatform_content %}
|
|
142
|
+
* {% platform_content react %}
|
|
143
|
+
* See the [No Data Overlay](https://www.telerik.com/kendo-react-ui/components/charts/chart/data-binding#no-data-overlay) example.
|
|
144
|
+
* {% endplatform_content %}
|
|
145
|
+
* {% platform_content vue %}
|
|
146
|
+
* See the [No Data Overlay](https://www.telerik.com/kendo-vue-ui/components/charts/data-binding#no-data-overlay) example.
|
|
147
|
+
* {% endplatform_content %}
|
|
148
|
+
*/
|
|
149
|
+
noData?: boolean;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Defines the configuration of the Chart panes.
|
|
153
|
+
* Panes are used to split the Chart into two or more parts. The panes are ordered from top to bottom.
|
|
154
|
+
* To associate each axis with a pane, set its `pane` option to the name of the desired pane.
|
|
155
|
+
* Axes that do not have a specified pane are placed in the top (default) pane.
|
|
156
|
+
* To move a series to the desired pane, associate them with an axis.
|
|
157
|
+
*/
|
|
158
|
+
panes?: Pane[];
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Defines the default options of all panes.
|
|
162
|
+
*/
|
|
163
|
+
paneDefaults?: PaneDefaults;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Defines the configuration options of the plot area.
|
|
167
|
+
* Specifies the area which displays the series.
|
|
168
|
+
*/
|
|
169
|
+
plotArea?: PlotArea;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Defines the configuration of the Chart series.
|
|
173
|
+
* Determines the series type by the value of the `type` field.
|
|
174
|
+
* If a `type` value is missing, the Chart renders the type that is
|
|
175
|
+
* specified in `seriesDefaults`.
|
|
176
|
+
* Some options accept functions as arguments. These arguments are evaluated for each point
|
|
177
|
+
* which is supplied as a parameter. If no value is returned, the Chart uses the `theme` or
|
|
178
|
+
* `seriesDefaults` values.
|
|
179
|
+
* {% platform_content angular %}
|
|
180
|
+
* See also:
|
|
181
|
+
* * [`SeriesDefaultsComponent`](https://www.telerik.com/kendo-angular-ui/components/charts/api/seriesdefaultscomponent)
|
|
182
|
+
* {% endplatform_content %}
|
|
183
|
+
*/
|
|
184
|
+
series?: Series[];
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Defines the default options of all series.
|
|
188
|
+
*/
|
|
189
|
+
seriesDefaults?: SeriesDefaults;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Defines the configuration options of the Chart series tooltips.
|
|
193
|
+
* Displays the tooltip when the
|
|
194
|
+
* `tooltip.visible` option is set to `true`.
|
|
195
|
+
* {% platform_content angular %}
|
|
196
|
+
* See also:
|
|
197
|
+
* * [`TooltipComponent`](https://www.telerik.com/kendo-angular-ui/components/charts/api/tooltipcomponent)
|
|
198
|
+
* {% endplatform_content %}
|
|
199
|
+
*/
|
|
200
|
+
tooltip?: Tooltip;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Defines the configuration options of the value axis.
|
|
204
|
+
*/
|
|
205
|
+
valueAxis?: ValueAxis | ValueAxis[];
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Defines the configuration options of the Scatter Chart X-axis.
|
|
209
|
+
* Supports all `valueAxis` options.
|
|
210
|
+
* {% platform_content angular %}
|
|
211
|
+
* See also:
|
|
212
|
+
* * [`XAxisComponent`](https://www.telerik.com/kendo-angular-ui/components/charts/api/xaxisitemcomponent)
|
|
213
|
+
* {% endplatform_content %}
|
|
214
|
+
*/
|
|
215
|
+
xAxis?: XAxis | XAxis[];
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Defines the configuration options of the Scatter Chart Y-axis.
|
|
219
|
+
* Supports all `valueAxis` options.
|
|
220
|
+
* {% platform_content angular %}
|
|
221
|
+
* See also:
|
|
222
|
+
* * [`YAxisComponent`](https://www.telerik.com/kendo-angular-ui/components/charts/api/yaxisitemcomponent)
|
|
223
|
+
* {% endplatform_content %}
|
|
224
|
+
*/
|
|
225
|
+
yAxis?: YAxis | YAxis[];
|
|
226
|
+
}
|
package/dist/npm/chart.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ChartOptions } from './chart-options';
|
|
1
2
|
|
|
2
3
|
export class Chart {
|
|
3
|
-
constructor(element: HTMLElement, options:
|
|
4
|
+
constructor(element: HTMLElement, options: ChartOptions, theme: any, context: any);
|
|
4
5
|
|
|
5
|
-
setOptions(options:
|
|
6
|
+
setOptions(options: ChartOptions, theme?: any): void;
|
|
6
7
|
|
|
7
8
|
noTransitionsRedraw(): void;
|
|
8
9
|
|
|
@@ -12,7 +13,7 @@ export class Chart {
|
|
|
12
13
|
|
|
13
14
|
hideElements(): void;
|
|
14
15
|
|
|
15
|
-
applyOptions(options:
|
|
16
|
+
applyOptions(options: ChartOptions, theme?: any): void;
|
|
16
17
|
|
|
17
18
|
bindCategories(): void;
|
|
18
19
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the allowed time-interval steps when `baseUnit` is set to either `"fit"` or `"auto"`.
|
|
3
|
+
*
|
|
4
|
+
* Divides the active period into the smallest possible intervals
|
|
5
|
+
* that do not exceed the set `maxDateGroups` value.
|
|
6
|
+
*
|
|
7
|
+
* {% platform_content angular %}
|
|
8
|
+
* ```html
|
|
9
|
+
* <kendo-chart-category-axis>
|
|
10
|
+
* <kendo-chart-category-axis-item [autoBaseUnitSteps]="baseUnitSteps">
|
|
11
|
+
* </kendo-chart-category-axis-item>
|
|
12
|
+
* </kendo-chart-category-axis>
|
|
13
|
+
* ```
|
|
14
|
+
* ```ts
|
|
15
|
+
* public baseUnitSteps: AutoBaseUnitSteps = {
|
|
16
|
+
* // Do not allow zooming into hours
|
|
17
|
+
* weeks: [],
|
|
18
|
+
* };
|
|
19
|
+
* ```
|
|
20
|
+
* {% endplatform_content %}
|
|
21
|
+
*/
|
|
22
|
+
export interface AutoBaseUnitSteps {
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the interval steps when displaying milliseconds.
|
|
25
|
+
*/
|
|
26
|
+
milliseconds?: number[];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the interval steps when displaying seconds.
|
|
30
|
+
*/
|
|
31
|
+
seconds?: number[];
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the interval steps when displaying minutes.
|
|
35
|
+
*/
|
|
36
|
+
minutes?: number[];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the interval steps when displaying hours.
|
|
40
|
+
*/
|
|
41
|
+
hours?: number[];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the interval steps when displaying days.
|
|
45
|
+
*/
|
|
46
|
+
days?: number[];
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the interval steps when displaying weeks.
|
|
50
|
+
*/
|
|
51
|
+
weeks?: number[];
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the interval steps when displaying months.
|
|
55
|
+
*/
|
|
56
|
+
months?: number[];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the interval steps when displaying years.
|
|
60
|
+
*/
|
|
61
|
+
years?: number[];
|
|
62
|
+
}
|