@progress/kendo-charts 2.12.3-develop.4 → 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/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/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/package.json +4 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the position of the axis labels.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* - `"start"`—Positions the labels at the start of the axis, typically located at the left or bottom end of the Chart, unless the crossing axis is reversed.
|
|
6
|
+
* - `"end"`—Positions the labels at the end of the axis, usually at the top or right end of the Chart, unless the crossing axis is reversed.
|
|
7
|
+
* - `"onAxis"`—Positions the labels on the axis.
|
|
8
|
+
* - `""`—Positions the labels based on the axis type.
|
|
9
|
+
*
|
|
10
|
+
* {% platform_content angular %}
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { Component } from '@angular/core';
|
|
14
|
+
* import { AxisLabelsPosition } from '@progress/kendo-angular-charts';
|
|
15
|
+
*
|
|
16
|
+
* _@Component({
|
|
17
|
+
* selector: 'my-app',
|
|
18
|
+
* template: `
|
|
19
|
+
* <kendo-chart>
|
|
20
|
+
* <kendo-chart-category-axis>
|
|
21
|
+
* <kendo-chart-category-axis-item>
|
|
22
|
+
* <kendo-chart-category-axis-item-labels [position]="position">
|
|
23
|
+
* </kendo-chart-category-axis-item-labels>
|
|
24
|
+
* </kendo-chart-category-axis-item>
|
|
25
|
+
* </kendo-chart-category-axis>
|
|
26
|
+
* </kendo-chart>
|
|
27
|
+
* `
|
|
28
|
+
* })
|
|
29
|
+
* class AppComponent {
|
|
30
|
+
* public position: AxisLabelsPosition = "end";
|
|
31
|
+
* }
|
|
32
|
+
*
|
|
33
|
+
* ```
|
|
34
|
+
* {% endplatform_content %}
|
|
35
|
+
* {% platform_content react %}
|
|
36
|
+
* @example
|
|
37
|
+
* ```jsx
|
|
38
|
+
* import { Chart, ChartValueAxis, ChartValueAxisItem } from '@progress/kendo-react-charts';
|
|
39
|
+
*
|
|
40
|
+
* const ChartContainer = () => (
|
|
41
|
+
* <Chart>
|
|
42
|
+
* <ChartValueAxis>
|
|
43
|
+
* <ChartValueAxisItem labels={{ position: "end" }}/>
|
|
44
|
+
* </ChartValueAxis>
|
|
45
|
+
* </Chart>
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
* {% endplatform_content %}
|
|
49
|
+
* {% platform_content vue %}
|
|
50
|
+
* @example
|
|
51
|
+
* ```jsx
|
|
52
|
+
* <Chart>
|
|
53
|
+
* <ChartValueAxis>
|
|
54
|
+
* <ChartValueAxisItem :labels="{ position: 'end' }"/>
|
|
55
|
+
* </ChartValueAxis>
|
|
56
|
+
* </Chart>
|
|
57
|
+
* );
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
* {% endplatform_content %}
|
|
61
|
+
*/
|
|
62
|
+
export type AxisLabelsPosition = 'start' | 'end' | 'onAxis' | '';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DashType } from './dash-type';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the appearance settings for the axis lines.
|
|
5
|
+
* Affects the major and minor axis ticks, but not the grid lines.
|
|
6
|
+
*
|
|
7
|
+
* {% platform_content angular %}
|
|
8
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-angular-ui/components/charts/elements/axes#default-axis-configuration) example.
|
|
9
|
+
* {% endplatform_content %}
|
|
10
|
+
* {% platform_content react %}
|
|
11
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#default-axis-configuration) example.
|
|
12
|
+
* {% endplatform_content %}
|
|
13
|
+
* {% platform_content vue %}
|
|
14
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-vue-ui/components/charts/elements/axes#default-axis-configuration) example.
|
|
15
|
+
* {% endplatform_content %}
|
|
16
|
+
*/
|
|
17
|
+
export interface AxisLine {
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the color of the lines.
|
|
20
|
+
* Accepts a valid CSS color string, including hex and rgb.
|
|
21
|
+
* The `color` option affects the major and minor axis ticks, but not the grid lines.
|
|
22
|
+
*/
|
|
23
|
+
color?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the dash type of the line.
|
|
27
|
+
*/
|
|
28
|
+
dashType?: DashType;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether to display the axis lines.
|
|
32
|
+
* By default, the axis lines are visible.
|
|
33
|
+
*/
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Specifies the width of the line in pixels.
|
|
38
|
+
* Affects the major and minor axis ticks, but not the grid lines.
|
|
39
|
+
*/
|
|
40
|
+
width?: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the appearance configuration for the major and minor axis ticks.
|
|
3
|
+
*
|
|
4
|
+
* {% platform_content angular %}
|
|
5
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-angular-ui/components/charts/elements/axes#default-axis-configuration) example.
|
|
6
|
+
* {% endplatform_content %}
|
|
7
|
+
* {% platform_content react %}
|
|
8
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/axes#default-axis-configuration) example.
|
|
9
|
+
* {% endplatform_content %}
|
|
10
|
+
* {% platform_content vue %}
|
|
11
|
+
* See the [Default Axis Configuration](https://www.telerik.com/kendo-vue-ui/components/charts/elements/axes#default-axis-configuration) example.
|
|
12
|
+
* {% endplatform_content %}
|
|
13
|
+
*/
|
|
14
|
+
export interface AxisTicks {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the color of the tick lines. Accepts a valid CSS color string, including hex and rgb.
|
|
17
|
+
*/
|
|
18
|
+
color?: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Specifies the length of the tick line in pixels.
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the tick-rendering step. Renders every n<sup>th</sup> tick, where `n` is the step.
|
|
27
|
+
*/
|
|
28
|
+
step?: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the number of ticks to skip at the beginning.
|
|
32
|
+
*/
|
|
33
|
+
skip?: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Determines whether to display the axis ticks.
|
|
37
|
+
* By default, only the major axis ticks are visible.
|
|
38
|
+
*/
|
|
39
|
+
visible?: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Specifies the width of the ticks in pixels.
|
|
43
|
+
*/
|
|
44
|
+
width?: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the position of an axis title.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* - `"top"`—Positions the title at the top of the axis.
|
|
6
|
+
* - `"bottom"`—Positions the title at the bottom of the axis.
|
|
7
|
+
* - `"left"`—Positions the title at the left of the axis.
|
|
8
|
+
* - `"right"`—Positions the title at the right of the axis.
|
|
9
|
+
* - `"center"`—Positions the title at the center of the axis.
|
|
10
|
+
*
|
|
11
|
+
* {% platform_content angular %}
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { Component } from '@angular/core';
|
|
15
|
+
* import { AxisTitlePosition } from '@progress/kendo-angular-charts';
|
|
16
|
+
*
|
|
17
|
+
* _@Component({
|
|
18
|
+
* selector: 'my-app',
|
|
19
|
+
* template: `
|
|
20
|
+
* <kendo-chart>
|
|
21
|
+
* <kendo-chart-value-axis>
|
|
22
|
+
* <kendo-chart-value-axis-item>
|
|
23
|
+
* <kendo-chart-value-axis-item-title [position]="position" text="Title">
|
|
24
|
+
* </kendo-chart-value-axis-item-title>
|
|
25
|
+
* </kendo-chart-value-axis-item>
|
|
26
|
+
* </kendo-chart-value-axis>
|
|
27
|
+
* </kendo-chart>
|
|
28
|
+
* `
|
|
29
|
+
* })
|
|
30
|
+
* class AppComponent {
|
|
31
|
+
* public position: AxisTitlePosition = "top";
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* ```
|
|
35
|
+
* {% endplatform_content %}
|
|
36
|
+
* {% platform_content react %}
|
|
37
|
+
* @example
|
|
38
|
+
* ```jsx
|
|
39
|
+
* import { Chart, ChartValueAxis, ChartValueAxisItem } from '@progress/kendo-react-charts';
|
|
40
|
+
*
|
|
41
|
+
* const ChartContainer = () => (
|
|
42
|
+
* <Chart>
|
|
43
|
+
* <ChartValueAxis>
|
|
44
|
+
* <ChartValueAxisItem title={{ text: 'Title', position: "top" }}/>
|
|
45
|
+
* </ChartValueAxis>
|
|
46
|
+
* </Chart>
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
* {% endplatform_content %}
|
|
50
|
+
* {% platform_content vue %}
|
|
51
|
+
* @example
|
|
52
|
+
* ```jsx
|
|
53
|
+
* <Chart>
|
|
54
|
+
* <ChartValueAxis>
|
|
55
|
+
* <ChartValueAxisItem :title="{ text: 'Title', position: 'top' }"/>
|
|
56
|
+
* </ChartValueAxis>
|
|
57
|
+
* </Chart>
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
* {% endplatform_content %}
|
|
61
|
+
*/
|
|
62
|
+
export type AxisTitlePosition = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the `baseUnit` type of a X or Y axis.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* - `"milliseconds"`—Sets the base unit to milliseconds.
|
|
6
|
+
* - `"seconds"`—Sets the base unit to seconds.
|
|
7
|
+
* - `"minutes"`—Sets the base unit to minutes.
|
|
8
|
+
* - `"hours"`—Sets the base unit to hours.
|
|
9
|
+
* - `"days"`—Sets the base unit to days.
|
|
10
|
+
* - `"weeks"`—Sets the base unit to weeks.
|
|
11
|
+
* - `"months"`—Sets the base unit to months.
|
|
12
|
+
* - `"years"`—Sets the base unit to years.
|
|
13
|
+
*
|
|
14
|
+
* {% platform_content angular %}
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { Component } from '@angular/core';
|
|
18
|
+
* import { BaseUnit } from '@progress/kendo-angular-charts';
|
|
19
|
+
*
|
|
20
|
+
* _@Component({
|
|
21
|
+
* selector: 'my-app',
|
|
22
|
+
* template: `
|
|
23
|
+
* <kendo-chart>
|
|
24
|
+
* <kendo-chart-x-axis>
|
|
25
|
+
* <kendo-chart-x-axis-item [baseUnit]="baseUnit">
|
|
26
|
+
* </kendo-chart-x-axis-item>
|
|
27
|
+
* </kendo-chart-x-axis>
|
|
28
|
+
* <kendo-chart-series>
|
|
29
|
+
* <kendo-chart-series-item type="scatter" [data]="data">
|
|
30
|
+
* </kendo-chart-series-item>
|
|
31
|
+
* </kendo-chart-series>
|
|
32
|
+
* </kendo-chart>
|
|
33
|
+
* `
|
|
34
|
+
* })
|
|
35
|
+
* class AppComponent {
|
|
36
|
+
* public baseUnit: BaseUnit = "months";
|
|
37
|
+
* public data: any[] = [[new Date(2000, 0, 1), 1], [new Date(2001, 0, 1), 1]];
|
|
38
|
+
* }
|
|
39
|
+
*
|
|
40
|
+
* ```
|
|
41
|
+
* {% endplatform_content %}
|
|
42
|
+
* {% platform_content react %}
|
|
43
|
+
* @example
|
|
44
|
+
* ```jsx
|
|
45
|
+
* import {
|
|
46
|
+
* Chart,
|
|
47
|
+
* ChartXAxis,
|
|
48
|
+
* ChartXAxisItem,
|
|
49
|
+
* ChartSeries,
|
|
50
|
+
* ChartSeriesItem
|
|
51
|
+
* } from '@progress/kendo-react-charts';
|
|
52
|
+
*
|
|
53
|
+
* const baseUnit = "months";
|
|
54
|
+
* const data = [[new Date(2000, 0, 1), 1], [new Date(2001, 0, 1), 1]];
|
|
55
|
+
*
|
|
56
|
+
* const ChartContainer = () => (
|
|
57
|
+
* <Chart>
|
|
58
|
+
* <ChartXAxis>
|
|
59
|
+
* <ChartXAxisItem baseUnit={baseUnit} />
|
|
60
|
+
* </ChartXAxis>
|
|
61
|
+
* <ChartSeries>
|
|
62
|
+
* <ChartSeriesItem type="scatter" data={data} />
|
|
63
|
+
* </ChartSeries>
|
|
64
|
+
* </Chart>
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
* {% endplatform_content %}
|
|
68
|
+
* {% platform_content vue %}
|
|
69
|
+
* @example
|
|
70
|
+
* ```jsx
|
|
71
|
+
* <Chart>
|
|
72
|
+
* <ChartXAxis>
|
|
73
|
+
* <ChartXAxisItem :base-unit="baseUnit" />
|
|
74
|
+
* </ChartXAxis>
|
|
75
|
+
* <ChartSeries>
|
|
76
|
+
* <ChartSeriesItem :type="'scatter'" :data-items="data" />
|
|
77
|
+
* </ChartSeries>
|
|
78
|
+
* </Chart>
|
|
79
|
+
* ```
|
|
80
|
+
* {% endplatform_content %}
|
|
81
|
+
*/
|
|
82
|
+
export type BaseUnit = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'years';
|
|
@@ -1,21 +1,36 @@
|
|
|
1
1
|
import { DashType } from './dash-type';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Specifies the appearance settings for the border lines.
|
|
5
|
+
*
|
|
6
|
+
* {% platform_content angular %}
|
|
7
|
+
* See [Chart Title](https://www.telerik.com/kendo-angular-ui/components/charts/elements/title) example.
|
|
8
|
+
* {% endplatform_content %}
|
|
9
|
+
* {% platform_content react %}
|
|
10
|
+
* See [Chart Title](https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/title) example.
|
|
11
|
+
* {% endplatform_content %}
|
|
12
|
+
* {% platform_content vue %}
|
|
13
|
+
* See [Chart Title](https://www.telerik.com/kendo-vue-ui/components/charts/elements/title) example.
|
|
14
|
+
* {% endplatform_content %}
|
|
5
15
|
*/
|
|
6
16
|
export interface Border {
|
|
7
17
|
/**
|
|
8
|
-
*
|
|
18
|
+
* Specifies the color of the border line. Accepts a valid CSS color string, including hex and rgb.
|
|
9
19
|
*/
|
|
10
20
|
color?: string;
|
|
11
21
|
|
|
12
22
|
/**
|
|
13
|
-
*
|
|
23
|
+
* Specifies the dash type of the border line.
|
|
14
24
|
*/
|
|
15
25
|
dashType?: DashType;
|
|
16
26
|
|
|
17
27
|
/**
|
|
18
|
-
*
|
|
28
|
+
* Specifies the width of the border line in pixels.
|
|
19
29
|
*/
|
|
20
30
|
width?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the border opacity.
|
|
34
|
+
*/
|
|
35
|
+
opacity?: number;
|
|
21
36
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Border } from './border.interface';
|
|
2
|
+
import { BulletTargetLine } from './bullet-target-line.interface';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the appearance settings for the target of the Bullet series.
|
|
6
|
+
*/
|
|
7
|
+
export interface BulletTarget {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the width of the border in pixels.
|
|
10
|
+
* By default, the border width is set to `zero`, which means that the border is not visible.
|
|
11
|
+
*/
|
|
12
|
+
border?: Border;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the target color.
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the appearance settings for the target line of the Bullet series.
|
|
21
|
+
*/
|
|
22
|
+
line?: BulletTargetLine;
|
|
23
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { BaseUnit } from './base-unit';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the `baseUnit` type of the category axis.
|
|
5
|
+
*
|
|
6
|
+
* The possible values are:
|
|
7
|
+
* - `"milliseconds", "seconds", "minutes", "hours", "days", "weeks", "months", "years"`—Sets a fixed base time interval for the axis labels.
|
|
8
|
+
* - `"auto"`—Automatically determines the base unit by the minimum difference between subsequent categories.
|
|
9
|
+
* - `"fit"`—Adjusts the `categoryAxis.baseUnitStep` and base unit so that the number of categories does not exceed `categoryAxis.maxDateGroups`, and uses the `series.aggregate` function to aggregate data based on the selected base unit.
|
|
10
|
+
*
|
|
11
|
+
* {% platform_content angular %}
|
|
12
|
+
* See also, [`BaseUnit`](https://www.telerik.com/kendo-angular-ui/components/charts/api/baseunit)
|
|
13
|
+
* {% endplatform_content %}
|
|
14
|
+
*
|
|
15
|
+
* {% platform_content angular %}
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* import { Component } from '@angular/core';
|
|
19
|
+
* import { CategoryBaseUnit } from '@progress/kendo-angular-charts';
|
|
20
|
+
*
|
|
21
|
+
* _@Component({
|
|
22
|
+
* selector: 'my-app',
|
|
23
|
+
* template: `
|
|
24
|
+
* <kendo-chart>
|
|
25
|
+
* <kendo-chart-category-axis>
|
|
26
|
+
* <kendo-chart-category-axis-item [baseUnit]="baseUnit" >
|
|
27
|
+
* </kendo-chart-category-axis-item>
|
|
28
|
+
* </kendo-chart-category-axis>
|
|
29
|
+
* <kendo-chart-series>
|
|
30
|
+
* <kendo-chart-series-item categoryField="category" [data]="data">
|
|
31
|
+
* </kendo-chart-series-item>
|
|
32
|
+
* </kendo-chart-series>
|
|
33
|
+
* </kendo-chart>
|
|
34
|
+
* `
|
|
35
|
+
* })
|
|
36
|
+
* class AppComponent {
|
|
37
|
+
* public baseUnit: CategoryBaseUnit = "months";
|
|
38
|
+
* public data: any[] = [{ category: new Date(2000, 0, 1), value: 1 }, { category: new Date(2001, 0, 1), value: 1}];
|
|
39
|
+
* }
|
|
40
|
+
*
|
|
41
|
+
* ```
|
|
42
|
+
* {% endplatform_content %}
|
|
43
|
+
* {% platform_content react %}
|
|
44
|
+
* @example
|
|
45
|
+
* ```jsx
|
|
46
|
+
* import {
|
|
47
|
+
* Chart,
|
|
48
|
+
* ChartCategoryAxis,
|
|
49
|
+
* ChartCategoryAxisItem,
|
|
50
|
+
* ChartSeries,
|
|
51
|
+
* ChartSeriesItem
|
|
52
|
+
* } from '@progress/kendo-react-charts';
|
|
53
|
+
*
|
|
54
|
+
* const baseUnit = "months";
|
|
55
|
+
* const data = [{ category: new Date(2000, 0, 1), value: 1 }, { category: new Date(2001, 0, 1), value: 1}];
|
|
56
|
+
*
|
|
57
|
+
* const ChartContainer = () => (
|
|
58
|
+
* <Chart>
|
|
59
|
+
* <ChartCategoryAxis>
|
|
60
|
+
* <ChartCategoryAxisItem baseUnit={baseUnit} />
|
|
61
|
+
* </ChartCategoryAxis>
|
|
62
|
+
* <ChartSeries>
|
|
63
|
+
* <ChartSeriesItem categoryField="category" data={data} />
|
|
64
|
+
* </ChartSeries>
|
|
65
|
+
* </Chart>
|
|
66
|
+
* );
|
|
67
|
+
* ```
|
|
68
|
+
* {% endplatform_content %}
|
|
69
|
+
* {% platform_content vue %}
|
|
70
|
+
* @example
|
|
71
|
+
* ```jsx
|
|
72
|
+
* <template>
|
|
73
|
+
* <Chart>
|
|
74
|
+
* <ChartCategoryAxis>
|
|
75
|
+
* <ChartCategoryAxisItem :base-unit="baseUnit" />
|
|
76
|
+
* </ChartCategoryAxis>
|
|
77
|
+
* <ChartSeries>
|
|
78
|
+
* <ChartSeriesItem :category-field="category" :data-items="dataItems" />
|
|
79
|
+
* </ChartSeries>
|
|
80
|
+
* </Chart>
|
|
81
|
+
* </template>
|
|
82
|
+
* <script>
|
|
83
|
+
* import {
|
|
84
|
+
* Chart,
|
|
85
|
+
* ChartCategoryAxis,
|
|
86
|
+
* ChartCategoryAxisItem,
|
|
87
|
+
* ChartSeries,
|
|
88
|
+
* ChartSeriesItem
|
|
89
|
+
* } from '@progress/kendo-vue-charts';
|
|
90
|
+
*
|
|
91
|
+
* export default {
|
|
92
|
+
* components: {
|
|
93
|
+
* Chart,
|
|
94
|
+
* ChartCategoryAxis,
|
|
95
|
+
* ChartCategoryAxisItem,
|
|
96
|
+
* ChartSeries,
|
|
97
|
+
* ChartSeriesItem
|
|
98
|
+
* },
|
|
99
|
+
* data () {
|
|
100
|
+
* return {
|
|
101
|
+
* baseUnit: "months",
|
|
102
|
+
* dataItems: [
|
|
103
|
+
* { category: new Date(2000, 0, 1), value: 1 },
|
|
104
|
+
* { category: new Date(2001, 0, 1), value: 1}
|
|
105
|
+
* ]
|
|
106
|
+
* };
|
|
107
|
+
* }
|
|
108
|
+
* }
|
|
109
|
+
* </script>
|
|
110
|
+
* ```
|
|
111
|
+
* {% endplatform_content %}
|
|
112
|
+
*/
|
|
113
|
+
export type CategoryBaseUnit = BaseUnit | 'auto' | 'fit';
|
|
@@ -1,7 +1,89 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Specifies the dash line type.
|
|
3
|
+
*
|
|
4
|
+
* The possible values are:
|
|
5
|
+
* - `"dash"`—Creates a line that consists of dashes.
|
|
6
|
+
* - `"dashDot"`—Creates a line that consists of a repeating dash-dot pattern.
|
|
7
|
+
* - `"dot"`—Creates a line that consists of dots.
|
|
8
|
+
* - `"longDash"`—Creates a line that consists of a repeating long-dash pattern.
|
|
9
|
+
* - `"longDashDot"`—Creates a line that consists of a repeating long-dash-dot pattern.
|
|
10
|
+
* - `"longDashDotDot"`—Creates a line that consists of a repeating long-dash-dot-dot pattern.
|
|
11
|
+
* - `"solid"`—Creates a solid line.
|
|
12
|
+
*
|
|
13
|
+
* {% platform_content angular %}
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* import { Component } from '@angular/core';
|
|
17
|
+
* import { DashType } from '@progress/kendo-angular-charts';
|
|
18
|
+
*
|
|
19
|
+
* _@Component({
|
|
20
|
+
* selector: 'my-app',
|
|
21
|
+
* template: `
|
|
22
|
+
* <kendo-chart>
|
|
23
|
+
* <kendo-chart-series>
|
|
24
|
+
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]" [dashType]="dashType">
|
|
25
|
+
* </kendo-chart-series-item>
|
|
26
|
+
* </kendo-chart-series>
|
|
27
|
+
* </kendo-chart>
|
|
28
|
+
* `
|
|
29
|
+
* })
|
|
30
|
+
* class AppComponent {
|
|
31
|
+
* public dashType: DashType = "dot";
|
|
32
|
+
* }
|
|
33
|
+
*
|
|
34
|
+
* ```
|
|
35
|
+
* {% endplatform_content %}
|
|
36
|
+
* {% platform_content react %}
|
|
37
|
+
* @example
|
|
38
|
+
* ```jsx
|
|
39
|
+
* import {
|
|
40
|
+
* Chart,
|
|
41
|
+
* ChartSeries,
|
|
42
|
+
* ChartSeriesItem
|
|
43
|
+
* } from '@progress/kendo-react-charts';
|
|
44
|
+
*
|
|
45
|
+
* const data = [1, 2, 3];
|
|
46
|
+
*
|
|
47
|
+
* const ChartContainer = () => (
|
|
48
|
+
* <Chart>
|
|
49
|
+
* <ChartSeries>
|
|
50
|
+
* <ChartSeriesItem type="line" data={data} dashType="dot" />
|
|
51
|
+
* </ChartSeries>
|
|
52
|
+
* </Chart>
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
* {% endplatform_content %}
|
|
56
|
+
* {% platform_content vue %}
|
|
57
|
+
* @example
|
|
58
|
+
* ```jsx
|
|
59
|
+
* <template>
|
|
60
|
+
* <Chart>
|
|
61
|
+
* <ChartSeries>
|
|
62
|
+
* <ChartSeriesItem :type="'line'" :data-items="dataItems" :dash-type="'dot'" />
|
|
63
|
+
* </ChartSeries>
|
|
64
|
+
* </Chart>
|
|
65
|
+
* </template>
|
|
66
|
+
* <script>
|
|
67
|
+
* import {
|
|
68
|
+
* Chart,
|
|
69
|
+
* ChartSeries,
|
|
70
|
+
* ChartSeriesItem
|
|
71
|
+
* } from '@progress/kendo-vue-charts';
|
|
72
|
+
*
|
|
73
|
+
* export default {
|
|
74
|
+
* components: {
|
|
75
|
+
* Chart,
|
|
76
|
+
* ChartSeries,
|
|
77
|
+
* ChartSeriesItem
|
|
78
|
+
* },
|
|
79
|
+
* data () {
|
|
80
|
+
* return {
|
|
81
|
+
* dataItems: [1, 2, 3]
|
|
82
|
+
* };
|
|
83
|
+
* }
|
|
84
|
+
* }
|
|
85
|
+
* </script>
|
|
86
|
+
* ```
|
|
87
|
+
* {% endplatform_content %}
|
|
3
88
|
*/
|
|
4
|
-
export type DashType =
|
|
5
|
-
'dash' | 'dashDot' | 'dot' |
|
|
6
|
-
'longDash' | 'longDashDot' | 'longDashDotDot' |
|
|
7
|
-
'solid';
|
|
89
|
+
export type DashType = 'dash' | 'dashDot' | 'dot' | 'longDash' | 'longDashDot' | 'longDashDotDot' | 'solid';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies the format that displays the labels when they are dates.
|
|
3
|
+
*
|
|
4
|
+
* Selects the appropriate format for the current `baseUnit`.
|
|
5
|
+
* Setting the `format` option of the labels overrides the date formats.
|
|
6
|
+
*/
|
|
7
|
+
export interface DateFormats {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the format when the axis `baseUnit` is set to `"milliseconds"`.
|
|
10
|
+
*/
|
|
11
|
+
milliseconds?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies the format when the axis `baseUnit` is set to `"seconds"`.
|
|
15
|
+
*/
|
|
16
|
+
seconds?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies the format when the axis `baseUnit` is set to `"minutes"`.
|
|
20
|
+
*/
|
|
21
|
+
minutes?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the format when the axis `baseUnit` is set to `"hours"`.
|
|
25
|
+
*/
|
|
26
|
+
hours?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the format when the axis `baseUnit` is set to `"days"`.
|
|
30
|
+
*/
|
|
31
|
+
days?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Specifies the format when the axis `baseUnit` is set to `"weeks"`.
|
|
35
|
+
*/
|
|
36
|
+
weeks?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the format when the axis `baseUnit` is set to `"months"`.
|
|
40
|
+
*/
|
|
41
|
+
months?: string;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Specifies the format when the axis `baseUnit` is set to `"years"`.
|
|
45
|
+
*/
|
|
46
|
+
years?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LockAxis } from './lock-axis';
|
|
2
|
+
import { ModifierKey } from './modifier-key';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the drag behavior during the pan and zoom operations.
|
|
6
|
+
*/
|
|
7
|
+
export interface DragAction {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies a keyboard key that has to be pressed to activate the gesture.
|
|
10
|
+
*/
|
|
11
|
+
key?: ModifierKey;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Specifies an axis that should not be panned or zoomed.
|
|
15
|
+
*/
|
|
16
|
+
lock?: LockAxis;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DashType } from './dash-type';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the appearance settings for the error bar lines.
|
|
5
|
+
*/
|
|
6
|
+
export interface ErrorBarLine {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies the dash type of the line.
|
|
9
|
+
*/
|
|
10
|
+
dashType?: DashType;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Specifies the width of the line in pixels.
|
|
14
|
+
*/
|
|
15
|
+
width?: number;
|
|
16
|
+
}
|