@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
|
@@ -12,7 +12,7 @@ import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
|
12
12
|
import { DateCategoryAxis, DateValueAxis, DomEventsBuilder as DomEventsBuilder$1, InstanceObserver, chartBaseTheme, Chart, StockChart, Sparkline } from '@progress/kendo-charts';
|
|
13
13
|
import { exportImage, exportSVG } from '@progress/kendo-drawing';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
-
import { Subject, BehaviorSubject, combineLatest } from 'rxjs';
|
|
15
|
+
import { Subject, BehaviorSubject, combineLatest, Subscription } from 'rxjs';
|
|
16
16
|
import { auditTime, tap } from 'rxjs/operators';
|
|
17
17
|
import * as i1 from '@progress/kendo-angular-popup';
|
|
18
18
|
import { PopupService, POPUP_CONTAINER, PopupModule } from '@progress/kendo-angular-popup';
|
|
@@ -2227,8 +2227,8 @@ const packageMetadata = {
|
|
|
2227
2227
|
name: '@progress/kendo-angular-charts',
|
|
2228
2228
|
productName: 'Kendo UI for Angular',
|
|
2229
2229
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
2230
|
-
publishDate:
|
|
2231
|
-
version: '13.2.0-develop.
|
|
2230
|
+
publishDate: 1689258793,
|
|
2231
|
+
version: '13.2.0-develop.8',
|
|
2232
2232
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
2233
2233
|
};
|
|
2234
2234
|
|
|
@@ -2276,26 +2276,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
2276
2276
|
}], ctorParameters: function () { return [{ type: undefined }, { type: ConfigurationService }, { type: CollectionService }]; } });
|
|
2277
2277
|
|
|
2278
2278
|
/**
|
|
2279
|
-
* A collection of one or more series items.
|
|
2279
|
+
* A collection of one or more series items. [See example](slug:series_chart_charts).
|
|
2280
2280
|
*
|
|
2281
2281
|
* @example
|
|
2282
|
-
* ```
|
|
2283
|
-
*
|
|
2284
|
-
*
|
|
2285
|
-
*
|
|
2286
|
-
*
|
|
2287
|
-
*
|
|
2288
|
-
*
|
|
2289
|
-
* <kendo-chart-series>
|
|
2290
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
2291
|
-
* </kendo-chart-series-item>
|
|
2292
|
-
* </kendo-chart-series>
|
|
2293
|
-
* </kendo-chart>
|
|
2294
|
-
* `
|
|
2295
|
-
* })
|
|
2296
|
-
* class AppComponent {
|
|
2297
|
-
* }
|
|
2298
|
-
*
|
|
2282
|
+
* ```html
|
|
2283
|
+
* <kendo-chart>
|
|
2284
|
+
* <kendo-chart-series>
|
|
2285
|
+
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
2286
|
+
* </kendo-chart-series-item>
|
|
2287
|
+
* </kendo-chart-series>
|
|
2288
|
+
* </kendo-chart>
|
|
2299
2289
|
* ```
|
|
2300
2290
|
*/
|
|
2301
2291
|
class SeriesComponent extends CollectionComponent {
|
|
@@ -2435,10 +2425,7 @@ class ChartComponent {
|
|
|
2435
2425
|
*/
|
|
2436
2426
|
this.noteLeave = new EventEmitter();
|
|
2437
2427
|
/**
|
|
2438
|
-
* Fires when a pane is rendered because the Chart
|
|
2439
|
-
* * Is rendered.
|
|
2440
|
-
* * Performs panning or zooming.
|
|
2441
|
-
* * Is exported with different options.
|
|
2428
|
+
* Fires when a pane is rendered because the Chart is rendered, performs panning or zooming, or is exported with different options.
|
|
2442
2429
|
* The event is used to render custom visuals in the panes.
|
|
2443
2430
|
*/
|
|
2444
2431
|
this.paneRender = new EventEmitter();
|
|
@@ -2465,25 +2452,19 @@ class ChartComponent {
|
|
|
2465
2452
|
/**
|
|
2466
2453
|
* Fires when the user modifies the selection.
|
|
2467
2454
|
*
|
|
2468
|
-
* The range units
|
|
2469
|
-
* - Generic axis—Category index (0-based).
|
|
2470
|
-
* - Date axis—Date instance.
|
|
2455
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
2471
2456
|
*/
|
|
2472
2457
|
this.select = new EventEmitter();
|
|
2473
2458
|
/**
|
|
2474
2459
|
* Fires when the user completes the modification of the selection.
|
|
2475
2460
|
*
|
|
2476
|
-
* The range units
|
|
2477
|
-
* - Generic axis—Category index (0-based).
|
|
2478
|
-
* - Date axis—Date instance.
|
|
2461
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
2479
2462
|
*/
|
|
2480
2463
|
this.selectEnd = new EventEmitter();
|
|
2481
2464
|
/**
|
|
2482
2465
|
* Fires when the user starts modifying the axis selection.
|
|
2483
2466
|
*
|
|
2484
|
-
* The range units
|
|
2485
|
-
* - Generic axis—Category index (0-based).
|
|
2486
|
-
* - Date axis—Date instance.
|
|
2467
|
+
* The range units include a generic axis category index (0-based) and a date axis represented by a date instance.
|
|
2487
2468
|
*/
|
|
2488
2469
|
this.selectStart = new EventEmitter();
|
|
2489
2470
|
/**
|
|
@@ -2535,27 +2516,7 @@ class ChartComponent {
|
|
|
2535
2516
|
* that the component redraws its content when the size of its container changes.
|
|
2536
2517
|
* Defaults to `10`. To disable the automatic resizing, set it to `0`.
|
|
2537
2518
|
*
|
|
2538
|
-
* @
|
|
2539
|
-
* ```ts
|
|
2540
|
-
* _@Component({
|
|
2541
|
-
* selector: 'my-app',
|
|
2542
|
-
* template: `
|
|
2543
|
-
* <kendo-chart [resizeRateLimit]="2">
|
|
2544
|
-
* <!-- ^^^^^^^^^^^^^^^^^^^^^^
|
|
2545
|
-
* Will update the size of the Chart up to two times a second.
|
|
2546
|
-
* Resize the example pane or window to try it out.
|
|
2547
|
-
* -->
|
|
2548
|
-
* <kendo-chart-series>
|
|
2549
|
-
* <kendo-chart-series-item [data]="seriesData">
|
|
2550
|
-
* </kendo-chart-series-item>
|
|
2551
|
-
* </kendo-chart-series>
|
|
2552
|
-
* </kendo-chart>
|
|
2553
|
-
* `
|
|
2554
|
-
* })
|
|
2555
|
-
* export class AppComponent {
|
|
2556
|
-
* seriesData: number[] = [1, 2, 3, 5];
|
|
2557
|
-
* }
|
|
2558
|
-
* ```
|
|
2519
|
+
* @default 10
|
|
2559
2520
|
*/
|
|
2560
2521
|
this.resizeRateLimit = 10;
|
|
2561
2522
|
this.theme = null;
|
|
@@ -2760,17 +2721,7 @@ class ChartComponent {
|
|
|
2760
2721
|
/**
|
|
2761
2722
|
* Highlights the series points or the segments of a Pie, Donut, or Funnel charts.
|
|
2762
2723
|
*
|
|
2763
|
-
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details.
|
|
2764
|
-
*
|
|
2765
|
-
* In the following example, the callback is evaluated for each data point.
|
|
2766
|
-
* If the function returns `true`, the point is highlighted.
|
|
2767
|
-
*
|
|
2768
|
-
* {% meta height:500 %}
|
|
2769
|
-
* {% embed_file elements/highlight/api/app.component.ts preview %}
|
|
2770
|
-
* {% embed_file shared/app.module.ts hidden %}
|
|
2771
|
-
* {% embed_file shared/main.ts hidden %}
|
|
2772
|
-
* {% endmeta %}
|
|
2773
|
-
*
|
|
2724
|
+
* See [Series Highlight]({% slug serieshighlight_chart_charts %}) for more details (with an [example](slug:serieshighlight_chart_charts#toc-toggling-the-highlight-with-code)).
|
|
2774
2725
|
* @param show - A Boolean value that indicates whether the highlight is shown or hidden.
|
|
2775
2726
|
* @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.
|
|
2776
2727
|
*/
|
|
@@ -4097,57 +4048,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4097
4048
|
* The configuration component for a Chart pane.
|
|
4098
4049
|
*
|
|
4099
4050
|
* @example
|
|
4100
|
-
* ```
|
|
4101
|
-
*
|
|
4102
|
-
*
|
|
4103
|
-
*
|
|
4104
|
-
*
|
|
4105
|
-
*
|
|
4106
|
-
*
|
|
4107
|
-
*
|
|
4108
|
-
*
|
|
4109
|
-
*
|
|
4110
|
-
* Unique ID for the pane.
|
|
4111
|
-
* -->
|
|
4112
|
-
* </kendo-chart-pane>
|
|
4113
|
-
* <kendo-chart-pane name="bottom" [height]="150" title="Bottom pane">
|
|
4114
|
-
* <!-- ^^^^^^^^^^^^^^
|
|
4115
|
-
* Note that the binding is required,
|
|
4116
|
-
* otherwise the property will be
|
|
4117
|
-
* bound to a '100' string.
|
|
4118
|
-
* -->
|
|
4119
|
-
* </kendo-chart-pane>
|
|
4120
|
-
* </kendo-chart-panes>
|
|
4121
|
-
*
|
|
4122
|
-
* <kendo-chart-value-axis>
|
|
4123
|
-
* <kendo-chart-value-axis-item name="top">
|
|
4124
|
-
* <!-- ^^^^^^^^^^
|
|
4125
|
-
* Unique ID for the axis.
|
|
4126
|
-
* No need to set a pane as it will use the first,
|
|
4127
|
-
* 'top' pane by default.
|
|
4128
|
-
* -->
|
|
4129
|
-
* </kendo-chart-value-axis-item>
|
|
4130
|
-
* <kendo-chart-value-axis-item name="bottom"
|
|
4131
|
-
* pane="bottom">
|
|
4132
|
-
* <!-- ^^^^^^^^^^^^^
|
|
4133
|
-
* Move the axis to the bottom pane.
|
|
4134
|
-
* -->
|
|
4135
|
-
* </kendo-chart-value-axis-item>
|
|
4136
|
-
* </kendo-chart-value-axis>
|
|
4137
|
-
* <kendo-chart-series>
|
|
4138
|
-
* <kendo-chart-series-item [data]="seriesData[0]">
|
|
4139
|
-
* <!-- Will use the first, 'top' value axis by default. -->
|
|
4140
|
-
* </kendo-chart-series-item>
|
|
4141
|
-
* <kendo-chart-series-item type="line" [data]="seriesData[1]" axis="bottom">
|
|
4142
|
-
* <!-- Plot this series to the 'bottom' axis. ^^^^^^^^^^^^^ -->
|
|
4143
|
-
* </kendo-chart-series-item>
|
|
4144
|
-
* </kendo-chart-series>
|
|
4145
|
-
* </kendo-chart>
|
|
4146
|
-
* `
|
|
4147
|
-
* })
|
|
4148
|
-
* export class AppComponent {
|
|
4149
|
-
* public seriesData: number[][] = [[1, 2, 3, 5], [0, 1, 0, 1]];
|
|
4150
|
-
* }
|
|
4051
|
+
* ```html
|
|
4052
|
+
* <kendo-chart>
|
|
4053
|
+
* <kendo-chart-panes>
|
|
4054
|
+
* <kendo-chart-pane
|
|
4055
|
+
* name="top"
|
|
4056
|
+
* background="pink"
|
|
4057
|
+
* [border]="{ color: 'black', dashType: 'dash', width: 2 }">
|
|
4058
|
+
* </kendo-chart-pane>
|
|
4059
|
+
* </kendo-chart-panes>
|
|
4060
|
+
* </kendo-chart>
|
|
4151
4061
|
* ```
|
|
4152
4062
|
*/
|
|
4153
4063
|
class PaneComponent extends CollectionItemComponent {
|
|
@@ -4260,38 +4170,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
4260
4170
|
* A collection of one or more pane configuration components.
|
|
4261
4171
|
*
|
|
4262
4172
|
* @example
|
|
4263
|
-
* ```
|
|
4264
|
-
*
|
|
4265
|
-
*
|
|
4266
|
-
*
|
|
4267
|
-
*
|
|
4268
|
-
*
|
|
4269
|
-
*
|
|
4270
|
-
*
|
|
4271
|
-
* <kendo-chart-pane name="topPane">
|
|
4272
|
-
* </kendo-chart-pane>
|
|
4273
|
-
* <kendo-chart-pane name="bottomPane">
|
|
4274
|
-
* </kendo-chart-pane>
|
|
4275
|
-
* </kendo-chart-panes>
|
|
4276
|
-
* <kendo-chart-value-axis>
|
|
4277
|
-
* <kendo-chart-value-axis-item pane="topPane">
|
|
4278
|
-
* </kendo-chart-value-axis-item>
|
|
4279
|
-
* <kendo-chart-value-axis-item name="bottomAxis" pane="bottomPane">
|
|
4280
|
-
* </kendo-chart-value-axis-item>
|
|
4281
|
-
* </kendo-chart-value-axis>
|
|
4282
|
-
* <kendo-chart-series>
|
|
4283
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
4284
|
-
* </kendo-chart-series-item>
|
|
4285
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3, 4]"
|
|
4286
|
-
* axis="bottomAxis">
|
|
4287
|
-
* </kendo-chart-series-item>
|
|
4288
|
-
* </kendo-chart-series>
|
|
4289
|
-
* </kendo-chart>
|
|
4290
|
-
* `
|
|
4291
|
-
* })
|
|
4292
|
-
* class AppComponent {
|
|
4293
|
-
* }
|
|
4294
|
-
*
|
|
4173
|
+
* ```html
|
|
4174
|
+
* <kendo-chart>
|
|
4175
|
+
* <kendo-chart-panes>
|
|
4176
|
+
* <kendo-chart-pane name="topPane"></kendo-chart-pane>
|
|
4177
|
+
* <kendo-chart-pane name="bottomPane"></kendo-chart-pane>
|
|
4178
|
+
* </kendo-chart-panes>
|
|
4179
|
+
* ...
|
|
4180
|
+
* </kendo-chart>
|
|
4295
4181
|
* ```
|
|
4296
4182
|
*/
|
|
4297
4183
|
class PanesComponent extends CollectionComponent {
|
|
@@ -5158,63 +5044,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5158
5044
|
* ([see example]({% slug title_chart_charts %})).
|
|
5159
5045
|
*
|
|
5160
5046
|
* @example
|
|
5161
|
-
* ```
|
|
5162
|
-
*
|
|
5163
|
-
*
|
|
5164
|
-
*
|
|
5165
|
-
* selector: 'my-app',
|
|
5166
|
-
* template: `
|
|
5167
|
-
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
5168
|
-
* <kendo-chart-title text="Gross domestic product growth"></kendo-chart-title>
|
|
5169
|
-
* <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
|
|
5170
|
-
* <kendo-chart-legend
|
|
5171
|
-
* position="bottom"
|
|
5172
|
-
* orientation="horizontal"
|
|
5173
|
-
* align="end"
|
|
5174
|
-
* background="rgba(255, 0, 0, 0.1)"
|
|
5175
|
-
* [border]="borderOptions"
|
|
5176
|
-
* [margin]="10"
|
|
5177
|
-
* [padding]="10"
|
|
5178
|
-
* [width]="150"
|
|
5179
|
-
* [offsetX]="11"
|
|
5180
|
-
* [offsetY]="-103"
|
|
5181
|
-
* [reverse]="true"
|
|
5182
|
-
* [visible]="isVisible"
|
|
5183
|
-
* ></kendo-chart-legend>
|
|
5184
|
-
* <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
|
|
5185
|
-
* <kendo-chart-series>
|
|
5186
|
-
* <kendo-chart-series-item *ngFor="let item of series"
|
|
5187
|
-
* type="line" style="smooth" [data]="item.data" [name]="item.name">
|
|
5188
|
-
* </kendo-chart-series-item>
|
|
5189
|
-
* </kendo-chart-series>
|
|
5190
|
-
* </kendo-chart>
|
|
5191
|
-
* <br /><br />
|
|
5192
|
-
* <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
|
|
5193
|
-
* `
|
|
5194
|
-
* })
|
|
5195
|
-
* export class AppComponent {
|
|
5196
|
-
* public isVisible = true;
|
|
5197
|
-
* public borderOptions = {
|
|
5198
|
-
* color: "rgba(255, 0, 0, 0.8)",
|
|
5199
|
-
* dashType: 'dash',
|
|
5200
|
-
* width: 2
|
|
5201
|
-
* };
|
|
5202
|
-
*
|
|
5203
|
-
* public series: any[] = [{
|
|
5204
|
-
* name: "India",
|
|
5205
|
-
* data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
|
|
5206
|
-
* }, {
|
|
5207
|
-
* name: "Russian Federation",
|
|
5208
|
-
* data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
|
|
5209
|
-
* }, {
|
|
5210
|
-
* name: "Germany",
|
|
5211
|
-
* data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
|
|
5212
|
-
* },{
|
|
5213
|
-
* name: "World",
|
|
5214
|
-
* data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
|
|
5215
|
-
* }];
|
|
5216
|
-
* public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
|
|
5217
|
-
* }
|
|
5047
|
+
* ```html
|
|
5048
|
+
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
5049
|
+
* <kendo-chart-subtitle text="/GDP annual %/"></kendo-chart-subtitle>
|
|
5050
|
+
* </kendo-chart>
|
|
5218
5051
|
* ```
|
|
5219
5052
|
*/
|
|
5220
5053
|
class SubtitleComponent extends SettingsComponent {
|
|
@@ -5259,62 +5092,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5259
5092
|
* ([see example]({% slug title_chart_charts %})).
|
|
5260
5093
|
*
|
|
5261
5094
|
* @example
|
|
5262
|
-
* ```
|
|
5263
|
-
*
|
|
5264
|
-
*
|
|
5265
|
-
*
|
|
5266
|
-
*
|
|
5267
|
-
* template: `
|
|
5268
|
-
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
5269
|
-
* <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
|
|
5270
|
-
* <kendo-chart-legend
|
|
5271
|
-
* position="bottom"
|
|
5272
|
-
* orientation="horizontal"
|
|
5273
|
-
* align="end"
|
|
5274
|
-
* background="rgba(255, 0, 0, 0.1)"
|
|
5275
|
-
* [border]="borderOptions"
|
|
5276
|
-
* [margin]="10"
|
|
5277
|
-
* [padding]="10"
|
|
5278
|
-
* [width]="150"
|
|
5279
|
-
* [offsetX]="11"
|
|
5280
|
-
* [offsetY]="-103"
|
|
5281
|
-
* [reverse]="true"
|
|
5282
|
-
* [visible]="isVisible"
|
|
5283
|
-
* ></kendo-chart-legend>
|
|
5284
|
-
* <kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
|
|
5285
|
-
* <kendo-chart-series>
|
|
5286
|
-
* <kendo-chart-series-item *ngFor="let item of series"
|
|
5287
|
-
* type="line" style="smooth" [data]="item.data" [name]="item.name">
|
|
5288
|
-
* </kendo-chart-series-item>
|
|
5289
|
-
* </kendo-chart-series>
|
|
5290
|
-
* </kendo-chart>
|
|
5291
|
-
* <br /><br />
|
|
5292
|
-
* <button kendoButton (click)="isVisible=!isVisible">Toggle Legend</button>
|
|
5293
|
-
* `
|
|
5294
|
-
* })
|
|
5295
|
-
* export class AppComponent {
|
|
5296
|
-
* public isVisible = true;
|
|
5297
|
-
* public borderOptions = {
|
|
5298
|
-
* color: "rgba(255, 0, 0, 0.8)",
|
|
5299
|
-
* dashType: 'dash',
|
|
5300
|
-
* width: 2
|
|
5301
|
-
* };
|
|
5302
|
-
*
|
|
5303
|
-
* public series: any[] = [{
|
|
5304
|
-
* name: "India",
|
|
5305
|
-
* data: [3.907, 7.943, 7.848, 9.284, 9.263, 9.801, 3.890, 8.238, 9.552, 6.855]
|
|
5306
|
-
* }, {
|
|
5307
|
-
* name: "Russian Federation",
|
|
5308
|
-
* data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
|
|
5309
|
-
* }, {
|
|
5310
|
-
* name: "Germany",
|
|
5311
|
-
* data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
|
|
5312
|
-
* },{
|
|
5313
|
-
* name: "World",
|
|
5314
|
-
* data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
|
|
5315
|
-
* }];
|
|
5316
|
-
* public categories: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011];
|
|
5317
|
-
* }
|
|
5095
|
+
* ```html
|
|
5096
|
+
* <kendo-chart [categoryAxis]="{ categories: categories }">
|
|
5097
|
+
* <kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
|
|
5098
|
+
* ...
|
|
5099
|
+
* </kendo-chart>
|
|
5318
5100
|
* ```
|
|
5319
5101
|
*/
|
|
5320
5102
|
class TitleComponent extends SettingsComponent {
|
|
@@ -5476,32 +5258,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5476
5258
|
* A collection of one or more value axis configuration components.
|
|
5477
5259
|
*
|
|
5478
5260
|
* @example
|
|
5479
|
-
* ```
|
|
5480
|
-
*
|
|
5481
|
-
*
|
|
5482
|
-
*
|
|
5483
|
-
*
|
|
5484
|
-
*
|
|
5485
|
-
* <kendo-chart>
|
|
5486
|
-
* <kendo-chart-value-axis>
|
|
5487
|
-
* <kendo-chart-value-axis-item>
|
|
5488
|
-
* </kendo-chart-value-axis-item>
|
|
5489
|
-
* <kendo-chart-value-axis-item name="secondAxis">
|
|
5490
|
-
* </kendo-chart-value-axis-item>
|
|
5491
|
-
* </kendo-chart-value-axis>
|
|
5492
|
-
* <kendo-chart-series>
|
|
5493
|
-
* <kendo-chart-series-item type="line" [data]="[1, 2, 3]">
|
|
5494
|
-
* </kendo-chart-series-item>
|
|
5495
|
-
* <kendo-chart-series-item type="line" [data]="[0.1, 0.2, 0.3]"
|
|
5496
|
-
* axis="secondAxis">
|
|
5497
|
-
* </kendo-chart-series-item>
|
|
5498
|
-
* </kendo-chart-series>
|
|
5499
|
-
* </kendo-chart>
|
|
5500
|
-
* `
|
|
5501
|
-
* })
|
|
5502
|
-
* class AppComponent {
|
|
5503
|
-
* }
|
|
5504
|
-
*
|
|
5261
|
+
* ```html
|
|
5262
|
+
* <kendo-chart>
|
|
5263
|
+
* <kendo-chart-value-axis>
|
|
5264
|
+
* ....
|
|
5265
|
+
* </kendo-chart-value-axis>
|
|
5266
|
+
* </kendo-chart>
|
|
5505
5267
|
* ```
|
|
5506
5268
|
*/
|
|
5507
5269
|
class ValueAxisComponent extends CollectionComponent {
|
|
@@ -5519,7 +5281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
5519
5281
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5520
5282
|
providers: [CollectionService],
|
|
5521
5283
|
selector: 'kendo-chart-value-axis',
|
|
5522
|
-
template: ''
|
|
5284
|
+
template: '',
|
|
5523
5285
|
}]
|
|
5524
5286
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: CollectionService }]; }, propDecorators: { children: [{
|
|
5525
5287
|
type: ContentChildren,
|
|
@@ -6693,16 +6455,18 @@ class ChartBreadcrumbComponent {
|
|
|
6693
6455
|
* (homeIcon is imported from '@progress/kendo-svg-icons')
|
|
6694
6456
|
*/
|
|
6695
6457
|
this.rootItem = { icon: 'home', svgIcon: homeIcon, title: 'Home' };
|
|
6458
|
+
this.subscription = new Subscription();
|
|
6696
6459
|
}
|
|
6697
6460
|
ngOnInit() {
|
|
6698
6461
|
this.items = [this.rootItem];
|
|
6699
6462
|
if (this.chart) {
|
|
6700
|
-
this.subscription
|
|
6701
|
-
|
|
6702
|
-
});
|
|
6463
|
+
this.subscription.add(this.chart.drilldown.subscribe(this.onDrilldown.bind(this)));
|
|
6464
|
+
this.subscription.add(this.chart.drilldownLevelChange.subscribe(this.onDrilldownLevelChange.bind(this)));
|
|
6703
6465
|
}
|
|
6704
6466
|
else if (isDevMode()) {
|
|
6705
|
-
|
|
6467
|
+
throw new Error('Chart Breadcrumb: No Chart instance supplied. Please add a reference using the "chart" attribute. For example: \n' +
|
|
6468
|
+
'<kendo-chart-breadcrumb [chart]="instance" />\n' +
|
|
6469
|
+
'<kendo-chart #instance>');
|
|
6706
6470
|
}
|
|
6707
6471
|
}
|
|
6708
6472
|
ngOnChanges(changes) {
|
|
@@ -6721,8 +6485,12 @@ class ChartBreadcrumbComponent {
|
|
|
6721
6485
|
* @hidden
|
|
6722
6486
|
*/
|
|
6723
6487
|
onItemClick(target) {
|
|
6724
|
-
|
|
6725
|
-
|
|
6488
|
+
this.chart.drilldownLevel = this.items.findIndex(item => item === target);
|
|
6489
|
+
}
|
|
6490
|
+
onDrilldown(e) {
|
|
6491
|
+
this.items = [...this.items, { text: e.point.category.toString() }];
|
|
6492
|
+
}
|
|
6493
|
+
onDrilldownLevelChange(level) {
|
|
6726
6494
|
this.items = this.items.slice(0, level + 1);
|
|
6727
6495
|
}
|
|
6728
6496
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* The line style of the series.
|
|
7
7
|
*
|
|
8
8
|
* The possible values are:
|
|
9
|
-
* - `"normal"`—The
|
|
10
|
-
* - `"step"`—The line is
|
|
11
|
-
* - `"smooth"`—The line
|
|
9
|
+
* - `"normal"`—The values are connected with a straight line.
|
|
10
|
+
* - `"step"`—The values are connected with a right-angled line. Available when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"line"`.
|
|
11
|
+
* - `"smooth"`—The values are connected with a smooth line. Not supported for stacked area series with missing values.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -9,7 +9,7 @@ import { Border, Margin, Padding } from '../common/property-types';
|
|
|
9
9
|
export interface PlotArea {
|
|
10
10
|
/**
|
|
11
11
|
* The background color of the Chart plot area.
|
|
12
|
-
* Accepts a valid CSS color string, including
|
|
12
|
+
* Accepts a valid CSS color string, including HEX and RGB.
|
|
13
13
|
*/
|
|
14
14
|
background?: string;
|
|
15
15
|
/**
|
|
@@ -24,7 +24,7 @@ export interface SeriesDefaultsTooltip {
|
|
|
24
24
|
*/
|
|
25
25
|
font?: string;
|
|
26
26
|
/**
|
|
27
|
-
* The format of the labels. Uses the [`format`]({% slug api_intl_intlservice %}#toc-format) method of IntlService
|
|
27
|
+
* The format of the labels. Uses the [`format`]({% slug api_intl_intlservice %}#toc-format) method of `IntlService`.
|
|
28
28
|
*
|
|
29
29
|
* The Area, Bar, Column, Funnel, Line, and Pie are represented by `{0}` as the value placeholder.
|
|
30
30
|
*
|
|
@@ -16,7 +16,7 @@ export interface SeriesLabelsFrom {
|
|
|
16
16
|
*/
|
|
17
17
|
border?: Border;
|
|
18
18
|
/**
|
|
19
|
-
* The text color of the `from` labels. Accepts a valid CSS color string, including
|
|
19
|
+
* The text color of the `from` labels. Accepts a valid CSS color string, including HEX and RGB.
|
|
20
20
|
*/
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
@@ -43,14 +43,14 @@ export interface SeriesLabelsFrom {
|
|
|
43
43
|
/**
|
|
44
44
|
* The position of the `from` labels.
|
|
45
45
|
*
|
|
46
|
-
* `"center"`—The label is positioned at the point center.
|
|
47
|
-
* `"insideBase"`—The label is positioned inside, near the base of the bar.
|
|
48
|
-
* `"insideEnd"`—The label is positioned inside, near the end of the point.
|
|
49
|
-
* `"outsideEnd"`—The label is positioned outside, near the end of the point.
|
|
50
|
-
* `"above"`—the label is positioned at the top of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
51
|
-
* `"below"`—the label is positioned at the bottom of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
52
|
-
* `"left"`—the label is positioned to the left of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
53
|
-
* `"right"`—the label is positioned to the right of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
46
|
+
* - `"center"`—The label is positioned at the point center.
|
|
47
|
+
* - `"insideBase"`—The label is positioned inside, near the base of the bar.
|
|
48
|
+
* - `"insideEnd"`—The label is positioned inside, near the end of the point.
|
|
49
|
+
* - `"outsideEnd"`—The label is positioned outside, near the end of the point.
|
|
50
|
+
* - `"above"`—the label is positioned at the top of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
51
|
+
* - `"below"`—the label is positioned at the bottom of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
52
|
+
* - `"left"`—the label is positioned to the left of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
53
|
+
* - `"right"`—the label is positioned to the right of the marker. Applicable for `"rangeArea"` and `"verticalRangeArea"` series.
|
|
54
54
|
*/
|
|
55
55
|
position?: 'center' | 'insideBase' | 'insideEnd' | 'outsideEnd';
|
|
56
56
|
/**
|
|
@@ -16,7 +16,7 @@ export interface SeriesLabelsTo {
|
|
|
16
16
|
*/
|
|
17
17
|
border?: Border;
|
|
18
18
|
/**
|
|
19
|
-
* The text color of the `to` labels. Accepts a valid CSS color string, including
|
|
19
|
+
* The text color of the `to` labels. Accepts a valid CSS color string, including HEX and RGB.
|
|
20
20
|
*/
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
@@ -45,14 +45,14 @@ export interface SeriesLabelsTo {
|
|
|
45
45
|
*
|
|
46
46
|
* The available options are:
|
|
47
47
|
*
|
|
48
|
-
* `"center"`—The label is positioned at the point center.
|
|
49
|
-
* `"insideBase"`—The label is positioned inside, near the base of the bar.
|
|
50
|
-
* `"insideEnd"`—The label is positioned inside, near the end of the point.
|
|
51
|
-
* `"outsideEnd"`—The label is positioned outside, near the end of the point.
|
|
52
|
-
* `"above"`—The label is positioned at the top of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
53
|
-
* `"below"`—The label is positioned at the bottom of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
54
|
-
* `"left"`—The label is positioned to the left of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
55
|
-
* `"right"`—The label is positioned to the right of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
48
|
+
* - `"center"`—The label is positioned at the point center.
|
|
49
|
+
* - `"insideBase"`—The label is positioned inside, near the base of the bar.
|
|
50
|
+
* - `"insideEnd"`—The label is positioned inside, near the end of the point.
|
|
51
|
+
* - `"outsideEnd"`—The label is positioned outside, near the end of the point.
|
|
52
|
+
* - `"above"`—The label is positioned at the top of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
53
|
+
* - `"below"`—The label is positioned at the bottom of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
54
|
+
* - `"left"`—The label is positioned to the left of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
55
|
+
* - `"right"`—The label is positioned to the right of the marker. Applicable for the RangeArea and VerticalRangeArea series.
|
|
56
56
|
*/
|
|
57
57
|
position?: 'center' | 'insideBase' | 'insideEnd' | 'outsideEnd';
|
|
58
58
|
/**
|
|
@@ -340,13 +340,6 @@ export interface Series {
|
|
|
340
340
|
/**
|
|
341
341
|
* The `style` option is supported when [`series.type`]({% slug api_charts_series %}#toc-type) is set to
|
|
342
342
|
* `"line"`, `"scatterLine"`, `"radarLine"`, or `"polarLine"`.
|
|
343
|
-
*
|
|
344
|
-
* The supported values are:
|
|
345
|
-
*
|
|
346
|
-
* `"normal"` (default)—The values are connected with a straight line.
|
|
347
|
-
* `"step"`—The values are connected with a right-angled line.
|
|
348
|
-
* Only available when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"line"`.
|
|
349
|
-
* `"smooth"`—The values are connected with a smooth line. Not supported for stacked area series with missing values.
|
|
350
343
|
*/
|
|
351
344
|
style?: LineStyle;
|
|
352
345
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-charts",
|
|
3
|
-
"version": "13.2.0-develop.
|
|
3
|
+
"version": "13.2.0-develop.8",
|
|
4
4
|
"description": "Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"@angular/platform-browser": "13 - 16",
|
|
47
47
|
"@progress/kendo-drawing": "^1.17.2",
|
|
48
48
|
"@progress/kendo-licensing": "^1.0.2",
|
|
49
|
-
"@progress/kendo-angular-common": "13.2.0-develop.
|
|
50
|
-
"@progress/kendo-angular-intl": "13.2.0-develop.
|
|
51
|
-
"@progress/kendo-angular-l10n": "13.2.0-develop.
|
|
52
|
-
"@progress/kendo-angular-popup": "13.2.0-develop.
|
|
53
|
-
"@progress/kendo-angular-navigation": "13.2.0-develop.
|
|
49
|
+
"@progress/kendo-angular-common": "13.2.0-develop.8",
|
|
50
|
+
"@progress/kendo-angular-intl": "13.2.0-develop.8",
|
|
51
|
+
"@progress/kendo-angular-l10n": "13.2.0-develop.8",
|
|
52
|
+
"@progress/kendo-angular-popup": "13.2.0-develop.8",
|
|
53
|
+
"@progress/kendo-angular-navigation": "13.2.0-develop.8",
|
|
54
54
|
"hammerjs": "^2.0.0",
|
|
55
55
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"tslib": "^2.3.1",
|
|
59
|
-
"@progress/kendo-angular-schematics": "13.2.0-develop.
|
|
59
|
+
"@progress/kendo-angular-schematics": "13.2.0-develop.8",
|
|
60
60
|
"@progress/kendo-charts": "^1.29.0",
|
|
61
61
|
"@progress/kendo-svg-icons": "^1.0.0"
|
|
62
62
|
},
|