@progress/kendo-angular-charts 13.2.0-develop.6 → 13.2.0-develop.8
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/chart/axis-defaults/crosshair.component.d.ts +17 -0
- package/chart/axis-defaults/crosshair.tooltip.component.d.ts +18 -0
- package/chart/axis-defaults/labels.component.d.ts +41 -0
- package/chart/axis-defaults/title.component.d.ts +24 -0
- package/chart/axis-defaults.component.d.ts +19 -0
- package/chart/category-axis-item/crosshair.component.d.ts +17 -0
- package/chart/category-axis-item/crosshair.tooltip.component.d.ts +18 -0
- package/chart/category-axis-item/labels.component.d.ts +58 -0
- package/chart/category-axis-item/notes.label.component.d.ts +22 -0
- package/chart/category-axis-item/title.component.d.ts +25 -0
- package/chart/category-axis-item.component.d.ts +38 -0
- package/chart/chart-area.component.d.ts +20 -0
- package/chart/legend.component.d.ts +46 -0
- package/chart/pane/title.component.d.ts +18 -0
- package/chart/pane-defaults/title.component.d.ts +18 -0
- package/chart/pane-defaults.component.d.ts +8 -0
- package/chart/pane.component.d.ts +18 -51
- package/chart/panes.component.d.ts +8 -32
- package/chart/plot-area.component.d.ts +18 -0
- package/chart/series-defaults/labels.component.d.ts +20 -0
- package/chart/series-defaults/labels.from.component.d.ts +20 -0
- package/chart/series-defaults/labels.to.component.d.ts +20 -0
- package/chart/series-defaults/notes.icon.component.d.ts +8 -0
- package/chart/series-defaults/notes.label.component.d.ts +21 -0
- package/chart/series-defaults/tooltip.component.d.ts +12 -0
- package/chart/series-defaults.component.d.ts +16 -0
- package/chart/series-item/error-bars.component.d.ts +4 -0
- package/chart/series-item/extremes.component.d.ts +8 -0
- package/chart/series-item/highlight.component.d.ts +4 -0
- package/chart/series-item/labels.component.d.ts +25 -0
- package/chart/series-item/labels.from.component.d.ts +20 -0
- package/chart/series-item/labels.to.component.d.ts +20 -0
- package/chart/series-item/markers.component.d.ts +12 -0
- package/chart/series-item/notes.icon.component.d.ts +10 -0
- package/chart/series-item/notes.label.component.d.ts +26 -0
- package/chart/series-item/outliers.component.d.ts +10 -0
- package/chart/series-item/tooltip.component.d.ts +8 -0
- package/chart/series-item.component.d.ts +287 -0
- package/chart/series.component.d.ts +8 -18
- package/chart/subtitle.component.d.ts +24 -57
- package/chart/title.component.d.ts +37 -56
- package/chart/tooltip.component.d.ts +16 -0
- package/chart/value-axis-item/crosshair.component.d.ts +15 -0
- package/chart/value-axis-item/crosshair.tooltip.component.d.ts +16 -0
- package/chart/value-axis-item/labels.component.d.ts +43 -0
- package/chart/value-axis-item/notes.icon.component.d.ts +8 -0
- package/chart/value-axis-item/notes.label.component.d.ts +21 -0
- package/chart/value-axis-item/title.component.d.ts +24 -0
- package/chart/value-axis-item.component.d.ts +35 -0
- package/chart/value-axis.component.d.ts +6 -26
- package/chart/x-axis-item/crosshair.component.d.ts +12 -0
- package/chart/x-axis-item/crosshair.tooltip.component.d.ts +18 -0
- package/chart/x-axis-item/labels.component.d.ts +29 -0
- package/chart/x-axis-item/notes.icon.component.d.ts +8 -0
- package/chart/x-axis-item/notes.label.component.d.ts +22 -0
- package/chart/x-axis-item/title.component.d.ts +25 -0
- package/chart/x-axis-item.component.d.ts +13 -0
- package/chart/y-axis-item/labels.component.d.ts +42 -0
- package/chart/y-axis-item/notes.icon.component.d.ts +8 -0
- package/chart/y-axis-item/notes.label.component.d.ts +22 -0
- package/chart/y-axis-item/title.component.d.ts +25 -0
- package/chart/y-axis-item.component.d.ts +23 -0
- package/chart-breadcrumb.component.d.ts +2 -0
- package/chart.component.d.ts +15 -45
- package/esm2020/chart/pane.component.mjs +10 -51
- package/esm2020/chart/panes.component.mjs +8 -32
- package/esm2020/chart/series.component.mjs +8 -18
- package/esm2020/chart/subtitle.component.mjs +4 -57
- package/esm2020/chart/title.component.mjs +5 -56
- package/esm2020/chart/value-axis.component.mjs +7 -27
- package/esm2020/chart-breadcrumb.component.mjs +13 -6
- package/esm2020/chart.component.mjs +6 -45
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-charts.mjs +63 -295
- package/fesm2020/progress-kendo-angular-charts.mjs +63 -295
- package/field-types/line-style.d.ts +3 -3
- package/option-types/plot-area.interface.d.ts +1 -1
- package/option-types/series-defaults/tooltip.interface.d.ts +1 -1
- package/option-types/series-item/labels.from.interface.d.ts +9 -9
- package/option-types/series-item/labels.to.interface.d.ts +9 -9
- package/option-types/series-item.interface.d.ts +0 -7
- package/package.json +7 -7
package/chart.component.d.ts
CHANGED
|
@@ -100,11 +100,20 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
|
|
|
100
100
|
protected instanceEventService: InstanceEventService;
|
|
101
101
|
protected changeDetector: ChangeDetectorRef;
|
|
102
102
|
protected renderer: Renderer2;
|
|
103
|
+
/**
|
|
104
|
+
* Specifies if the Chart can be panned.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
103
107
|
pannable: boolean | DragAction;
|
|
104
108
|
renderAs: 'svg' | 'canvas';
|
|
105
109
|
seriesColors: string[];
|
|
106
110
|
subtitle: string | Subtitle;
|
|
107
111
|
title: string | Title;
|
|
112
|
+
/**
|
|
113
|
+
* If set to `true`, the Chart plays animations when it displays the series.
|
|
114
|
+
* By default, animations are enabled.
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
108
117
|
transitions: boolean;
|
|
109
118
|
zoomable: boolean | Zoomable;
|
|
110
119
|
axisDefaults: AxisDefaults;
|
|
@@ -157,10 +166,7 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
|
|
|
157
166
|
*/
|
|
158
167
|
noteLeave: EventEmitter<NoteLeaveEvent>;
|
|
159
168
|
/**
|
|
160
|
-
* Fires when a pane is rendered because the Chart
|
|
161
|
-
* * Is rendered.
|
|
162
|
-
* * Performs panning or zooming.
|
|
163
|
-
* * Is exported with different options.
|
|
169
|
+
* Fires when a pane is rendered because the Chart is rendered, performs panning or zooming, or is exported with different options.
|
|
164
170
|
* The event is used to render custom visuals in the panes.
|
|
165
171
|
*/
|
|
166
172
|
paneRender: EventEmitter<PaneRenderEvent>;
|
|
@@ -187,25 +193,19 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
|
|
|
187
193
|
/**
|
|
188
194
|
* Fires when the user modifies the selection.
|
|
189
195
|
*
|
|
190
|
-
* The range units
|
|
191
|
-
* - Generic axis—Category index (0-based).
|
|
192
|
-
* - Date axis—Date instance.
|
|
196
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
193
197
|
*/
|
|
194
198
|
select: EventEmitter<SelectEvent>;
|
|
195
199
|
/**
|
|
196
200
|
* Fires when the user completes the modification of the selection.
|
|
197
201
|
*
|
|
198
|
-
* The range units
|
|
199
|
-
* - Generic axis—Category index (0-based).
|
|
200
|
-
* - Date axis—Date instance.
|
|
202
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
201
203
|
*/
|
|
202
204
|
selectEnd: EventEmitter<SelectEndEvent>;
|
|
203
205
|
/**
|
|
204
206
|
* Fires when the user starts modifying the axis selection.
|
|
205
207
|
*
|
|
206
|
-
* The range units
|
|
207
|
-
* - Generic axis—Category index (0-based).
|
|
208
|
-
* - Date axis—Date instance.
|
|
208
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
209
209
|
*/
|
|
210
210
|
selectStart: EventEmitter<SelectStartEvent>;
|
|
211
211
|
/**
|
|
@@ -257,27 +257,7 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
|
|
|
257
257
|
* that the component redraws its content when the size of its container changes.
|
|
258
258
|
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
259
259
|
*
|
|
260
|
-
* @
|
|
261
|
-
* ```ts
|
|
262
|
-
* _@Component({
|
|
263
|
-
* selector: 'my-app',
|
|
264
|
-
* template: `
|
|
265
|
-
* <kendo-chart [resizeRateLimit]="2">
|
|
266
|
-
* <!-- ^^^^^^^^^^^^^^^^^^^^^^
|
|
267
|
-
* Will update the size of the Chart up to two times a second.
|
|
268
|
-
* Resize the example pane or window to try it out.
|
|
269
|
-
* -->
|
|
270
|
-
* <kendo-chart-series>
|
|
271
|
-
* <kendo-chart-series-item [data]="seriesData">
|
|
272
|
-
* </kendo-chart-series-item>
|
|
273
|
-
* </kendo-chart-series>
|
|
274
|
-
* </kendo-chart>
|
|
275
|
-
* `
|
|
276
|
-
* })
|
|
277
|
-
* export class AppComponent {
|
|
278
|
-
* seriesData: number[] = [1, 2, 3, 5];
|
|
279
|
-
* }
|
|
280
|
-
* ```
|
|
260
|
+
* @default 10
|
|
281
261
|
*/
|
|
282
262
|
resizeRateLimit: number;
|
|
283
263
|
/**
|
|
@@ -394,17 +374,7 @@ export declare class ChartComponent implements ChartOptions, OnChanges, OnInit,
|
|
|
394
374
|
/**
|
|
395
375
|
* Highlights the series points or the segments of a Pie, Donut, or Funnel charts.
|
|
396
376
|
*
|
|
397
|
-
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details.
|
|
398
|
-
*
|
|
399
|
-
* In the following example, the callback is evaluated for each data point.
|
|
400
|
-
* If the function returns `true`, the point is highlighted.
|
|
401
|
-
*
|
|
402
|
-
* {% meta height:500 %}
|
|
403
|
-
* {% embed_file elements/highlight/api/app.component.ts preview %}
|
|
404
|
-
* {% embed_file shared/app.module.ts hidden %}
|
|
405
|
-
* {% embed_file shared/main.ts hidden %}
|
|
406
|
-
* {% endmeta %}
|
|
407
|
-
*
|
|
377
|
+
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details (with an [example](slug:serieshighlight_chart_charts#toc-toggling-the-highlight-with-code)).
|
|
408
378
|
* @param show - A Boolean value that indicates whether the highlight is shown or hidden.
|
|
409
379
|
* @param filter - A string that represents the series or category name, an object with the series and category name, or a function which will be called for each point. The function should return `true` for the points for which the highlight is toggled.
|
|
410
380
|
*/
|
|
@@ -13,57 +13,16 @@ import * as i2 from "../common/collection.service";
|
|
|
13
13
|
* The configuration component for a Chart pane.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Unique ID for the pane.
|
|
27
|
-
* -->
|
|
28
|
-
* </kendo-chart-pane>
|
|
29
|
-
* <kendo-chart-pane name="bottom" [height]="150" title="Bottom pane">
|
|
30
|
-
* <!-- ^^^^^^^^^^^^^^
|
|
31
|
-
* Note that the binding is required,
|
|
32
|
-
* otherwise the property will be
|
|
33
|
-
* bound to a '100' string.
|
|
34
|
-
* -->
|
|
35
|
-
* </kendo-chart-pane>
|
|
36
|
-
* </kendo-chart-panes>
|
|
37
|
-
*
|
|
38
|
-
* <kendo-chart-value-axis>
|
|
39
|
-
* <kendo-chart-value-axis-item name="top">
|
|
40
|
-
* <!-- ^^^^^^^^^^
|
|
41
|
-
* Unique ID for the axis.
|
|
42
|
-
* No need to set a pane as it will use the first,
|
|
43
|
-
* 'top' pane by default.
|
|
44
|
-
* -->
|
|
45
|
-
* </kendo-chart-value-axis-item>
|
|
46
|
-
* <kendo-chart-value-axis-item name="bottom"
|
|
47
|
-
* pane="bottom">
|
|
48
|
-
* <!-- ^^^^^^^^^^^^^
|
|
49
|
-
* Move the axis to the bottom pane.
|
|
50
|
-
* -->
|
|
51
|
-
* </kendo-chart-value-axis-item>
|
|
52
|
-
* </kendo-chart-value-axis>
|
|
53
|
-
* <kendo-chart-series>
|
|
54
|
-
* <kendo-chart-series-item [data]="seriesData[0]">
|
|
55
|
-
* <!-- Will use the first, 'top' value axis by default. -->
|
|
56
|
-
* </kendo-chart-series-item>
|
|
57
|
-
* <kendo-chart-series-item type="line" [data]="seriesData[1]" axis="bottom">
|
|
58
|
-
* <!-- Plot this series to the 'bottom' axis. ^^^^^^^^^^^^^ -->
|
|
59
|
-
* </kendo-chart-series-item>
|
|
60
|
-
* </kendo-chart-series>
|
|
61
|
-
* </kendo-chart>
|
|
62
|
-
* `
|
|
63
|
-
* })
|
|
64
|
-
* export class AppComponent {
|
|
65
|
-
* public seriesData: number[][] = [[1, 2, 3, 5], [0, 1, 0, 1]];
|
|
66
|
-
* }
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-chart>
|
|
18
|
+
* <kendo-chart-panes>
|
|
19
|
+
* <kendo-chart-pane
|
|
20
|
+
* name="top"
|
|
21
|
+
* background="pink"
|
|
22
|
+
* [border]="{ color: 'black', dashType: 'dash', width: 2 }">
|
|
23
|
+
* </kendo-chart-pane>
|
|
24
|
+
* </kendo-chart-panes>
|
|
25
|
+
* </kendo-chart>
|
|
67
26
|
* ```
|
|
68
27
|
*/
|
|
69
28
|
export class PaneComponent extends CollectionItemComponent {
|
|
@@ -15,38 +15,14 @@ import * as i2 from "../common/collection.service";
|
|
|
15
15
|
* A collection of one or more pane configuration components.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* <kendo-chart-pane name="topPane">
|
|
27
|
-
* </kendo-chart-pane>
|
|
28
|
-
* <kendo-chart-pane name="bottomPane">
|
|
29
|
-
* </kendo-chart-pane>
|
|
30
|
-
* </kendo-chart-panes>
|
|
31
|
-
* <kendo-chart-value-axis>
|
|
32
|
-
* <kendo-chart-value-axis-item pane="topPane">
|
|
33
|
-
* </kendo-chart-value-axis-item>
|
|
34
|
-
* <kendo-chart-value-axis-item name="bottomAxis" pane="bottomPane">
|
|
35
|
-
* </kendo-chart-value-axis-item>
|
|
36
|
-
* </kendo-chart-value-axis>
|
|
37
|
-
* <kendo-chart-series>
|
|
38
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
39
|
-
* </kendo-chart-series-item>
|
|
40
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3, 4]"
|
|
41
|
-
* axis="bottomAxis">
|
|
42
|
-
* </kendo-chart-series-item>
|
|
43
|
-
* </kendo-chart-series>
|
|
44
|
-
* </kendo-chart>
|
|
45
|
-
* `
|
|
46
|
-
* })
|
|
47
|
-
* class AppComponent {
|
|
48
|
-
* }
|
|
49
|
-
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-chart>
|
|
20
|
+
* <kendo-chart-panes>
|
|
21
|
+
* <kendo-chart-pane name="topPane"></kendo-chart-pane>
|
|
22
|
+
* <kendo-chart-pane name="bottomPane"></kendo-chart-pane>
|
|
23
|
+
* </kendo-chart-panes>
|
|
24
|
+
* ...
|
|
25
|
+
* </kendo-chart>
|
|
50
26
|
* ```
|
|
51
27
|
*/
|
|
52
28
|
export class PanesComponent extends CollectionComponent {
|
|
@@ -14,26 +14,16 @@ import * as i1 from "../common/configuration.service";
|
|
|
14
14
|
import * as i2 from "../common/collection.service";
|
|
15
15
|
import * as i3 from "../common/tooltip-template.service";
|
|
16
16
|
/**
|
|
17
|
-
* A collection of one or more series items.
|
|
17
|
+
* A collection of one or more series items. [See example](slug:series_chart_charts).
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* <kendo-chart-series>
|
|
28
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
29
|
-
* </kendo-chart-series-item>
|
|
30
|
-
* </kendo-chart-series>
|
|
31
|
-
* </kendo-chart>
|
|
32
|
-
* `
|
|
33
|
-
* })
|
|
34
|
-
* class AppComponent {
|
|
35
|
-
* }
|
|
36
|
-
*
|
|
20
|
+
* ```html
|
|
21
|
+
* <kendo-chart>
|
|
22
|
+
* <kendo-chart-series>
|
|
23
|
+
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
24
|
+
* </kendo-chart-series-item>
|
|
25
|
+
* </kendo-chart-series>
|
|
26
|
+
* </kendo-chart>
|
|
37
27
|
* ```
|
|
38
28
|
*/
|
|
39
29
|
export class SeriesComponent extends CollectionComponent {
|
|
@@ -12,63 +12,10 @@ import * as i1 from "../common/configuration.service";
|
|
|
12
12
|
* ([see example]({% slug title_chart_charts %})).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* selector: 'my-app',
|
|
20
|
-
* template: `
|
|
21
|
-
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
22
|
-
* <kendo-chart-title text="Gross domestic product growth"></kendo-chart-title>
|
|
23
|
-
* <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
|
|
24
|
-
* <kendo-chart-legend
|
|
25
|
-
* position="bottom"
|
|
26
|
-
* orientation="horizontal"
|
|
27
|
-
* align="end"
|
|
28
|
-
* background="rgba(255, 0, 0, 0.1)"
|
|
29
|
-
* [border]="borderOptions"
|
|
30
|
-
* [margin]="10"
|
|
31
|
-
* [padding]="10"
|
|
32
|
-
* [width]="150"
|
|
33
|
-
* [offsetX]="11"
|
|
34
|
-
* [offsetY]="-103"
|
|
35
|
-
* [reverse]="true"
|
|
36
|
-
* [visible]="isVisible"
|
|
37
|
-
* ></kendo-chart-legend>
|
|
38
|
-
* <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
|
|
39
|
-
* <kendo-chart-series>
|
|
40
|
-
* <kendo-chart-series-item *ngFor="let item of series"
|
|
41
|
-
* type="line" style="smooth" [data]="item.data" [name]="item.name">
|
|
42
|
-
* </kendo-chart-series-item>
|
|
43
|
-
* </kendo-chart-series>
|
|
44
|
-
* </kendo-chart>
|
|
45
|
-
* <br /><br />
|
|
46
|
-
* <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
|
|
47
|
-
* `
|
|
48
|
-
* })
|
|
49
|
-
* export class AppComponent {
|
|
50
|
-
* public isVisible = true;
|
|
51
|
-
* public borderOptions = {
|
|
52
|
-
* color: "rgba(255, 0, 0, 0.8)",
|
|
53
|
-
* dashType: 'dash',
|
|
54
|
-
* width: 2
|
|
55
|
-
* };
|
|
56
|
-
*
|
|
57
|
-
* public series: any[] = [{
|
|
58
|
-
* name: "India",
|
|
59
|
-
* data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
|
|
60
|
-
* }, {
|
|
61
|
-
* name: "Russian Federation",
|
|
62
|
-
* data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
|
|
63
|
-
* }, {
|
|
64
|
-
* name: "Germany",
|
|
65
|
-
* data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
|
|
66
|
-
* },{
|
|
67
|
-
* name: "World",
|
|
68
|
-
* data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
|
|
69
|
-
* }];
|
|
70
|
-
* public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
|
|
71
|
-
* }
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
17
|
+
* <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
|
|
18
|
+
* </kendo-chart>
|
|
72
19
|
* ```
|
|
73
20
|
*/
|
|
74
21
|
export class SubtitleComponent extends SettingsComponent {
|
|
@@ -12,62 +12,11 @@ import * as i1 from "../common/configuration.service";
|
|
|
12
12
|
* ([see example]({% slug title_chart_charts %})).
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* template: `
|
|
21
|
-
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
22
|
-
* <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
|
|
23
|
-
* <kendo-chart-legend
|
|
24
|
-
* position="bottom"
|
|
25
|
-
* orientation="horizontal"
|
|
26
|
-
* align="end"
|
|
27
|
-
* background="rgba(255, 0, 0, 0.1)"
|
|
28
|
-
* [border]="borderOptions"
|
|
29
|
-
* [margin]="10"
|
|
30
|
-
* [padding]="10"
|
|
31
|
-
* [width]="150"
|
|
32
|
-
* [offsetX]="11"
|
|
33
|
-
* [offsetY]="-103"
|
|
34
|
-
* [reverse]="true"
|
|
35
|
-
* [visible]="isVisible"
|
|
36
|
-
* ></kendo-chart-legend>
|
|
37
|
-
* <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
|
|
38
|
-
* <kendo-chart-series>
|
|
39
|
-
* <kendo-chart-series-item *ngFor="let item of series"
|
|
40
|
-
* type="line" style="smooth" [data]="item.data" [name]="item.name">
|
|
41
|
-
* </kendo-chart-series-item>
|
|
42
|
-
* </kendo-chart-series>
|
|
43
|
-
* </kendo-chart>
|
|
44
|
-
* <br /><br />
|
|
45
|
-
* <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
|
|
46
|
-
* `
|
|
47
|
-
* })
|
|
48
|
-
* export class AppComponent {
|
|
49
|
-
* public isVisible = true;
|
|
50
|
-
* public borderOptions = {
|
|
51
|
-
* color: "rgba(255, 0, 0, 0.8)",
|
|
52
|
-
* dashType: 'dash',
|
|
53
|
-
* width: 2
|
|
54
|
-
* };
|
|
55
|
-
*
|
|
56
|
-
* public series: any[] = [{
|
|
57
|
-
* name: "India",
|
|
58
|
-
* data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
|
|
59
|
-
* }, {
|
|
60
|
-
* name: "Russian Federation",
|
|
61
|
-
* data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
|
|
62
|
-
* }, {
|
|
63
|
-
* name: "Germany",
|
|
64
|
-
* data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
|
|
65
|
-
* },{
|
|
66
|
-
* name: "World",
|
|
67
|
-
* data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
|
|
68
|
-
* }];
|
|
69
|
-
* public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
|
|
70
|
-
* }
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
17
|
+
* <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
|
|
18
|
+
* ...
|
|
19
|
+
* </kendo-chart>
|
|
71
20
|
* ```
|
|
72
21
|
*/
|
|
73
22
|
export class TitleComponent extends SettingsComponent {
|
|
@@ -15,32 +15,12 @@ import * as i2 from "../common/collection.service";
|
|
|
15
15
|
* A collection of one or more value axis configuration components.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* <kendo-chart>
|
|
25
|
-
* <kendo-chart-value-axis>
|
|
26
|
-
* <kendo-chart-value-axis-item>
|
|
27
|
-
* </kendo-chart-value-axis-item>
|
|
28
|
-
* <kendo-chart-value-axis-item name="secondAxis">
|
|
29
|
-
* </kendo-chart-value-axis-item>
|
|
30
|
-
* </kendo-chart-value-axis>
|
|
31
|
-
* <kendo-chart-series>
|
|
32
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
33
|
-
* </kendo-chart-series-item>
|
|
34
|
-
* <kendo-chart-series-item type="line" [data]="[0.1, 0.2, 0.3]"
|
|
35
|
-
* axis="secondAxis">
|
|
36
|
-
* </kendo-chart-series-item>
|
|
37
|
-
* </kendo-chart-series>
|
|
38
|
-
* </kendo-chart>
|
|
39
|
-
* `
|
|
40
|
-
* })
|
|
41
|
-
* class AppComponent {
|
|
42
|
-
* }
|
|
43
|
-
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-chart>
|
|
20
|
+
* <kendo-chart-value-axis>
|
|
21
|
+
* ....
|
|
22
|
+
* </kendo-chart-value-axis>
|
|
23
|
+
* </kendo-chart>
|
|
44
24
|
* ```
|
|
45
25
|
*/
|
|
46
26
|
export class ValueAxisComponent extends CollectionComponent {
|
|
@@ -58,7 +38,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
58
38
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
59
39
|
providers: [CollectionService],
|
|
60
40
|
selector: 'kendo-chart-value-axis',
|
|
61
|
-
template: ''
|
|
41
|
+
template: '',
|
|
62
42
|
}]
|
|
63
43
|
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; }, propDecorators: { children: [{
|
|
64
44
|
type: ContentChildren,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Component, Input, ViewChild, isDevMode } from '@angular/core';
|
|
6
6
|
import { BreadCrumbComponent } from '@progress/kendo-angular-navigation';
|
|
7
7
|
import { ChartComponent } from './index';
|
|
8
|
+
import { Subscription } from 'rxjs';
|
|
8
9
|
import { homeIcon } from '@progress/kendo-svg-icons';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "@progress/kendo-angular-navigation";
|
|
@@ -24,16 +25,18 @@ export class ChartBreadcrumbComponent {
|
|
|
24
25
|
* (homeIcon is imported from '@progress/kendo-svg-icons')
|
|
25
26
|
*/
|
|
26
27
|
this.rootItem = { icon: 'home', svgIcon: homeIcon, title: 'Home' };
|
|
28
|
+
this.subscription = new Subscription();
|
|
27
29
|
}
|
|
28
30
|
ngOnInit() {
|
|
29
31
|
this.items = [this.rootItem];
|
|
30
32
|
if (this.chart) {
|
|
31
|
-
this.subscription
|
|
32
|
-
|
|
33
|
-
});
|
|
33
|
+
this.subscription.add(this.chart.drilldown.subscribe(this.onDrilldown.bind(this)));
|
|
34
|
+
this.subscription.add(this.chart.drilldownLevelChange.subscribe(this.onDrilldownLevelChange.bind(this)));
|
|
34
35
|
}
|
|
35
36
|
else if (isDevMode()) {
|
|
36
|
-
|
|
37
|
+
throw new Error('Chart Breadcrumb: No Chart instance supplied. Please add a reference using the "chart" attribute. For example: \n' +
|
|
38
|
+
'<kendo-chart-breadcrumb [chart]="instance" />\n' +
|
|
39
|
+
'<kendo-chart #instance>');
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
ngOnChanges(changes) {
|
|
@@ -52,8 +55,12 @@ export class ChartBreadcrumbComponent {
|
|
|
52
55
|
* @hidden
|
|
53
56
|
*/
|
|
54
57
|
onItemClick(target) {
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
this.chart.drilldownLevel = this.items.findIndex(item => item === target);
|
|
59
|
+
}
|
|
60
|
+
onDrilldown(e) {
|
|
61
|
+
this.items = [...this.items, { text: e.point.category.toString() }];
|
|
62
|
+
}
|
|
63
|
+
onDrilldownLevelChange(level) {
|
|
57
64
|
this.items = this.items.slice(0, level + 1);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
@@ -128,10 +128,7 @@ export class ChartComponent {
|
|
|
128
128
|
*/
|
|
129
129
|
this.noteLeave = new EventEmitter();
|
|
130
130
|
/**
|
|
131
|
-
* Fires when a pane is rendered because the Chart
|
|
132
|
-
* * Is rendered.
|
|
133
|
-
* * Performs panning or zooming.
|
|
134
|
-
* * Is exported with different options.
|
|
131
|
+
* Fires when a pane is rendered because the Chart is rendered, performs panning or zooming, or is exported with different options.
|
|
135
132
|
* The event is used to render custom visuals in the panes.
|
|
136
133
|
*/
|
|
137
134
|
this.paneRender = new EventEmitter();
|
|
@@ -158,25 +155,19 @@ export class ChartComponent {
|
|
|
158
155
|
/**
|
|
159
156
|
* Fires when the user modifies the selection.
|
|
160
157
|
*
|
|
161
|
-
* The range units
|
|
162
|
-
* - Generic axis—Category index (0-based).
|
|
163
|
-
* - Date axis—Date instance.
|
|
158
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
164
159
|
*/
|
|
165
160
|
this.select = new EventEmitter();
|
|
166
161
|
/**
|
|
167
162
|
* Fires when the user completes the modification of the selection.
|
|
168
163
|
*
|
|
169
|
-
* The range units
|
|
170
|
-
* - Generic axis—Category index (0-based).
|
|
171
|
-
* - Date axis—Date instance.
|
|
164
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
172
165
|
*/
|
|
173
166
|
this.selectEnd = new EventEmitter();
|
|
174
167
|
/**
|
|
175
168
|
* Fires when the user starts modifying the axis selection.
|
|
176
169
|
*
|
|
177
|
-
* The range units
|
|
178
|
-
* - Generic axis—Category index (0-based).
|
|
179
|
-
* - Date axis—Date instance.
|
|
170
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
180
171
|
*/
|
|
181
172
|
this.selectStart = new EventEmitter();
|
|
182
173
|
/**
|
|
@@ -228,27 +219,7 @@ export class ChartComponent {
|
|
|
228
219
|
* that the component redraws its content when the size of its container changes.
|
|
229
220
|
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
230
221
|
*
|
|
231
|
-
* @
|
|
232
|
-
* ```ts
|
|
233
|
-
* _@Component({
|
|
234
|
-
* selector: 'my-app',
|
|
235
|
-
* template: `
|
|
236
|
-
* <kendo-chart [resizeRateLimit]="2">
|
|
237
|
-
* <!-- ^^^^^^^^^^^^^^^^^^^^^^
|
|
238
|
-
* Will update the size of the Chart up to two times a second.
|
|
239
|
-
* Resize the example pane or window to try it out.
|
|
240
|
-
* -->
|
|
241
|
-
* <kendo-chart-series>
|
|
242
|
-
* <kendo-chart-series-item [data]="seriesData">
|
|
243
|
-
* </kendo-chart-series-item>
|
|
244
|
-
* </kendo-chart-series>
|
|
245
|
-
* </kendo-chart>
|
|
246
|
-
* `
|
|
247
|
-
* })
|
|
248
|
-
* export class AppComponent {
|
|
249
|
-
* seriesData: number[] = [1, 2, 3, 5];
|
|
250
|
-
* }
|
|
251
|
-
* ```
|
|
222
|
+
* @default 10
|
|
252
223
|
*/
|
|
253
224
|
this.resizeRateLimit = 10;
|
|
254
225
|
this.theme = null;
|
|
@@ -453,17 +424,7 @@ export class ChartComponent {
|
|
|
453
424
|
/**
|
|
454
425
|
* Highlights the series points or the segments of a Pie, Donut, or Funnel charts.
|
|
455
426
|
*
|
|
456
|
-
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details.
|
|
457
|
-
*
|
|
458
|
-
* In the following example, the callback is evaluated for each data point.
|
|
459
|
-
* If the function returns `true`, the point is highlighted.
|
|
460
|
-
*
|
|
461
|
-
* {% meta height:500 %}
|
|
462
|
-
* {% embed_file elements/highlight/api/app.component.ts preview %}
|
|
463
|
-
* {% embed_file shared/app.module.ts hidden %}
|
|
464
|
-
* {% embed_file shared/main.ts hidden %}
|
|
465
|
-
* {% endmeta %}
|
|
466
|
-
*
|
|
427
|
+
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details (with an [example](slug:serieshighlight_chart_charts#toc-toggling-the-highlight-with-code)).
|
|
467
428
|
* @param show - A Boolean value that indicates whether the highlight is shown or hidden.
|
|
468
429
|
* @param filter - A string that represents the series or category name, an object with the series and category name, or a function which will be called for each point. The function should return `true` for the points for which the highlight is toggled.
|
|
469
430
|
*/
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-charts',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '13.2.0-develop.
|
|
12
|
+
publishDate: 1689258793,
|
|
13
|
+
version: '13.2.0-develop.8',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|