@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.
Files changed (167) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/chart/plotarea/categorical-plotarea.js +9 -6
  4. package/dist/es2015/chart/plotarea/categorical-plotarea.js +9 -6
  5. package/dist/npm/api-types/axis-range.interface.d.ts +14 -0
  6. package/dist/npm/api-types/chart-axis.interface.d.ts +50 -0
  7. package/dist/npm/api-types/chart-pane.interface.d.ts +16 -0
  8. package/dist/npm/api-types/chart-plotarea.interface.d.ts +16 -0
  9. package/dist/npm/api-types/event-axis-options.interface.d.ts +9 -0
  10. package/dist/npm/api-types/event-series-options.interface.d.ts +19 -0
  11. package/dist/npm/api-types/series-point.interface.d.ts +46 -0
  12. package/dist/npm/api-types.d.ts +7 -0
  13. package/dist/npm/argument-types/axis-label-content-args.interface.d.ts +41 -0
  14. package/dist/npm/argument-types/axis-label-visual-args.interface.d.ts +52 -0
  15. package/dist/npm/argument-types/axis-note-content-args.interface.d.ts +19 -0
  16. package/dist/npm/argument-types/axis-note-visual-args.interface.d.ts +32 -0
  17. package/dist/npm/argument-types/error-bars-value-args.interface.d.ts +29 -0
  18. package/dist/npm/argument-types/error-bars-visual-args.interface.d.ts +37 -0
  19. package/dist/npm/argument-types/highlight-toggle-args.interface.d.ts +41 -0
  20. package/dist/npm/argument-types/highlight-visual-args.interface.d.ts +63 -0
  21. package/dist/npm/argument-types/legend-item-visual-args.interface.d.ts +43 -0
  22. package/dist/npm/argument-types/legend-labels-content-args.interface.d.ts +31 -0
  23. package/dist/npm/argument-types/markers-visual-args.interface.d.ts +47 -0
  24. package/dist/npm/argument-types/plot-band-label-visual-args.interface.d.ts +32 -0
  25. package/dist/npm/argument-types/series-labels-content-args.interface.d.ts +54 -0
  26. package/dist/npm/argument-types/series-labels-visual-args.interface.d.ts +77 -0
  27. package/dist/npm/argument-types/series-note-content-args.interface.d.ts +29 -0
  28. package/dist/npm/argument-types/series-note-visual-args.interface.d.ts +52 -0
  29. package/dist/npm/argument-types/series-visual-args.interface.d.ts +95 -0
  30. package/dist/npm/argument-types/title-visual-args.interface.d.ts +32 -0
  31. package/dist/npm/chart-options.d.ts +226 -0
  32. package/dist/npm/chart.d.ts +4 -3
  33. package/dist/npm/field-types/auto-base-unit-steps.interface.d.ts +62 -0
  34. package/dist/npm/field-types/axis-labels-position.d.ts +62 -0
  35. package/dist/npm/field-types/axis-line.interface.d.ts +41 -0
  36. package/dist/npm/field-types/axis-ticks.interface.d.ts +45 -0
  37. package/dist/npm/field-types/axis-title-position.d.ts +62 -0
  38. package/dist/npm/field-types/base-unit.d.ts +82 -0
  39. package/dist/npm/field-types/border.interface.d.ts +19 -4
  40. package/dist/npm/field-types/bullet-target-line.interface.d.ts +9 -0
  41. package/dist/npm/field-types/bullet-target.interface.d.ts +23 -0
  42. package/dist/npm/field-types/category-base-unit.d.ts +113 -0
  43. package/dist/npm/field-types/dash-type.d.ts +87 -5
  44. package/dist/npm/field-types/date-formats.interface.d.ts +47 -0
  45. package/dist/npm/field-types/drag-action.interface.d.ts +17 -0
  46. package/dist/npm/field-types/error-bar-line.interface.d.ts +16 -0
  47. package/dist/npm/field-types/grid-lines.interface.d.ts +47 -0
  48. package/dist/npm/field-types/highlight-line.interface.d.ts +27 -0
  49. package/dist/npm/field-types/label-connectors.interface.d.ts +19 -0
  50. package/dist/npm/field-types/label-rotation.interface.d.ts +24 -0
  51. package/dist/npm/field-types/legend-labels.interface.d.ts +37 -0
  52. package/dist/npm/field-types/line-style.d.ts +90 -0
  53. package/dist/npm/field-types/lock-axis.d.ts +19 -0
  54. package/dist/npm/field-types/margin.interface.d.ts +15 -5
  55. package/dist/npm/field-types/marker-type.d.ts +94 -0
  56. package/dist/npm/field-types/modifier-key.d.ts +30 -0
  57. package/dist/npm/field-types/mousewheel-select.interface.d.ts +17 -0
  58. package/dist/npm/field-types/mousewheel-zoom.interface.d.ts +21 -0
  59. package/dist/npm/field-types/negative-bubble-values.interface.d.ts +15 -0
  60. package/dist/npm/field-types/note-label-position.d.ts +107 -0
  61. package/dist/npm/field-types/note-line.interface.d.ts +26 -0
  62. package/dist/npm/field-types/note-position.d.ts +104 -0
  63. package/dist/npm/field-types/overlay.interface.d.ts +15 -0
  64. package/dist/npm/field-types/padding.interface.d.ts +11 -1
  65. package/dist/npm/field-types/plot-band-label.interface.d.ts +100 -0
  66. package/dist/npm/field-types/plot-band.interface.d.ts +53 -0
  67. package/dist/npm/field-types/series-labels-alignment.d.ts +16 -0
  68. package/dist/npm/field-types/series-labels-position.d.ts +28 -0
  69. package/dist/npm/field-types/series-line.interface.d.ts +32 -0
  70. package/dist/npm/field-types/series-mean.interface.d.ts +26 -0
  71. package/dist/npm/field-types/series-median.interface.d.ts +26 -0
  72. package/dist/npm/field-types/series-pattern.interface.d.ts +77 -67
  73. package/dist/npm/field-types/series-stack.interface.d.ts +19 -0
  74. package/dist/npm/field-types/series-type.d.ts +244 -0
  75. package/dist/npm/field-types/series-whiskers.interface.d.ts +26 -0
  76. package/dist/npm/field-types/trendline-forecast.interface.d.ts +14 -0
  77. package/dist/npm/field-types/week-start-day.enum.d.ts +49 -0
  78. package/dist/npm/field-types.d.ts +46 -6
  79. package/dist/npm/main.d.ts +4 -0
  80. package/dist/npm/main.js +11 -6
  81. package/dist/npm/option-types/axis-crosshair-tooltip.interface.d.ts +49 -0
  82. package/dist/npm/option-types/axis-defaults/crosshair.interface.d.ts +43 -0
  83. package/dist/npm/option-types/axis-defaults/crosshair.tooltip.interface.d.ts +6 -0
  84. package/dist/npm/option-types/axis-defaults/labels.interface.d.ts +69 -0
  85. package/dist/npm/option-types/axis-defaults/title.interface.d.ts +63 -0
  86. package/dist/npm/option-types/axis-defaults.interface.d.ts +101 -0
  87. package/dist/npm/option-types/category-axis-item/crosshair.interface.d.ts +40 -0
  88. package/dist/npm/option-types/category-axis-item/crosshair.tooltip.interface.d.ts +6 -0
  89. package/dist/npm/option-types/category-axis-item/labels.interface.d.ts +115 -0
  90. package/dist/npm/option-types/category-axis-item/notes.icon.interface.d.ts +32 -0
  91. package/dist/npm/option-types/category-axis-item/notes.interface.d.ts +40 -0
  92. package/dist/npm/option-types/category-axis-item/notes.label.interface.d.ts +55 -0
  93. package/dist/npm/option-types/category-axis-item/range-labels.interface.d.ts +28 -0
  94. package/dist/npm/option-types/category-axis-item/select.interface.d.ts +35 -0
  95. package/dist/npm/option-types/category-axis-item/title.interface.d.ts +65 -0
  96. package/dist/npm/option-types/category-axis-item.interface.d.ts +195 -0
  97. package/dist/npm/option-types/chart-area.interface.d.ts +36 -0
  98. package/dist/npm/option-types/legend/inactive-items.interface.d.ts +12 -0
  99. package/dist/npm/option-types/legend/item.interface.d.ts +124 -0
  100. package/dist/npm/option-types/legend/legend-title.interface.d.ts +67 -0
  101. package/dist/npm/option-types/legend/markers.interface.d.ts +34 -0
  102. package/dist/npm/option-types/legend.interface.d.ts +120 -0
  103. package/dist/npm/option-types/navigator/hint-content-args.interface.d.ts +15 -0
  104. package/dist/npm/option-types/navigator/hint.interface.d.ts +27 -0
  105. package/dist/npm/option-types/navigator/select.interface.d.ts +22 -0
  106. package/dist/npm/option-types/navigator.interface.d.ts +56 -0
  107. package/dist/npm/option-types/pane/title.interface.d.ts +65 -0
  108. package/dist/npm/option-types/pane-defaults/title.interface.d.ts +51 -0
  109. package/dist/npm/option-types/pane-defaults.interface.d.ts +53 -0
  110. package/dist/npm/option-types/pane.interface.d.ts +53 -0
  111. package/dist/npm/option-types/plot-area.interface.d.ts +33 -0
  112. package/dist/npm/option-types/series-defaults/labels.from.interface.d.ts +54 -0
  113. package/dist/npm/option-types/series-defaults/labels.interface.d.ts +78 -0
  114. package/dist/npm/option-types/series-defaults/labels.to.interface.d.ts +57 -0
  115. package/dist/npm/option-types/series-defaults/notes.icon.interface.d.ts +32 -0
  116. package/dist/npm/option-types/series-defaults/notes.interface.d.ts +31 -0
  117. package/dist/npm/option-types/series-defaults/notes.label.interface.d.ts +58 -0
  118. package/dist/npm/option-types/series-defaults/tooltip.interface.d.ts +54 -0
  119. package/dist/npm/option-types/series-defaults.interface.d.ts +218 -0
  120. package/dist/npm/option-types/series-item/error-bars.interface.d.ts +60 -0
  121. package/dist/npm/option-types/series-item/extremes.interface.d.ts +32 -0
  122. package/dist/npm/option-types/series-item/highlight.interface.d.ts +64 -0
  123. package/dist/npm/option-types/series-item/labels.from.interface.d.ts +73 -0
  124. package/dist/npm/option-types/series-item/labels.interface.d.ts +104 -0
  125. package/dist/npm/option-types/series-item/labels.to.interface.d.ts +74 -0
  126. package/dist/npm/option-types/series-item/markers-highlight.interface.d.ts +22 -0
  127. package/dist/npm/option-types/series-item/markers.interface.d.ts +59 -0
  128. package/dist/npm/option-types/series-item/notes.icon.interface.d.ts +32 -0
  129. package/dist/npm/option-types/series-item/notes.interface.d.ts +35 -0
  130. package/dist/npm/option-types/series-item/notes.label.interface.d.ts +59 -0
  131. package/dist/npm/option-types/series-item/outliers.interface.d.ts +32 -0
  132. package/dist/npm/option-types/series-item/tooltip.interface.d.ts +59 -0
  133. package/dist/npm/option-types/series-item/trendline.interface.d.ts +31 -0
  134. package/dist/npm/option-types/series-item.interface.d.ts +645 -0
  135. package/dist/npm/option-types/subtitle.interface.d.ts +74 -0
  136. package/dist/npm/option-types/title.interface.d.ts +75 -0
  137. package/dist/npm/option-types/tooltip-border.interface.d.ts +12 -0
  138. package/dist/npm/option-types/tooltip.interface.d.ts +65 -0
  139. package/dist/npm/option-types/value-axis-item/crosshair.interface.d.ts +36 -0
  140. package/dist/npm/option-types/value-axis-item/crosshair.tooltip.interface.d.ts +6 -0
  141. package/dist/npm/option-types/value-axis-item/labels.interface.d.ts +101 -0
  142. package/dist/npm/option-types/value-axis-item/notes.icon.interface.d.ts +32 -0
  143. package/dist/npm/option-types/value-axis-item/notes.interface.d.ts +39 -0
  144. package/dist/npm/option-types/value-axis-item/notes.label.interface.d.ts +60 -0
  145. package/dist/npm/option-types/value-axis-item/title.interface.d.ts +64 -0
  146. package/dist/npm/option-types/value-axis-item.interface.d.ts +148 -0
  147. package/dist/npm/option-types/x-axis-item/crosshair.interface.d.ts +33 -0
  148. package/dist/npm/option-types/x-axis-item/crosshair.tooltip.interface.d.ts +6 -0
  149. package/dist/npm/option-types/x-axis-item/labels.interface.d.ts +109 -0
  150. package/dist/npm/option-types/x-axis-item/notes.icon.interface.d.ts +32 -0
  151. package/dist/npm/option-types/x-axis-item/notes.interface.d.ts +40 -0
  152. package/dist/npm/option-types/x-axis-item/notes.label.interface.d.ts +58 -0
  153. package/dist/npm/option-types/x-axis-item/title.interface.d.ts +65 -0
  154. package/dist/npm/option-types/x-axis-item.interface.d.ts +165 -0
  155. package/dist/npm/option-types/y-axis-item/crosshair.interface.d.ts +36 -0
  156. package/dist/npm/option-types/y-axis-item/crosshair.tooltip.interface.d.ts +6 -0
  157. package/dist/npm/option-types/y-axis-item/labels.interface.d.ts +107 -0
  158. package/dist/npm/option-types/y-axis-item/notes.icon.interface.d.ts +32 -0
  159. package/dist/npm/option-types/y-axis-item/notes.interface.d.ts +40 -0
  160. package/dist/npm/option-types/y-axis-item/notes.label.interface.d.ts +58 -0
  161. package/dist/npm/option-types/y-axis-item/title.interface.d.ts +65 -0
  162. package/dist/npm/option-types/y-axis-item.interface.d.ts +154 -0
  163. package/dist/npm/option-types/zoomable.interface.d.ts +16 -0
  164. package/dist/npm/property-types.d.ts +151 -0
  165. package/dist/npm/sankey.d.ts +5 -3
  166. package/dist/systemjs/kendo-charts.js +1 -1
  167. package/package.json +4 -2
@@ -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
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Specifies the position of the axis labels.
3
+ *
4
+ * The possible values are:
5
+ * - `"start"`&mdash;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"`&mdash;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"`&mdash;Positions the labels on the axis.
8
+ * - `""`&mdash;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"`&mdash;Positions the title at the top of the axis.
6
+ * - `"bottom"`&mdash;Positions the title at the bottom of the axis.
7
+ * - `"left"`&mdash;Positions the title at the left of the axis.
8
+ * - `"right"`&mdash;Positions the title at the right of the axis.
9
+ * - `"center"`&mdash;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"`&mdash;Sets the base unit to milliseconds.
6
+ * - `"seconds"`&mdash;Sets the base unit to seconds.
7
+ * - `"minutes"`&mdash;Sets the base unit to minutes.
8
+ * - `"hours"`&mdash;Sets the base unit to hours.
9
+ * - `"days"`&mdash;Sets the base unit to days.
10
+ * - `"weeks"`&mdash;Sets the base unit to weeks.
11
+ * - `"months"`&mdash;Sets the base unit to months.
12
+ * - `"years"`&mdash;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
- * The appearance settings for the border lines.
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
- * The color of the border line. Accepts a valid CSS color string, including hex and rgb.
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
- * The dash type of the border line.
23
+ * Specifies the dash type of the border line.
14
24
  */
15
25
  dashType?: DashType;
16
26
 
17
27
  /**
18
- * The width of the border line in pixels.
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,9 @@
1
+ /**
2
+ * Specifies the appearance settings for the target line of the Bullet series.
3
+ */
4
+ export interface BulletTargetLine {
5
+ /**
6
+ * Specifies the width of the Bullet target line in pixels.
7
+ */
8
+ width?: number;
9
+ }
@@ -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"`&mdash;Sets a fixed base time interval for the axis labels.
8
+ * - `"auto"`&mdash;Automatically determines the base unit by the minimum difference between subsequent categories.
9
+ * - `"fit"`&mdash;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
- * The dash line type.
2
+ * Specifies the dash line type.
3
+ *
4
+ * The possible values are:
5
+ * - `"dash"`&mdash;Creates a line that consists of dashes.
6
+ * - `"dashDot"`&mdash;Creates a line that consists of a repeating dash-dot pattern.
7
+ * - `"dot"`&mdash;Creates a line that consists of dots.
8
+ * - `"longDash"`&mdash;Creates a line that consists of a repeating long-dash pattern.
9
+ * - `"longDashDot"`&mdash;Creates a line that consists of a repeating long-dash-dot pattern.
10
+ * - `"longDashDotDot"`&mdash;Creates a line that consists of a repeating long-dash-dot-dot pattern.
11
+ * - `"solid"`&mdash;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
+ }