@progress/kendo-angular-charts 13.2.0-develop.5 → 13.2.0-develop.7

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 (82) hide show
  1. package/chart/axis-defaults/crosshair.component.d.ts +17 -0
  2. package/chart/axis-defaults/crosshair.tooltip.component.d.ts +18 -0
  3. package/chart/axis-defaults/labels.component.d.ts +41 -0
  4. package/chart/axis-defaults/title.component.d.ts +24 -0
  5. package/chart/axis-defaults.component.d.ts +19 -0
  6. package/chart/category-axis-item/crosshair.component.d.ts +17 -0
  7. package/chart/category-axis-item/crosshair.tooltip.component.d.ts +18 -0
  8. package/chart/category-axis-item/labels.component.d.ts +58 -0
  9. package/chart/category-axis-item/notes.label.component.d.ts +22 -0
  10. package/chart/category-axis-item/title.component.d.ts +25 -0
  11. package/chart/category-axis-item.component.d.ts +38 -0
  12. package/chart/chart-area.component.d.ts +20 -0
  13. package/chart/legend.component.d.ts +46 -0
  14. package/chart/pane/title.component.d.ts +18 -0
  15. package/chart/pane-defaults/title.component.d.ts +18 -0
  16. package/chart/pane-defaults.component.d.ts +8 -0
  17. package/chart/pane.component.d.ts +18 -51
  18. package/chart/panes.component.d.ts +8 -32
  19. package/chart/plot-area.component.d.ts +18 -0
  20. package/chart/series-defaults/labels.component.d.ts +20 -0
  21. package/chart/series-defaults/labels.from.component.d.ts +20 -0
  22. package/chart/series-defaults/labels.to.component.d.ts +20 -0
  23. package/chart/series-defaults/notes.icon.component.d.ts +8 -0
  24. package/chart/series-defaults/notes.label.component.d.ts +21 -0
  25. package/chart/series-defaults/tooltip.component.d.ts +12 -0
  26. package/chart/series-defaults.component.d.ts +16 -0
  27. package/chart/series-item/error-bars.component.d.ts +4 -0
  28. package/chart/series-item/extremes.component.d.ts +8 -0
  29. package/chart/series-item/highlight.component.d.ts +4 -0
  30. package/chart/series-item/labels.component.d.ts +25 -0
  31. package/chart/series-item/labels.from.component.d.ts +20 -0
  32. package/chart/series-item/labels.to.component.d.ts +20 -0
  33. package/chart/series-item/markers.component.d.ts +12 -0
  34. package/chart/series-item/notes.icon.component.d.ts +10 -0
  35. package/chart/series-item/notes.label.component.d.ts +26 -0
  36. package/chart/series-item/outliers.component.d.ts +10 -0
  37. package/chart/series-item/tooltip.component.d.ts +8 -0
  38. package/chart/series-item.component.d.ts +287 -0
  39. package/chart/series.component.d.ts +8 -18
  40. package/chart/subtitle.component.d.ts +24 -57
  41. package/chart/title.component.d.ts +37 -56
  42. package/chart/tooltip.component.d.ts +16 -0
  43. package/chart/value-axis-item/crosshair.component.d.ts +15 -0
  44. package/chart/value-axis-item/crosshair.tooltip.component.d.ts +16 -0
  45. package/chart/value-axis-item/labels.component.d.ts +43 -0
  46. package/chart/value-axis-item/notes.icon.component.d.ts +8 -0
  47. package/chart/value-axis-item/notes.label.component.d.ts +21 -0
  48. package/chart/value-axis-item/title.component.d.ts +24 -0
  49. package/chart/value-axis-item.component.d.ts +35 -0
  50. package/chart/value-axis.component.d.ts +6 -26
  51. package/chart/x-axis-item/crosshair.component.d.ts +12 -0
  52. package/chart/x-axis-item/crosshair.tooltip.component.d.ts +18 -0
  53. package/chart/x-axis-item/labels.component.d.ts +29 -0
  54. package/chart/x-axis-item/notes.icon.component.d.ts +8 -0
  55. package/chart/x-axis-item/notes.label.component.d.ts +22 -0
  56. package/chart/x-axis-item/title.component.d.ts +25 -0
  57. package/chart/x-axis-item.component.d.ts +13 -0
  58. package/chart/y-axis-item/labels.component.d.ts +42 -0
  59. package/chart/y-axis-item/notes.icon.component.d.ts +8 -0
  60. package/chart/y-axis-item/notes.label.component.d.ts +22 -0
  61. package/chart/y-axis-item/title.component.d.ts +25 -0
  62. package/chart/y-axis-item.component.d.ts +23 -0
  63. package/chart-breadcrumb.component.d.ts +2 -0
  64. package/chart.component.d.ts +15 -45
  65. package/esm2020/chart/pane.component.mjs +10 -51
  66. package/esm2020/chart/panes.component.mjs +8 -32
  67. package/esm2020/chart/series.component.mjs +8 -18
  68. package/esm2020/chart/subtitle.component.mjs +4 -57
  69. package/esm2020/chart/title.component.mjs +5 -56
  70. package/esm2020/chart/value-axis.component.mjs +7 -27
  71. package/esm2020/chart-breadcrumb.component.mjs +13 -6
  72. package/esm2020/chart.component.mjs +6 -45
  73. package/esm2020/package-metadata.mjs +2 -2
  74. package/fesm2015/progress-kendo-angular-charts.mjs +63 -295
  75. package/fesm2020/progress-kendo-angular-charts.mjs +63 -295
  76. package/field-types/line-style.d.ts +3 -3
  77. package/option-types/plot-area.interface.d.ts +1 -1
  78. package/option-types/series-defaults/tooltip.interface.d.ts +1 -1
  79. package/option-types/series-item/labels.from.interface.d.ts +9 -9
  80. package/option-types/series-item/labels.to.interface.d.ts +9 -9
  81. package/option-types/series-item.interface.d.ts +0 -7
  82. package/package.json +7 -7
@@ -11,7 +11,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
11
11
  import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline } from '@progress/kendo-charts';
12
12
  import { exportImage, exportSVG } from '@progress/kendo-drawing';
13
13
  import { validatePackage } from '@progress/kendo-licensing';
14
- import { Subject, BehaviorSubject, combineLatest } from 'rxjs';
14
+ import { Subject, BehaviorSubject, combineLatest, Subscription } from 'rxjs';
15
15
  import { auditTime, tap } from 'rxjs/operators';
16
16
  import * as i1 from '@progress/kendo-angular-popup';
17
17
  import { PopupService, POPUP_CONTAINER, PopupModule } from '@progress/kendo-angular-popup';
@@ -1858,8 +1858,8 @@ const packageMetadata = {
1858
1858
  name: '@progress/kendo-angular-charts',
1859
1859
  productName: 'Kendo UI for Angular',
1860
1860
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
1861
- publishDate: 1688655729,
1862
- version: '13.2.0-develop.5',
1861
+ publishDate: 1689237063,
1862
+ version: '13.2.0-develop.7',
1863
1863
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
1864
1864
  };
1865
1865
 
@@ -1907,26 +1907,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1907
1907
  }], ctorParameters: function () { return [{ type: undefined }, { type: ConfigurationService }, { type: CollectionService }]; } });
1908
1908
 
1909
1909
  /**
1910
- * A collection of one or more series items.
1910
+ * A collection of one or more series items. [See example](slug:series_chart_charts).
1911
1911
  *
1912
1912
  * @example
1913
- * ```ts
1914
- * import { Component } from '@angular/core';
1915
- *
1916
- * _@Component({
1917
- * selector: 'my-app',
1918
- * template: `
1919
- * <kendo-chart>
1920
- * <kendo-chart-series>
1921
- * <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
1922
- * </kendo-chart-series-item>
1923
- * </kendo-chart-series>
1924
- * </kendo-chart>
1925
- * `
1926
- * })
1927
- * class AppComponent {
1928
- * }
1929
- *
1913
+ * ```html
1914
+ * <kendo-chart>
1915
+ * <kendo-chart-series>
1916
+ * <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
1917
+ * </kendo-chart-series-item>
1918
+ * </kendo-chart-series>
1919
+ * </kendo-chart>
1930
1920
  * ```
1931
1921
  */
1932
1922
  class SeriesComponent extends CollectionComponent {
@@ -2443,10 +2433,7 @@ class ChartComponent {
2443
2433
  */
2444
2434
  this.noteLeave = new EventEmitter();
2445
2435
  /**
2446
- * Fires when a pane is rendered because the Chart:
2447
- * * Is rendered.
2448
- * * Performs panning or zooming.
2449
- * * Is exported with different options.
2436
+ * Fires when a pane is rendered because the Chart is rendered, performs panning or zooming, or is exported with different options.
2450
2437
  * The event is used to render custom visuals in the panes.
2451
2438
  */
2452
2439
  this.paneRender = new EventEmitter();
@@ -2473,25 +2460,19 @@ class ChartComponent {
2473
2460
  /**
2474
2461
  * Fires when the user modifies the selection.
2475
2462
  *
2476
- * The range units are:
2477
- * - Generic axis&mdash;Category index (0-based).
2478
- * - Date axis&mdash;Date instance.
2463
+ * The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
2479
2464
  */
2480
2465
  this.select = new EventEmitter();
2481
2466
  /**
2482
2467
  * Fires when the user completes the modification of the selection.
2483
2468
  *
2484
- * The range units are:
2485
- * - Generic axis&mdash;Category index (0-based).
2486
- * - Date axis&mdash;Date instance.
2469
+ * The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
2487
2470
  */
2488
2471
  this.selectEnd = new EventEmitter();
2489
2472
  /**
2490
2473
  * Fires when the user starts modifying the axis selection.
2491
2474
  *
2492
- * The range units are:
2493
- * - Generic axis&mdash;Category index (0-based).
2494
- * - Date axis&mdash;Date instance.
2475
+ * The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
2495
2476
  */
2496
2477
  this.selectStart = new EventEmitter();
2497
2478
  /**
@@ -2543,27 +2524,7 @@ class ChartComponent {
2543
2524
  * that the component redraws its content when the size of its container changes.
2544
2525
  * Defaults to `10`. To disable the automatic resizing, set it to `0`.
2545
2526
  *
2546
- * @example
2547
- * ```ts
2548
- * _@Component({
2549
- * selector: 'my-app',
2550
- * template: `
2551
- * <kendo-chart [resizeRateLimit]="2">
2552
- * <!-- ^^^^^^^^^^^^^^^^^^^^^^
2553
- * Will update the size of the Chart up to two times a second.
2554
- * Resize the example pane or window to try it out.
2555
- * -->
2556
- * <kendo-chart-series>
2557
- * <kendo-chart-series-item [data]="seriesData">
2558
- * </kendo-chart-series-item>
2559
- * </kendo-chart-series>
2560
- * </kendo-chart>
2561
- * `
2562
- * })
2563
- * export class AppComponent {
2564
- * seriesData: number[] = [1, 2, 3, 5];
2565
- * }
2566
- * ```
2527
+ * @default 10
2567
2528
  */
2568
2529
  this.resizeRateLimit = 10;
2569
2530
  this.theme = null;
@@ -2768,17 +2729,7 @@ class ChartComponent {
2768
2729
  /**
2769
2730
  * Highlights the series points or the segments of a Pie, Donut, or Funnel charts.
2770
2731
  *
2771
- * See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details.
2772
- *
2773
- * In the following example, the callback is evaluated for each data point.
2774
- * If the function returns `true`, the point is highlighted.
2775
- *
2776
- * {% meta height:500 %}
2777
- * {% embed_file elements/highlight/api/app.component.ts preview %}
2778
- * {% embed_file shared/app.module.ts hidden %}
2779
- * {% embed_file shared/main.ts hidden %}
2780
- * {% endmeta %}
2781
- *
2732
+ * See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details (with an [example](slug:serieshighlight_chart_charts#toc-toggling-the-highlight-with-code)).
2782
2733
  * @param show - A Boolean value that indicates whether the highlight is shown or hidden.
2783
2734
  * @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.
2784
2735
  */
@@ -4072,57 +4023,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4072
4023
  * The configuration component for a Chart pane.
4073
4024
  *
4074
4025
  * @example
4075
- * ```ts
4076
- * import { Component } from '@angular/core';
4077
- *
4078
- * _@Component({
4079
- * selector: 'my-app',
4080
- * template: `
4081
- * <kendo-chart>
4082
- * <kendo-chart-panes>
4083
- * <kendo-chart-pane name="top" background="pink" [border]="{ color: 'black', dashtype: 'dash', width: 2 }">
4084
- * <!-- ^^^^^^^^^^
4085
- * Unique ID for the pane.
4086
- * -->
4087
- * </kendo-chart-pane>
4088
- * <kendo-chart-pane name="bottom" [height]="150" title="Bottom pane">
4089
- * <!-- ^^^^^^^^^^^^^^
4090
- * Note that the binding is required,
4091
- * otherwise the property will be
4092
- * bound to a '100' string.
4093
- * -->
4094
- * </kendo-chart-pane>
4095
- * </kendo-chart-panes>
4096
- *
4097
- * <kendo-chart-value-axis>
4098
- * <kendo-chart-value-axis-item name="top">
4099
- * <!-- ^^^^^^^^^^
4100
- * Unique ID for the axis.
4101
- * No need to set a pane as it will use the first,
4102
- * 'top' pane by default.
4103
- * -->
4104
- * </kendo-chart-value-axis-item>
4105
- * <kendo-chart-value-axis-item name="bottom"
4106
- * pane="bottom">
4107
- * <!-- ^^^^^^^^^^^^^
4108
- * Move the axis to the bottom pane.
4109
- * -->
4110
- * </kendo-chart-value-axis-item>
4111
- * </kendo-chart-value-axis>
4112
- * <kendo-chart-series>
4113
- * <kendo-chart-series-item [data]="seriesData[0]">
4114
- * <!-- Will use the first, 'top' value axis by default. -->
4115
- * </kendo-chart-series-item>
4116
- * <kendo-chart-series-item type="line" [data]="seriesData[1]" axis="bottom">
4117
- * <!-- Plot this series to the 'bottom' axis. ^^^^^^^^^^^^^ -->
4118
- * </kendo-chart-series-item>
4119
- * </kendo-chart-series>
4120
- * </kendo-chart>
4121
- * `
4122
- * })
4123
- * export class AppComponent {
4124
- * public seriesData: number[][] = [[1, 2, 3, 5], [0, 1, 0, 1]];
4125
- * }
4026
+ * ```html
4027
+ * <kendo-chart>
4028
+ * <kendo-chart-panes>
4029
+ * <kendo-chart-pane
4030
+ * name="top"
4031
+ * background="pink"
4032
+ * [border]="{ color: 'black', dashType: 'dash', width: 2 }">
4033
+ * </kendo-chart-pane>
4034
+ * </kendo-chart-panes>
4035
+ * </kendo-chart>
4126
4036
  * ```
4127
4037
  */
4128
4038
  class PaneComponent extends CollectionItemComponent {
@@ -4235,38 +4145,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
4235
4145
  * A collection of one or more pane configuration components.
4236
4146
  *
4237
4147
  * @example
4238
- * ```ts
4239
- * import { Component } from '@angular/core';
4240
- *
4241
- * _@Component({
4242
- * selector: 'my-app',
4243
- * template: `
4244
- * <kendo-chart>
4245
- * <kendo-chart-panes>
4246
- * <kendo-chart-pane name="topPane">
4247
- * </kendo-chart-pane>
4248
- * <kendo-chart-pane name="bottomPane">
4249
- * </kendo-chart-pane>
4250
- * </kendo-chart-panes>
4251
- * <kendo-chart-value-axis>
4252
- * <kendo-chart-value-axis-item pane="topPane">
4253
- * </kendo-chart-value-axis-item>
4254
- * <kendo-chart-value-axis-item name="bottomAxis" pane="bottomPane">
4255
- * </kendo-chart-value-axis-item>
4256
- * </kendo-chart-value-axis>
4257
- * <kendo-chart-series>
4258
- * <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
4259
- * </kendo-chart-series-item>
4260
- * <kendo-chart-series-item type="line" [data]="[1, 2, 3, 4]"
4261
- * axis="bottomAxis">
4262
- * </kendo-chart-series-item>
4263
- * </kendo-chart-series>
4264
- * </kendo-chart>
4265
- * `
4266
- * })
4267
- * class AppComponent {
4268
- * }
4269
- *
4148
+ * ```html
4149
+ * <kendo-chart>
4150
+ * <kendo-chart-panes>
4151
+ * <kendo-chart-pane name="topPane"></kendo-chart-pane>
4152
+ * <kendo-chart-pane name="bottomPane"></kendo-chart-pane>
4153
+ * </kendo-chart-panes>
4154
+ * ...
4155
+ * </kendo-chart>
4270
4156
  * ```
4271
4157
  */
4272
4158
  class PanesComponent extends CollectionComponent {
@@ -5133,63 +5019,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5133
5019
  * ([see example]({% slug title_chart_charts %})).
5134
5020
  *
5135
5021
  * @example
5136
- * ```ts-preview
5137
- * import { Component } from '@angular/core';
5138
- *
5139
- * _@Component({
5140
- * selector: 'my-app',
5141
- * template: `
5142
- * <kendo-chart [categoryAxis]="{ categories: categories }">
5143
- * <kendo-chart-title text="Gross domestic product growth"></kendo-chart-title>
5144
- * <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
5145
- * <kendo-chart-legend
5146
- * position="bottom"
5147
- * orientation="horizontal"
5148
- * align="end"
5149
- * background="rgba(255, 0, 0, 0.1)"
5150
- * [border]="borderOptions"
5151
- * [margin]="10"
5152
- * [padding]="10"
5153
- * [width]="150"
5154
- * [offsetX]="11"
5155
- * [offsetY]="-103"
5156
- * [reverse]="true"
5157
- * [visible]="isVisible"
5158
- * ></kendo-chart-legend>
5159
- * <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
5160
- * <kendo-chart-series>
5161
- * <kendo-chart-series-item *ngFor="let item of series"
5162
- * type="line" style="smooth" [data]="item.data" [name]="item.name">
5163
- * </kendo-chart-series-item>
5164
- * </kendo-chart-series>
5165
- * </kendo-chart>
5166
- * <br /><br />
5167
- * <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
5168
- * `
5169
- * })
5170
- * export class AppComponent {
5171
- * public isVisible = true;
5172
- * public borderOptions = {
5173
- * color: "rgba(255, 0, 0, 0.8)",
5174
- * dashType: 'dash',
5175
- * width: 2
5176
- * };
5177
- *
5178
- * public series: any[] = [{
5179
- * name: "India",
5180
- * data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
5181
- * }, {
5182
- * name: "Russian Federation",
5183
- * data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
5184
- * }, {
5185
- * name: "Germany",
5186
- * data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
5187
- * },{
5188
- * name: "World",
5189
- * data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
5190
- * }];
5191
- * public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
5192
- * }
5022
+ * ```html
5023
+ * <kendo-chart [categoryAxis]="{ categories: categories }">
5024
+ * <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
5025
+ * </kendo-chart>
5193
5026
  * ```
5194
5027
  */
5195
5028
  class SubtitleComponent extends SettingsComponent {
@@ -5234,62 +5067,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5234
5067
  * ([see example]({% slug title_chart_charts %})).
5235
5068
  *
5236
5069
  * @example
5237
- * ```ts-preview
5238
- * import { Component } from '@angular/core';
5239
- *
5240
- * _@Component({
5241
- * selector: 'my-app',
5242
- * template: `
5243
- * <kendo-chart [categoryAxis]="{ categories: categories }">
5244
- * <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
5245
- * <kendo-chart-legend
5246
- * position="bottom"
5247
- * orientation="horizontal"
5248
- * align="end"
5249
- * background="rgba(255, 0, 0, 0.1)"
5250
- * [border]="borderOptions"
5251
- * [margin]="10"
5252
- * [padding]="10"
5253
- * [width]="150"
5254
- * [offsetX]="11"
5255
- * [offsetY]="-103"
5256
- * [reverse]="true"
5257
- * [visible]="isVisible"
5258
- * ></kendo-chart-legend>
5259
- * <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
5260
- * <kendo-chart-series>
5261
- * <kendo-chart-series-item *ngFor="let item of series"
5262
- * type="line" style="smooth" [data]="item.data" [name]="item.name">
5263
- * </kendo-chart-series-item>
5264
- * </kendo-chart-series>
5265
- * </kendo-chart>
5266
- * <br /><br />
5267
- * <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
5268
- * `
5269
- * })
5270
- * export class AppComponent {
5271
- * public isVisible = true;
5272
- * public borderOptions = {
5273
- * color: "rgba(255, 0, 0, 0.8)",
5274
- * dashType: 'dash',
5275
- * width: 2
5276
- * };
5277
- *
5278
- * public series: any[] = [{
5279
- * name: "India",
5280
- * data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
5281
- * }, {
5282
- * name: "Russian Federation",
5283
- * data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
5284
- * }, {
5285
- * name: "Germany",
5286
- * data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
5287
- * },{
5288
- * name: "World",
5289
- * data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
5290
- * }];
5291
- * public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
5292
- * }
5070
+ * ```html
5071
+ * <kendo-chart [categoryAxis]="{ categories: categories }">
5072
+ * <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
5073
+ * ...
5074
+ * </kendo-chart>
5293
5075
  * ```
5294
5076
  */
5295
5077
  class TitleComponent extends SettingsComponent {
@@ -5451,32 +5233,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5451
5233
  * A collection of one or more value axis configuration components.
5452
5234
  *
5453
5235
  * @example
5454
- * ```ts
5455
- * import { Component } from '@angular/core';
5456
- *
5457
- * _@Component({
5458
- * selector: 'my-app',
5459
- * template: `
5460
- * <kendo-chart>
5461
- * <kendo-chart-value-axis>
5462
- * <kendo-chart-value-axis-item>
5463
- * </kendo-chart-value-axis-item>
5464
- * <kendo-chart-value-axis-item name="secondAxis">
5465
- * </kendo-chart-value-axis-item>
5466
- * </kendo-chart-value-axis>
5467
- * <kendo-chart-series>
5468
- * <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
5469
- * </kendo-chart-series-item>
5470
- * <kendo-chart-series-item type="line" [data]="[0.1, 0.2, 0.3]"
5471
- * axis="secondAxis">
5472
- * </kendo-chart-series-item>
5473
- * </kendo-chart-series>
5474
- * </kendo-chart>
5475
- * `
5476
- * })
5477
- * class AppComponent {
5478
- * }
5479
- *
5236
+ * ```html
5237
+ * <kendo-chart>
5238
+ * <kendo-chart-value-axis>
5239
+ * ....
5240
+ * </kendo-chart-value-axis>
5241
+ * </kendo-chart>
5480
5242
  * ```
5481
5243
  */
5482
5244
  class ValueAxisComponent extends CollectionComponent {
@@ -5494,7 +5256,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
5494
5256
  changeDetection: ChangeDetectionStrategy.OnPush,
5495
5257
  providers: [CollectionService],
5496
5258
  selector: 'kendo-chart-value-axis',
5497
- template: ''
5259
+ template: '',
5498
5260
  }]
5499
5261
  }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionService }]; }, propDecorators: { children: [{
5500
5262
  type: ContentChildren,
@@ -6670,16 +6432,18 @@ class ChartBreadcrumbComponent {
6670
6432
  * (homeIcon is imported from '@progress/kendo-svg-icons')
6671
6433
  */
6672
6434
  this.rootItem = { icon: 'home', svgIcon: homeIcon, title: 'Home' };
6435
+ this.subscription = new Subscription();
6673
6436
  }
6674
6437
  ngOnInit() {
6675
6438
  this.items = [this.rootItem];
6676
6439
  if (this.chart) {
6677
- this.subscription = this.chart.drilldown.subscribe((e) => {
6678
- this.items = [...this.items, { text: e.point.category.toString() }];
6679
- });
6440
+ this.subscription.add(this.chart.drilldown.subscribe(this.onDrilldown.bind(this)));
6441
+ this.subscription.add(this.chart.drilldownLevelChange.subscribe(this.onDrilldownLevelChange.bind(this)));
6680
6442
  }
6681
6443
  else if (isDevMode()) {
6682
- console.warn('Chart Breadcrumb: No Chart instance supplied. Navigation is inactive.');
6444
+ throw new Error('Chart Breadcrumb: No Chart instance supplied. Please add a reference using the "chart" attribute. For example: \n' +
6445
+ '<kendo-chart-breadcrumb [chart]="instance" />\n' +
6446
+ '<kendo-chart #instance>');
6683
6447
  }
6684
6448
  }
6685
6449
  ngOnChanges(changes) {
@@ -6698,8 +6462,12 @@ class ChartBreadcrumbComponent {
6698
6462
  * @hidden
6699
6463
  */
6700
6464
  onItemClick(target) {
6701
- const level = this.items.findIndex(item => item === target);
6702
- this.chart.drilldownLevel = level;
6465
+ this.chart.drilldownLevel = this.items.findIndex(item => item === target);
6466
+ }
6467
+ onDrilldown(e) {
6468
+ this.items = [...this.items, { text: e.point.category.toString() }];
6469
+ }
6470
+ onDrilldownLevelChange(level) {
6703
6471
  this.items = this.items.slice(0, level + 1);
6704
6472
  }
6705
6473
  }