@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,65 @@
1
+ import { drawing } from '@progress/kendo-drawing';
2
+ import { AxisTitlePosition, Border, Margin, Padding, TitleVisualArgs } from '../../property-types';
3
+
4
+ /**
5
+ * Represents the configuration options of the category axis title.
6
+ */
7
+ export interface CategoryAxisTitle {
8
+
9
+ /**
10
+ * Specifies the background color of the title. Accepts a valid CSS color string, including hex and rgb.
11
+ */
12
+ background?: string;
13
+
14
+ /**
15
+ * Specifies the border of the title.
16
+ */
17
+ border?: Border;
18
+
19
+ /**
20
+ * Specifies the text color of the title. Accepts a valid CSS color string, including hex and rgb.
21
+ */
22
+ color?: string;
23
+
24
+ /**
25
+ * Specifies the font style of the title.
26
+ */
27
+ font?: string;
28
+
29
+ /**
30
+ * Specifies the margin of the title. A numeric value sets all margins.
31
+ */
32
+ margin?: Margin | number;
33
+
34
+ /**
35
+ * Specifies the padding of the title. A numeric value sets all paddings.
36
+ */
37
+ padding?: Padding | number;
38
+
39
+ /**
40
+ * Specifies the position of the title.
41
+ */
42
+ position?: AxisTitlePosition;
43
+
44
+ /**
45
+ * Specifies the rotation angle of the title. By default, the title is not rotated.
46
+ */
47
+ rotation?: number;
48
+
49
+ /**
50
+ * Specifies the text of the title.
51
+ * The text can be split into multiple lines by using the line feed characters (`"\n"`).
52
+ */
53
+ text?: string;
54
+
55
+ /**
56
+ * Determines whether the Chart displays the category axis title.
57
+ * When set to `true`, the title is visible. By default, the category axis title is visible.
58
+ */
59
+ visible?: boolean;
60
+
61
+ /**
62
+ * Specifies a function that can be used to create a custom visual for the title.
63
+ */
64
+ visual?: (e: TitleVisualArgs) => drawing.Element;
65
+ }
@@ -0,0 +1,195 @@
1
+ import { AutoBaseUnitSteps, AxisLine, AxisTicks, CategoryBaseUnit, GridLines, PlotBand, WeekStartDay } from '../property-types';
2
+ import { CategoryAxisCrosshair } from './category-axis-item/crosshair.interface';
3
+ import { CategoryAxisLabels } from './category-axis-item/labels.interface';
4
+ import { CategoryAxisRangeLabels } from './category-axis-item/range-labels.interface';
5
+ import { CategoryAxisNotes } from './category-axis-item/notes.interface';
6
+ import { CategoryAxisSelect } from './category-axis-item/select.interface';
7
+ import { CategoryAxisTitle } from './category-axis-item/title.interface';
8
+ /**
9
+ * Represents the category axis configuration options.
10
+ */
11
+ export interface CategoryAxis {
12
+ /**
13
+ * Sets the time-interval steps when [`baseUnit`](#baseunit) is set to `"fit"` or `"auto"`.
14
+ * The axis tries to divide the active period into the smallest possible units that yield [`maxDateGroups`](#maxdategroups) or less discrete intervals.
15
+ */
16
+ autoBaseUnitSteps?: AutoBaseUnitSteps;
17
+ /**
18
+ * Sets the category index or date at which the first value axis crosses this axis.
19
+ * Use an array to set the category indices or dates at which the value axes cross the category axis. To denote the far end of the axis, set an index greater than or equal to the number of categories.
20
+ */
21
+ axisCrossingValue?: any | any[];
22
+
23
+ /**
24
+ * Sets the background color of the axis.
25
+ */
26
+ background?: string;
27
+
28
+ /**
29
+ * Sets the base time interval for the date axis.
30
+ * The default base unit is automatically determined by the minimum difference between subsequent categories. Use `"fit"` to set a base unit and [`baseUnitStep`](#baseunitstep) so the total number of categories does not exceed [`categoryAxis.maxDateGroups`](#maxdategroups). Series data is aggregated for the specified base unit by using the [`series.aggregate`](#aggregate) function.
31
+ */
32
+ baseUnit?: CategoryBaseUnit;
33
+
34
+ /**
35
+ * Sets the step (interval) between categories in base units.
36
+ * Use `"auto"` to set the step so the total number of categories does not exceed [`maxDateGroups`](#maxdategroups). This option is ignored if [`baseUnit`](#baseunit) is set to `"fit"`.
37
+ */
38
+ baseUnitStep?: number | 'auto';
39
+
40
+ /**
41
+ * Sets the category names.
42
+ * The Chart creates a category for every item of the array.
43
+ */
44
+ categories?: any[];
45
+
46
+ /**
47
+ * Sets the color to apply to all axis elements.
48
+ * Accepts a valid CSS color string, including HEX and RGB and can be overridden by [`labels.color`](#labels) and [`line.color`](#line).
49
+ */
50
+ color?: string;
51
+
52
+ /**
53
+ * Determines if the Chart positions categories and series points on major ticks.
54
+ * This removes the empty space before and after the series. The default value is `false` except for `"area"`, `"verticalArea"`, `"rangeArea"`, and `"verticalRangeArea"`. This option is ignored if series `type` is set to `"bar"`, `"column"`, `"boxPlot"`, `"ohlc"`, `"candlestick"`, or `"waterfall"`.
55
+ */
56
+ justified?: boolean;
57
+
58
+ /**
59
+ * Configures the axis lines.
60
+ * Also affects the major and minor ticks, but not the grid lines.
61
+ */
62
+ line?: AxisLine;
63
+
64
+ /**
65
+ * Configures the major grid lines.
66
+ * These are the lines that are an extension of the major ticks through the body of the Chart.
67
+ */
68
+ majorGridLines?: GridLines;
69
+
70
+ /**
71
+ * Configures the category axis major ticks.
72
+ */
73
+ majorTicks?: AxisTicks;
74
+
75
+ /**
76
+ * Sets the last date displayed on a date category axis or the index of the last category displayed on a category axis.
77
+ * By default, the max value is the same as the last category. This is often used in combination with [`min`](#min) and [`roundToBaseUnit`](#roundtobaseunit) to set up a fixed date range.
78
+ */
79
+ max?: any;
80
+
81
+ /**
82
+ * Sets the maximum number of groups (categories) to display when [`baseUnit`](#baseunit) is set to `"fit"` or [`baseUnitStep`](#baseunitstep) is set to `"auto"`.
83
+ */
84
+ maxDateGroups?: number;
85
+
86
+ /**
87
+ * Sets the maximum number of ticks and labels to display.
88
+ * Applicable for date category axis.
89
+ */
90
+ maxDivisions?: number;
91
+
92
+ /**
93
+ * Sets the first date displayed on a date category axis or the index of the first category displayed on a category axis.
94
+ * By default, the min value is the same as the first category. This is often used in combination with [`max`](#max) and [`roundToBaseUnit`](#roundtobaseunit) to set up a fixed date range.
95
+ */
96
+ min?: any;
97
+
98
+ /**
99
+ * Configures the minor grid lines.
100
+ * These are the lines that are an extension of the minor ticks through the body of the Chart.
101
+ */
102
+ minorGridLines?: GridLines;
103
+
104
+ /**
105
+ * Configures the category axis minor ticks.
106
+ */
107
+ minorTicks?: AxisTicks;
108
+
109
+ /**
110
+ * Sets the unique category axis name.
111
+ * To associate a series with a category axis, set the [`series.categoryAxis`]({% slug api_charts_seriesitem %}#categoryaxis) option to the name of the axis.
112
+ * {% platform_content angular %}
113
+ * See the [Multiple Categorical Chart Axes](https://www.telerik.com/kendo-angular-ui/components/charts/elements/axes#multiple-categorical-chart-axes) example.
114
+ * {% endplatform_content %}
115
+ */
116
+ name?: string;
117
+
118
+ /**
119
+ * Configures the date axis date range labels.
120
+ */
121
+ rangeLabels?: CategoryAxisRangeLabels;
122
+
123
+ /**
124
+ * Sets the name of the pane in which the category axis has to be rendered.
125
+ * If not set, the axis will be rendered in the first (default) pane.
126
+ */
127
+ pane?: string;
128
+
129
+ /**
130
+ * Sets the plot bands of the category axis.
131
+ */
132
+ plotBands?: PlotBand[];
133
+
134
+ /**
135
+ * Determines if the category axis direction is reversed.
136
+ * By default, categories are listed from left to right and from bottom to top.
137
+ */
138
+ reverse?: boolean;
139
+
140
+ /**
141
+ * Determines if the Chart rounds the first and last date to the nearest base unit.
142
+ */
143
+ roundToBaseUnit?: boolean;
144
+
145
+ /**
146
+ * Sets the angle (degrees) of the first category on the axis.
147
+ * Angles increase clockwise with zero to the left and negative values are acceptable.
148
+ */
149
+ startAngle?: number;
150
+
151
+ /**
152
+ * Sets the category axis type.
153
+ * Use `"category"` for a discrete category axis or `"date"` for a specialized axis for displaying chronological data.
154
+ */
155
+ type?: 'category' | 'date';
156
+
157
+ /**
158
+ * Determines if the Chart displays the category axis.
159
+ * By default, the category axis is visible.
160
+ */
161
+ visible?: boolean;
162
+
163
+ /**
164
+ * Sets the week start day when the `baseUnit` is set to `"weeks"`.
165
+ */
166
+ weekStartDay?: WeekStartDay;
167
+
168
+ /**
169
+ * Configures the crosshair options.
170
+ * The crosshair is displayed when the [`categoryAxis.crosshair.visible`]({% slug api_charts_categoryaxiscrosshair %}#visible) option is set to `true`.
171
+ */
172
+ crosshair?: CategoryAxisCrosshair;
173
+
174
+ /**
175
+ * Configures the axis labels.
176
+ */
177
+ labels?: CategoryAxisLabels;
178
+
179
+ /**
180
+ * Configures the category axis notes.
181
+ */
182
+ notes?: CategoryAxisNotes;
183
+
184
+ /**
185
+ * Configures the selected axis range.
186
+ * Setting this option enables axis selection and the range is index-based, starting from zero. Categories with indexes in the range (`select.from`, `select.to`) will be selected, but the last category in the range will not be included in the selection. If the categories are dates, specify the range with date values. Selection is only supported if the axis is horizontal.
187
+ */
188
+ select?: CategoryAxisSelect;
189
+
190
+ /**
191
+ * Configures the title of the category axis.
192
+ * To display the title, set the [`categoryAxis.title.text`]({% slug api_charts_categoryaxistitle %}#text) option.
193
+ */
194
+ title?: CategoryAxisTitle;
195
+ }
@@ -0,0 +1,36 @@
1
+ import { Border, Margin } from '../property-types';
2
+ /**
3
+ * Specifies the configuration options of the Chart area.
4
+ */
5
+ export interface ChartArea {
6
+
7
+ /**
8
+ * Specifies the background color of the Chart area. Accepts a valid CSS color string, including hex and rgb.
9
+ */
10
+ background?: string;
11
+
12
+ /**
13
+ * Specifies the border of the Chart area.
14
+ */
15
+ border?: Border;
16
+
17
+ /**
18
+ * Specifies the height of the Chart area.
19
+ */
20
+ height?: number;
21
+
22
+ /**
23
+ * Specifies the margin of the Chart area. A numeric value sets all margins.
24
+ */
25
+ margin?: Margin | number;
26
+
27
+ /**
28
+ * Specifies the background opacity of the Chart area. By default, the background is opaque.
29
+ */
30
+ opacity?: number;
31
+
32
+ /**
33
+ * Specifies the width of the Chart area.
34
+ */
35
+ width?: number;
36
+ }
@@ -0,0 +1,12 @@
1
+ import { LegendLabels } from '../../property-types';
2
+
3
+ /**
4
+ * Represents the configuration options of the inactive legend items.
5
+ */
6
+ export interface LegendInactiveItems {
7
+
8
+ /**
9
+ * Specifies the label configuration of the Chart legend.
10
+ */
11
+ labels?: LegendLabels;
12
+ }
@@ -0,0 +1,124 @@
1
+ import { drawing } from '@progress/kendo-drawing';
2
+ import { Border, DashType, LegendItemVisualArgs } from '../../property-types';
3
+ import { SeriesMarkers } from './../series-item/markers.interface';
4
+
5
+ /**
6
+ * Represents the configuration options of the legend item.
7
+ */
8
+ export interface LegendItem {
9
+
10
+ /**
11
+ * Specifies the cursor style of the legend item.
12
+ */
13
+ cursor?: string;
14
+
15
+ /**
16
+ * Specifies the type of the legend item.
17
+ * The default value is based on the series type.
18
+ */
19
+ type?: LegendItemType;
20
+
21
+ /**
22
+ * Specifies the configuration of the legend items of type `line`.
23
+ * This is the default legend item type for all line and scatter series.
24
+ */
25
+ line?: LegendItemLine;
26
+
27
+ /**
28
+ * Specifies the configuration of the legend items of type `area`.
29
+ * By default, all series except line and scatter use this legend type.
30
+ */
31
+ area?: LegendItemArea;
32
+
33
+ /**
34
+ * Specifies the markers configuration of the legend item.
35
+ * Defaults to the series options.
36
+ */
37
+ markers?: LegendItemMarkers;
38
+
39
+ /**
40
+ * Specifies the highlight configuration of the legend item.
41
+ */
42
+ highlight?: LegendItemHighlight;
43
+
44
+ /**
45
+ * Specifies a function for creating a custom visual for the legend items.
46
+ */
47
+ visual?: (e: LegendItemVisualArgs) => drawing.Element;
48
+ }
49
+
50
+ /**
51
+ * The configuration of the Chart legend item markers border.
52
+ */
53
+ export interface LegendItemMarkersBorder extends Omit<Border, 'width'> { }
54
+
55
+ /**
56
+ * The configuration of the Chart legend item markers.
57
+ */
58
+ export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
59
+ /**
60
+ * Specifies the border of the markers.
61
+ */
62
+ border?: LegendItemMarkersBorder;
63
+ }
64
+
65
+ /**
66
+ * The configuration of the Chart legend item highlight state.
67
+ */
68
+ export interface LegendItemHighlight {
69
+ /**
70
+ * Determines whether the hover effect of the legend item is disabled.
71
+ * When set to `false`, the hover effect is disabled.
72
+ */
73
+ visible?: boolean;
74
+ /**
75
+ * Specifies the `markers` configuration of the legend item when it is hovered.
76
+ */
77
+ markers?: LegendItemMarkers;
78
+ }
79
+
80
+ /**
81
+ * The configuration of the Chart legend item of type `line`.
82
+ * Defaults to the series options.
83
+ */
84
+ export interface LegendItemLine {
85
+ /**
86
+ * Specifies the color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
87
+ * Defaults to the series color.
88
+ */
89
+ color?: string;
90
+ /**
91
+ * Specifies the opacity of the legend item.
92
+ * Defaults to the series opacity.
93
+ */
94
+ opacity?: number;
95
+ /**
96
+ * Specifies the dash type of the legend item.
97
+ * Defaults to the series dash type.
98
+ */
99
+ dashType?: DashType;
100
+ }
101
+
102
+ /**
103
+ * The configuration of the Chart legend items of type `area`.
104
+ * Defaults to the series options.
105
+ */
106
+ export interface LegendItemArea {
107
+ /**
108
+ * Specifies the background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
109
+ * Defaults to the series color.
110
+ */
111
+ background?: string;
112
+ /**
113
+ * Specifies the opacity of the legend item.
114
+ * Defaults to the series opacity.
115
+ */
116
+ opacity?: number;
117
+ }
118
+
119
+ /**
120
+ * Specifies the type of the Chart legend item.
121
+ *
122
+ * The options are `"line"` for rendering legend items as a line (default for line charts) and `"area"` for rendering legend items as a filled rectangle (default for area charts).
123
+ */
124
+ export type LegendItemType = 'line' | 'area';
@@ -0,0 +1,67 @@
1
+ import { Element } from '@progress/kendo-drawing';
2
+ import { Border, Margin, Padding, TitleVisualArgs } from '../../property-types';
3
+
4
+ /**
5
+ * Represents the configuration options for the Legend title.
6
+ * {% platform_content angular %}
7
+ * See the [Adding a Legend Title example](https://www.telerik.com/kendo-angular-ui/components/charts/elements/legend#adding-a-title).
8
+ * {% endplatform_content %}
9
+ */
10
+ export interface LegendTitle {
11
+ /**
12
+ * Specifies the alignment of the title.
13
+ */
14
+ align?: 'center' | 'left' | 'right';
15
+
16
+ /**
17
+ * Specifies the background color of the title. Accepts a valid CSS color string, including hex and rgb.
18
+ */
19
+ background?: string;
20
+
21
+ /**
22
+ * Specifies the border of the title.
23
+ */
24
+ border?: Border;
25
+
26
+ /**
27
+ * Specifies the text color of the title. Accepts a valid CSS color string, including hex and rgb.
28
+ */
29
+ color?: string;
30
+
31
+ /**
32
+ * Specifies the font of the title.
33
+ */
34
+ font?: string;
35
+
36
+ /**
37
+ * Specifies the margin of the title. A numeric value sets all margins.
38
+ */
39
+ margin?: Margin | number;
40
+
41
+ /**
42
+ * Specifies the padding of the title. A numeric value sets all margins.
43
+ */
44
+ padding?: Padding | number;
45
+
46
+ /**
47
+ * Specifies the position of the title.
48
+ */
49
+ position?: 'top' | 'bottom';
50
+
51
+ /**
52
+ * Specifies the text of the title.
53
+ * You can split the text into multiple lines by using the line feed characters ("\n").
54
+ */
55
+ text?: string;
56
+
57
+ /**
58
+ * Determines whether the Chart displays the Legend title.
59
+ * When set to `true`, the title is visible. By default, the title is displayed.
60
+ */
61
+ visible?: boolean;
62
+
63
+ /**
64
+ * Specifies a function for creating a custom visual for the title.
65
+ */
66
+ visual?: (args: TitleVisualArgs) => Element;
67
+ }
@@ -0,0 +1,34 @@
1
+ import { drawing } from '@progress/kendo-drawing';
2
+ import { MarkersVisualArgs, MarkerType } from '../../property-types';
3
+
4
+ /**
5
+ * Represents the configuration options of the legend markers.
6
+ */
7
+ export interface LegendMarkers {
8
+
9
+ /**
10
+ * Specifies the width (in pixels) of the markers. Defaults to `15`.
11
+ */
12
+ width?: number;
13
+
14
+ /**
15
+ * Specifies the height (in pixels) of the markers. Defaults to `3`.
16
+ */
17
+ height?: number;
18
+
19
+ /**
20
+ * Specifies the shape of the legend item markers. Defaults to `circle`.
21
+ */
22
+ type?: MarkerType;
23
+
24
+ /**
25
+ * Determines whether the Chart displays the markers.
26
+ * When set to `true`, the markers are visible. By default, the legend item markers are displayed.
27
+ */
28
+ visible?: boolean;
29
+
30
+ /**
31
+ * Specifies a function for creating a custom visual for the markers.
32
+ */
33
+ visual?: (e: MarkersVisualArgs) => drawing.Element;
34
+ }
@@ -0,0 +1,120 @@
1
+ import { Border, LegendLabels, Margin, Padding, LegendTitle, FocusHighlight } from '../property-types';
2
+ import { LegendInactiveItems } from './legend/inactive-items.interface';
3
+ import { LegendItem } from './legend/item.interface';
4
+ import { LegendMarkers } from './legend/markers.interface';
5
+
6
+ /**
7
+ * Specifies the configuration options of the Chart legend.
8
+ * {% platform_content angular %}
9
+ * See [implementation examples](https://www.telerik.com/kendo-angular-ui/components/charts/elements/legend).
10
+ * {% endplatform_content %}
11
+ */
12
+ export interface Legend {
13
+
14
+ /**
15
+ * Specifies how the legend aligns horizontally when [`position`](#position) is set to `"top"` or `"bottom"`
16
+ * or aligns vertically when [`position`](#position) is set to `"left"` or `"right"`.
17
+ */
18
+ align?: 'start' | 'center' | 'end';
19
+
20
+ /**
21
+ * Specifies the background color of the legend. Accepts a valid CSS color string, including hex and rgb.
22
+ */
23
+ background?: string;
24
+
25
+ /**
26
+ * Specifies the border of the legend.
27
+ */
28
+ border?: Border;
29
+
30
+ /**
31
+ * Specifies the height of the legend when [`orientation`](#orientation) is set to `"vertical"`.
32
+ */
33
+ height?: number;
34
+
35
+ /**
36
+ * Specifies the label configuration of the Chart legend.
37
+ */
38
+ labels?: LegendLabels;
39
+
40
+ /**
41
+ * Specifies the margin of the Chart legend. A numeric value sets all paddings.
42
+ */
43
+ margin?: Margin | number;
44
+
45
+ /**
46
+ * Specifies the X offset of the Chart legend. The offset is relative to the default position of the legend.
47
+ * For example, a value of `20` moves the legend 20 pixels to the right of its initial position.
48
+ * Negative values move the legend to the left of its current position.
49
+ */
50
+ offsetX?: number;
51
+
52
+ /**
53
+ * Specifies the Y offset of the chart legend. The offset is relative to the current position of the legend.
54
+ * For example, a value of `20` moves the legend 20 pixels down from its initial position.
55
+ * Negative values move the legend upwards from its current position.
56
+ */
57
+ offsetY?: number;
58
+
59
+ /**
60
+ * Specifies the orientation of the legend items.
61
+ */
62
+ orientation?: 'vertical' | 'horizontal';
63
+
64
+ /**
65
+ * Specifies the padding of the Chart legend. A numeric value sets all paddings.
66
+ */
67
+ padding?: Padding | number;
68
+
69
+ /**
70
+ * Specifies the positions of the Chart legend.
71
+ * Setting the legend position to `custom` allows you to position the legend using the [`offsetX`](#offsetx) and [`offsetY`](#offsety) options.
72
+ */
73
+ position?: 'top' | 'bottom' | 'left' | 'right' | 'custom';
74
+
75
+ /**
76
+ * Determines whether the legend items are reversed.
77
+ */
78
+ reverse?: boolean;
79
+
80
+ /**
81
+ * Determines whether the Chart displays the legend. By default, the Chart legend is visible.
82
+ */
83
+ visible?: boolean;
84
+
85
+ /**
86
+ * Specifies the legend width when the [`orientation`](#orientation) is set to `"horizontal"`.
87
+ */
88
+ width?: number;
89
+
90
+ /**
91
+ * Specifies the configuration of the Chart inactive legend items.
92
+ */
93
+ inactiveItems?: LegendInactiveItems;
94
+
95
+ /**
96
+ * Specifies the configuration of the Chart legend item.
97
+ */
98
+ item?: LegendItem;
99
+
100
+ /**
101
+ * Specifies the configuration of the Chart legend markers.
102
+ */
103
+ markers?: LegendMarkers;
104
+
105
+ /**
106
+ * Specifies the distance (in pixels) between the legend items. Defaults to `6`.
107
+ */
108
+ spacing?: number;
109
+
110
+ /**
111
+ * Specifies the title of the Chart legend.
112
+ * By default, the Chart will not render a legend title.
113
+ */
114
+ title?: LegendTitle;
115
+
116
+ /**
117
+ * Specifies the focus highlight configuration options of the Chart legend.
118
+ */
119
+ focusHighlight?: FocusHighlight;
120
+ }
@@ -0,0 +1,15 @@
1
+
2
+ /**
3
+ * Represents the navigator hint content function arguments.
4
+ */
5
+ export interface NavigatorHintContentArgs {
6
+ /**
7
+ * Specifies the lower boundary of the selected range.
8
+ */
9
+ from?: Date;
10
+
11
+ /**
12
+ * Specifies the upper boundary of the selected range.
13
+ */
14
+ to?: Date;
15
+ }
@@ -0,0 +1,27 @@
1
+ import { NavigatorHintContentArgs } from './hint-content-args.interface';
2
+
3
+ /**
4
+ * Represents the `navigator.hint` options.
5
+ */
6
+ export interface NavigatorHintOptions {
7
+ /**
8
+ * Specifies a function that returns the content of the hint.
9
+ */
10
+ content?: (e: NavigatorHintContentArgs) => string;
11
+
12
+ /**
13
+ * Specifies the format of the hint.
14
+ *
15
+ * By default, the format is set to `"{0} - {1}"`, where `"{0}"` represents the start value of the selected range, and `"{1}"` represents the end value.
16
+ *
17
+ * {% platform_content angular %}
18
+ * Example of usage: `[hint]="{format:'{0:dd.MM.yyyy} {1:yyyy.dd.MM}'}"`
19
+ * {% endplatform_content %}
20
+ */
21
+ format?: string;
22
+
23
+ /**
24
+ * Specifies the visibility of the hint.
25
+ */
26
+ visible?: boolean;
27
+ }