@progress/kendo-angular-charts 7.0.0 → 7.1.0
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/api-types/series-point.interface.d.ts +8 -0
- package/argument-types/axis-label-content-args.interface.d.ts +39 -0
- package/argument-types/axis-note-content-args.interface.d.ts +21 -0
- package/argument-types/axis-note-visual-args.interface.d.ts +1 -1
- package/argument-types/error-bars-value-args.interface.d.ts +29 -0
- package/argument-types/series-labels-content-args.interface.d.ts +50 -0
- package/argument-types/series-note-content-args.interface.d.ts +29 -0
- package/bundles/kendo-angular-charts.umd.js +1 -1
- package/chart/axis-defaults/labels.component.d.ts +2 -2
- package/chart/category-axis-item/labels.component.d.ts +2 -2
- package/chart/category-axis-item/notes.label.component.d.ts +2 -2
- package/chart/series-defaults/labels.component.d.ts +2 -2
- package/chart/series-defaults/labels.from.component.d.ts +2 -2
- package/chart/series-defaults/labels.to.component.d.ts +2 -2
- package/chart/series-defaults/notes.label.component.d.ts +2 -2
- package/chart/series-item/labels.component.d.ts +4 -5
- package/chart/series-item/labels.from.component.d.ts +2 -2
- package/chart/series-item/labels.to.component.d.ts +2 -2
- package/chart/series-item/notes.label.component.d.ts +2 -2
- package/chart/value-axis-item/labels.component.d.ts +2 -2
- package/chart/value-axis-item/notes.label.component.d.ts +2 -2
- package/chart/x-axis-item/labels.component.d.ts +2 -2
- package/chart/x-axis-item/notes.label.component.d.ts +2 -2
- package/chart/y-axis-item/labels.component.d.ts +2 -2
- package/chart/y-axis-item/notes.label.component.d.ts +2 -2
- package/chart-options.interface.d.ts +113 -0
- package/chart.component.d.ts +2 -85
- package/common/events.d.ts +1 -0
- package/common/property-types.d.ts +6 -0
- package/esm2015/argument-types/axis-label-content-args.interface.js +5 -0
- package/esm2015/argument-types/axis-note-content-args.interface.js +5 -0
- package/esm2015/argument-types/error-bars-value-args.interface.js +5 -0
- package/esm2015/argument-types/series-labels-content-args.interface.js +5 -0
- package/esm2015/argument-types/series-note-content-args.interface.js +5 -0
- package/esm2015/chart-options.interface.js +5 -0
- package/esm2015/common/events.js +1 -0
- package/esm2015/field-types/series-labels-alignment.js +5 -0
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/stock-chart/option-types/navigator/hint-content-args.interface.js +5 -0
- package/fesm2015/kendo-angular-charts.js +2 -2
- package/field-types/auto-base-unit-steps.interface.d.ts +1 -0
- package/field-types/border.interface.d.ts +4 -0
- package/field-types/series-labels-alignment.d.ts +21 -0
- package/main.d.ts +1 -0
- package/option-types/axis-defaults/labels.interface.d.ts +2 -10
- package/option-types/category-axis-item/labels.interface.d.ts +2 -12
- package/option-types/category-axis-item/notes.label.interface.d.ts +2 -3
- package/option-types/series-defaults/labels.from.interface.d.ts +3 -16
- package/option-types/series-defaults/labels.interface.d.ts +2 -15
- package/option-types/series-defaults/labels.to.interface.d.ts +3 -16
- package/option-types/series-defaults/notes.label.interface.d.ts +2 -3
- package/option-types/series-item/error-bars.interface.d.ts +2 -2
- package/option-types/series-item/labels.from.interface.d.ts +3 -17
- package/option-types/series-item/labels.interface.d.ts +4 -30
- package/option-types/series-item/labels.to.interface.d.ts +2 -15
- package/option-types/series-item/notes.label.interface.d.ts +2 -3
- package/option-types/value-axis-item/labels.interface.d.ts +2 -2
- package/option-types/value-axis-item/notes.label.interface.d.ts +2 -3
- package/option-types/x-axis-item/labels.interface.d.ts +2 -9
- package/option-types/x-axis-item/notes.label.interface.d.ts +2 -2
- package/option-types/y-axis-item/labels.interface.d.ts +2 -9
- package/option-types/y-axis-item/notes.label.interface.d.ts +2 -3
- package/package.json +1 -1
- package/stock-chart/navigator/hint.component.d.ts +2 -2
- package/stock-chart/option-types/navigator/hint-content-args.interface.d.ts +17 -0
- package/stock-chart/option-types/navigator/hint.interface.d.ts +2 -1
- package/stock-chart/option-types.d.ts +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
package/esm2015/common/events.js
CHANGED
|
@@ -9,6 +9,7 @@ export { DragEvent } from '../events/drag-event';
|
|
|
9
9
|
export { DragStartEvent } from '../events/drag-start-event';
|
|
10
10
|
export { LegendItemClickEvent } from '../events/legend-item-click-event';
|
|
11
11
|
export { LegendItemHoverEvent } from '../events/legend-item-hover-event';
|
|
12
|
+
export { LegendItemLeaveEvent } from '../events/legend-item-leave-event';
|
|
12
13
|
export { NoteClickEvent } from '../events/note-click-event';
|
|
13
14
|
export { NoteHoverEvent } from '../events/note-hover-event';
|
|
14
15
|
export { PaneRenderEvent } from '../events/pane-render-event';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -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:
|
|
12
|
+
publishDate: 1651230557,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -1838,7 +1838,7 @@ const packageMetadata = {
|
|
|
1838
1838
|
name: '@progress/kendo-angular-charts',
|
|
1839
1839
|
productName: 'Kendo UI for Angular',
|
|
1840
1840
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
1841
|
-
publishDate:
|
|
1841
|
+
publishDate: 1651230557,
|
|
1842
1842
|
version: '',
|
|
1843
1843
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
1844
1844
|
};
|
|
@@ -7924,5 +7924,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
7924
7924
|
* Generated bundle index. Do not edit.
|
|
7925
7925
|
*/
|
|
7926
7926
|
|
|
7927
|
-
export { AxisDefaultsComponent, AxisDefaultsCrosshairComponent, AxisDefaultsCrosshairTooltipComponent, AxisDefaultsLabelsComponent, AxisDefaultsTitleComponent, AxisLabelClickEvent, CHART_DIRECTIVES, CategoryAxisComponent, CategoryAxisCrosshairComponent, CategoryAxisCrosshairTooltipComponent, CategoryAxisItemComponent, CategoryAxisLabelsComponent, CategoryAxisNotesComponent, CategoryAxisNotesIconComponent, CategoryAxisNotesLabelComponent, CategoryAxisRangeLabelsComponent, CategoryAxisSelectComponent, CategoryAxisTitleComponent, ChartAreaComponent, ChartComponent, ChartModule, ChartsModule, CrosshairTooltipComponent, CrosshairTooltipsContainerComponent, DonutCenterTemplateDirective, DragEndEvent, DragEvent, DragStartEvent, LegendComponent, LegendInactiveItemsComponent, LegendItemClickEvent, LegendItemComponent, LegendItemHoverEvent, NavigatorCategoryAxisComponent, NavigatorCategoryAxisCrosshairComponent, NavigatorCategoryAxisCrosshairTooltipComponent, NavigatorCategoryAxisLabelsComponent, NavigatorCategoryAxisNotesComponent, NavigatorCategoryAxisNotesIconComponent, NavigatorCategoryAxisNotesLabelComponent, NavigatorCategoryAxisSelectComponent, NavigatorCategoryAxisTitleComponent, NavigatorComponent, NavigatorFilterEvent, NavigatorHintComponent, NavigatorPaneComponent, NavigatorPaneTitleComponent, NavigatorSelectComponent, NavigatorSeriesComponent, NavigatorSeriesErrorBarsComponent, NavigatorSeriesExtremesComponent, NavigatorSeriesHighlightComponent, NavigatorSeriesItemComponent, NavigatorSeriesLabelsComponent, NavigatorSeriesLabelsFromComponent, NavigatorSeriesLabelsToComponent, NavigatorSeriesMarkersComponent, NavigatorSeriesNotesComponent, NavigatorSeriesNotesIconComponent, NavigatorSeriesNotesLabelComponent, NavigatorSeriesOutliersComponent, NavigatorSeriesTooltipComponent, NoteClickEvent, NoteHoverEvent, PaneComponent, PaneDefaultsComponent, PaneDefaultsTitleComponent, PaneRenderEvent, PanesComponent, PanesTitleComponent, PlotAreaClickEvent, PlotAreaComponent, PlotAreaHoverEvent, RenderEvent, SPARKLINE_DIRECTIVES, STOCK_CHART_DIRECTIVES, SelectEndEvent, SelectEvent, SelectStartEvent, SeriesClickEvent, SeriesComponent, SeriesDefaultsComponent, SeriesDefaultsLabelsComponent, SeriesDefaultsLabelsFromComponent, SeriesDefaultsLabelsToComponent, SeriesDefaultsNotesComponent, SeriesDefaultsNotesIconComponent, SeriesDefaultsNotesLabelComponent, SeriesDefaultsTooltipComponent, SeriesErrorBarsComponent, SeriesExtremesComponent, SeriesHighlightComponent, SeriesHoverEvent, SeriesItemComponent, SeriesLabelsComponent, SeriesLabelsFromComponent, SeriesLabelsToComponent, SeriesMarkersComponent, SeriesNotesComponent, SeriesNotesIconComponent, SeriesNotesLabelComponent, SeriesOutliersComponent, SeriesTooltipComponent, SeriesTooltipTemplateDirective, SharedTooltipTemplateDirective, SparklineComponent, SparklineModule, StockChartComponent, StockChartModule, TitleComponent, TooltipComponent, TooltipPopupComponent, ValueAxisComponent, ValueAxisCrosshairComponent, ValueAxisCrosshairTooltipComponent, ValueAxisItemComponent, ValueAxisLabelsComponent, ValueAxisNotesComponent, ValueAxisNotesIconComponent, ValueAxisNotesLabelComponent, ValueAxisTitleComponent, WeekStartDay, XAxisComponent, XAxisCrosshairComponent, XAxisCrosshairTooltipComponent, XAxisItemComponent, XAxisLabelsComponent, XAxisNotesComponent, XAxisNotesIconComponent, XAxisNotesLabelComponent, XAxisTitleComponent, YAxisComponent, YAxisCrosshairComponent, YAxisCrosshairTooltipComponent, YAxisItemComponent, YAxisLabelsComponent, YAxisNotesComponent, YAxisNotesIconComponent, YAxisNotesLabelComponent, YAxisTitleComponent, ZoomEndEvent, ZoomEvent, ZoomStartEvent, ZoomableComponent };
|
|
7927
|
+
export { AxisDefaultsComponent, AxisDefaultsCrosshairComponent, AxisDefaultsCrosshairTooltipComponent, AxisDefaultsLabelsComponent, AxisDefaultsTitleComponent, AxisLabelClickEvent, CHART_DIRECTIVES, CategoryAxisComponent, CategoryAxisCrosshairComponent, CategoryAxisCrosshairTooltipComponent, CategoryAxisItemComponent, CategoryAxisLabelsComponent, CategoryAxisNotesComponent, CategoryAxisNotesIconComponent, CategoryAxisNotesLabelComponent, CategoryAxisRangeLabelsComponent, CategoryAxisSelectComponent, CategoryAxisTitleComponent, ChartAreaComponent, ChartComponent, ChartModule, ChartsModule, CrosshairTooltipComponent, CrosshairTooltipsContainerComponent, DonutCenterTemplateDirective, DragEndEvent, DragEvent, DragStartEvent, LegendComponent, LegendInactiveItemsComponent, LegendItemClickEvent, LegendItemComponent, LegendItemHoverEvent, LegendItemLeaveEvent, NavigatorCategoryAxisComponent, NavigatorCategoryAxisCrosshairComponent, NavigatorCategoryAxisCrosshairTooltipComponent, NavigatorCategoryAxisLabelsComponent, NavigatorCategoryAxisNotesComponent, NavigatorCategoryAxisNotesIconComponent, NavigatorCategoryAxisNotesLabelComponent, NavigatorCategoryAxisSelectComponent, NavigatorCategoryAxisTitleComponent, NavigatorComponent, NavigatorFilterEvent, NavigatorHintComponent, NavigatorPaneComponent, NavigatorPaneTitleComponent, NavigatorSelectComponent, NavigatorSeriesComponent, NavigatorSeriesErrorBarsComponent, NavigatorSeriesExtremesComponent, NavigatorSeriesHighlightComponent, NavigatorSeriesItemComponent, NavigatorSeriesLabelsComponent, NavigatorSeriesLabelsFromComponent, NavigatorSeriesLabelsToComponent, NavigatorSeriesMarkersComponent, NavigatorSeriesNotesComponent, NavigatorSeriesNotesIconComponent, NavigatorSeriesNotesLabelComponent, NavigatorSeriesOutliersComponent, NavigatorSeriesTooltipComponent, NoteClickEvent, NoteHoverEvent, PaneComponent, PaneDefaultsComponent, PaneDefaultsTitleComponent, PaneRenderEvent, PanesComponent, PanesTitleComponent, PlotAreaClickEvent, PlotAreaComponent, PlotAreaHoverEvent, RenderEvent, SPARKLINE_DIRECTIVES, STOCK_CHART_DIRECTIVES, SelectEndEvent, SelectEvent, SelectStartEvent, SeriesClickEvent, SeriesComponent, SeriesDefaultsComponent, SeriesDefaultsLabelsComponent, SeriesDefaultsLabelsFromComponent, SeriesDefaultsLabelsToComponent, SeriesDefaultsNotesComponent, SeriesDefaultsNotesIconComponent, SeriesDefaultsNotesLabelComponent, SeriesDefaultsTooltipComponent, SeriesErrorBarsComponent, SeriesExtremesComponent, SeriesHighlightComponent, SeriesHoverEvent, SeriesItemComponent, SeriesLabelsComponent, SeriesLabelsFromComponent, SeriesLabelsToComponent, SeriesMarkersComponent, SeriesNotesComponent, SeriesNotesIconComponent, SeriesNotesLabelComponent, SeriesOutliersComponent, SeriesTooltipComponent, SeriesTooltipTemplateDirective, SharedTooltipTemplateDirective, SparklineComponent, SparklineModule, StockChartComponent, StockChartModule, TitleComponent, TooltipComponent, TooltipPopupComponent, ValueAxisComponent, ValueAxisCrosshairComponent, ValueAxisCrosshairTooltipComponent, ValueAxisItemComponent, ValueAxisLabelsComponent, ValueAxisNotesComponent, ValueAxisNotesIconComponent, ValueAxisNotesLabelComponent, ValueAxisTitleComponent, WeekStartDay, XAxisComponent, XAxisCrosshairComponent, XAxisCrosshairTooltipComponent, XAxisItemComponent, XAxisLabelsComponent, XAxisNotesComponent, XAxisNotesIconComponent, XAxisNotesLabelComponent, XAxisTitleComponent, YAxisComponent, YAxisCrosshairComponent, YAxisCrosshairTooltipComponent, YAxisItemComponent, YAxisLabelsComponent, YAxisNotesComponent, YAxisNotesIconComponent, YAxisNotesLabelComponent, YAxisTitleComponent, ZoomEndEvent, ZoomEvent, ZoomStartEvent, ZoomableComponent };
|
|
7928
7928
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* {% embed_file stock/zoom-steps/app.component.ts preview %}
|
|
13
13
|
* {% embed_file stock/zoom-steps/app.module.ts %}
|
|
14
14
|
* {% embed_file stock/zoom-steps/stock-data.service.ts %}
|
|
15
|
+
* {% embed_file shared/stock-data.ts %}
|
|
15
16
|
* {% embed_file shared/main.ts hidden %}
|
|
16
17
|
* {% endmeta %}
|
|
17
18
|
*
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* The alignment of the label when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"donut"`, `"funnel"`, or `"pie"`.
|
|
7
|
+
*
|
|
8
|
+
* The supported values for `"donut"` and `"pie"` are:
|
|
9
|
+
*
|
|
10
|
+
* - `"circle"`—The labels are positioned in circle around the Chart.
|
|
11
|
+
* - `"column"`—The labels are positioned in columns to the left and right of the Chart.
|
|
12
|
+
*
|
|
13
|
+
* The supported values for `"funnel"` are:
|
|
14
|
+
*
|
|
15
|
+
* - `"center"`—The labels are positioned in the center over the funnel segment.
|
|
16
|
+
* - `"right"`—The labels are positioned on the right side of the Chart and, if there is enough
|
|
17
|
+
* space, do not overlap the funnel segments.
|
|
18
|
+
* - `"left"`—The labels are positioned on the left side of the Chart and, if there is enough
|
|
19
|
+
* space, do not overlap the funnel segments.
|
|
20
|
+
*/
|
|
21
|
+
export declare type SeriesLabelsAlignment = 'circle' | 'column' | 'center' | 'right' | 'left';
|
package/main.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { ChartModule } from './chart.module';
|
|
|
14
14
|
export { StockChartModule } from './stock-chart.module';
|
|
15
15
|
export { SparklineModule } from './sparkline.module';
|
|
16
16
|
export { ChartsModule } from './charts.module';
|
|
17
|
+
export { ChartOptions } from './chart-options.interface';
|
|
17
18
|
export { CrosshairTooltipComponent } from './chart/tooltip/crosshair-tooltip.component';
|
|
18
19
|
export { CrosshairTooltipsContainerComponent } from './chart/tooltip/crosshair-tooltips-container.component';
|
|
19
20
|
export { DonutCenterTemplateDirective } from './chart/donut-center-template.directive';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { AxisLabelVisualArgs, LabelRotation, Margin, Padding } from '../../common/property-types';
|
|
6
|
+
import { AxisLabelContentArgs, AxisLabelVisualArgs, LabelRotation, Margin, Padding } from '../../common/property-types';
|
|
7
7
|
/**
|
|
8
8
|
* The configuration options for the axis label
|
|
9
9
|
* ([see example]({% slug api_charts_axisdefaultscomponent %})).
|
|
@@ -12,16 +12,8 @@ export interface AxisDefaultsLabels {
|
|
|
12
12
|
/**
|
|
13
13
|
* The function which returns the label content.
|
|
14
14
|
* The text can be split into multiple lines by using the line feed characters (`"\n"`).
|
|
15
|
-
*
|
|
16
|
-
* The available fields in the function argument are:
|
|
17
|
-
*
|
|
18
|
-
* - `value`—The category value.
|
|
19
|
-
* - `dataItem`—The data item if a field is specified. If the category does not have a
|
|
20
|
-
* corresponding item in the data, an empty object is passed.
|
|
21
|
-
* - `format`—The default format of the label.
|
|
22
|
-
* - `culture`—The default culture (if set) of the label.
|
|
23
15
|
*/
|
|
24
|
-
content?: (e:
|
|
16
|
+
content?: (e: AxisLabelContentArgs) => string;
|
|
25
17
|
/**
|
|
26
18
|
* The font style of the labels.
|
|
27
19
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
6
|
+
import { AxisLabelContentArgs, AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
7
7
|
import { Margin, Padding } from '../../common/property-types';
|
|
8
8
|
/**
|
|
9
9
|
* The configuration options of the category axis labels.
|
|
@@ -24,18 +24,8 @@ export interface CategoryAxisLabels {
|
|
|
24
24
|
/**
|
|
25
25
|
* The function which returns the label content.
|
|
26
26
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
27
|
-
*
|
|
28
|
-
* The available fields in the function argument are:
|
|
29
|
-
* - `value`—The category value.
|
|
30
|
-
* - `dataItem`—The data item if a field is specified. If the category does not have a
|
|
31
|
-
* corresponding item in the data, an empty object is passed.
|
|
32
|
-
* - `format`—The default format of the label.
|
|
33
|
-
* - `culture`—The default culture (if set) of the label.
|
|
34
|
-
* - `text`—The default label text.
|
|
35
|
-
* - `index`—The index of the label.
|
|
36
|
-
* - `count`—The total number of rendered labels.
|
|
37
27
|
*/
|
|
38
|
-
content?: (e:
|
|
28
|
+
content?: (e: AxisLabelContentArgs) => string;
|
|
39
29
|
/**
|
|
40
30
|
* The culture to use when formatting date values.
|
|
41
31
|
* The specified culture must be loaded as demonstrated in the [Internationalization Overview]({% slug overview_intl %}).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { AxisNoteContentArgs, Border, NoteLabelPosition } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the category axis notes label.
|
|
8
8
|
*/
|
|
@@ -21,10 +21,9 @@ export interface CategoryAxisNotesLabel {
|
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the label content.
|
|
24
|
-
* The function argument contains a `value` field and defines the category value.
|
|
25
24
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
26
25
|
*/
|
|
27
|
-
content?: (e:
|
|
26
|
+
content?: (e: AxisNoteContentArgs) => string;
|
|
28
27
|
/**
|
|
29
28
|
* The font style of the label.
|
|
30
29
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, Margin, Padding } from '../../common/property-types';
|
|
5
|
+
import { Border, Margin, Padding, SeriesLabelsContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the Chart series `from` labels.
|
|
8
8
|
*/
|
|
@@ -22,21 +22,8 @@ export interface SeriesDefaultsLabelsFrom {
|
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the `from` label content of the Chart series.
|
|
24
24
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Funnel, Line, and Pie
|
|
29
|
-
* series.
|
|
30
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
31
|
-
* - `percentage`—The point value represented as a percentage value. Available for the Donut, Funnel, and
|
|
32
|
-
* Pie series.
|
|
33
|
-
* - `series`—The data series.
|
|
34
|
-
* - `value`—The point value. Can be a number or object which contain each bound field.
|
|
35
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
36
|
-
* the Waterfall series.
|
|
37
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
38
|
-
*/
|
|
39
|
-
content?: (e: any) => string;
|
|
25
|
+
*/
|
|
26
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
40
27
|
/**
|
|
41
28
|
* The font style of the from labels.
|
|
42
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { Border, Margin, Padding, SeriesLabelsVisualArgs } from '../../common/property-types';
|
|
6
|
+
import { Border, Margin, Padding, SeriesLabelsContentArgs, SeriesLabelsVisualArgs } from '../../common/property-types';
|
|
7
7
|
import { SeriesDefaultsLabelsFrom } from './labels.from.interface';
|
|
8
8
|
import { SeriesDefaultsLabelsTo } from './labels.to.interface';
|
|
9
9
|
/**
|
|
@@ -25,21 +25,8 @@ export interface SeriesDefaultsLabels {
|
|
|
25
25
|
/**
|
|
26
26
|
* The function which returns the Chart series labels content.
|
|
27
27
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
28
|
-
*
|
|
29
|
-
* The available fields in the function argument are:
|
|
30
|
-
*
|
|
31
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Funnel, Line, and Pie
|
|
32
|
-
* series.
|
|
33
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
34
|
-
* - `percentage`—The point value represented as a percentage value. Available for the Donut, Funnel, and
|
|
35
|
-
* Pie series.
|
|
36
|
-
* - `series`—The data series.
|
|
37
|
-
* - `value`—The point value. Can be a number or object containing each bound field.
|
|
38
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
39
|
-
* the Waterfall series.
|
|
40
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
41
28
|
*/
|
|
42
|
-
content?: (e:
|
|
29
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
43
30
|
/**
|
|
44
31
|
* The font style of the labels.
|
|
45
32
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, Margin, Padding } from '../../common/property-types';
|
|
5
|
+
import { Border, Margin, Padding, SeriesLabelsContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the Chart series `to` labels.
|
|
8
8
|
*/
|
|
@@ -22,21 +22,8 @@ export interface SeriesDefaultsLabelsTo {
|
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the `from` label content of the Chart series.
|
|
24
24
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Funnel, Line, and Pie
|
|
29
|
-
* series.
|
|
30
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
31
|
-
* - `percentage`—The point value represented as a percentage value. Available for the Donut, Funnel, and
|
|
32
|
-
* Pie series.
|
|
33
|
-
* - `series`—The data series.
|
|
34
|
-
* - `value`—The point value. Can be a number or object containing each bound field.
|
|
35
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
36
|
-
* the Waterfall series.
|
|
37
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
38
|
-
*/
|
|
39
|
-
content?: (e: any) => string;
|
|
25
|
+
*/
|
|
26
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
40
27
|
/**
|
|
41
28
|
* The font style of the `to` labels.
|
|
42
29
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { Border, NoteLabelPosition, SeriesNoteContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the series notes label.
|
|
8
8
|
*/
|
|
@@ -21,10 +21,9 @@ export interface SeriesDefaultsNotesLabel {
|
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the label content.
|
|
24
|
-
* The function argument contains a `value` field which defines the point value.
|
|
25
24
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
26
25
|
*/
|
|
27
|
-
content?: (e:
|
|
26
|
+
content?: (e: SeriesNoteContentArgs) => string;
|
|
28
27
|
/**
|
|
29
28
|
* The font style of the label.
|
|
30
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { ErrorBarLine, ErrorBarsVisualArgs } from '../../common/property-types';
|
|
6
|
+
import { ErrorBarLine, ErrorBarsValueArgs, ErrorBarsVisualArgs } from '../../common/property-types';
|
|
7
7
|
/**
|
|
8
8
|
* The configuration options of the series error bars.
|
|
9
9
|
*/
|
|
@@ -36,7 +36,7 @@ export interface SeriesErrorBars {
|
|
|
36
36
|
* - An array that holds the low and high difference from the point value.
|
|
37
37
|
* - A function that returns the `errorBars` point value.
|
|
38
38
|
*/
|
|
39
|
-
value?: string;
|
|
39
|
+
value?: string | number | [number, number] | ((e: ErrorBarsValueArgs) => [number, number]);
|
|
40
40
|
/**
|
|
41
41
|
* A function that for creating custom visuals for the error bars.
|
|
42
42
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, Margin, Padding } from '../../common/property-types';
|
|
5
|
+
import { Border, Margin, Padding, SeriesLabelsContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the series `from` labels.
|
|
8
8
|
*/
|
|
@@ -20,24 +20,10 @@ export interface SeriesLabelsFrom {
|
|
|
20
20
|
*/
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
|
-
* The function which returns the Chart series `from` label content.
|
|
24
|
-
*
|
|
25
|
-
* The fields available in the function argument are:
|
|
26
|
-
*
|
|
27
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Line, Pie, and
|
|
28
|
-
* Waterfall series.
|
|
29
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
30
|
-
* - `percentage`—The point value represented as a percentage value. Available only for the Donut, Pie, and
|
|
31
|
-
* 100% stacked charts.
|
|
32
|
-
* - `series`—The data series.
|
|
33
|
-
* - `value`—The point value. Can be a number or object containing each bound field.
|
|
34
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
35
|
-
* the Waterfall series.
|
|
36
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
37
|
-
*
|
|
23
|
+
* The function which returns the Chart series `from` label content. *
|
|
38
24
|
* The text can be split into multiple lines by using the line feed characters (`"\n"`).
|
|
39
25
|
*/
|
|
40
|
-
content?: (e:
|
|
26
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
41
27
|
/**
|
|
42
28
|
* The font style of the `from` labels.
|
|
43
29
|
*/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
+
import { SeriesLabelsAlignment, SeriesLabelsContentArgs } from '../../common/property-types';
|
|
6
7
|
import { Border, Margin, Padding, SeriesLabelsVisualArgs } from '../../common/property-types';
|
|
7
8
|
import { SeriesLabelsPosition } from '../../common/property-types';
|
|
8
9
|
import { SeriesLabelsFrom } from './labels.from.interface';
|
|
@@ -13,21 +14,8 @@ import { SeriesLabelsTo } from './labels.to.interface';
|
|
|
13
14
|
export interface SeriesLabels {
|
|
14
15
|
/**
|
|
15
16
|
* The alignment of the label when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"donut"`, `"funnel"`, or `"pie"`.
|
|
16
|
-
*
|
|
17
|
-
* The supported values for `"donut"` and `"pie"` are:
|
|
18
|
-
*
|
|
19
|
-
* - `"circle"`—The labels are positioned in circle around the Chart.
|
|
20
|
-
* - `"column"`—The labels are positioned in columns to the left and right of the Chart.
|
|
21
|
-
*
|
|
22
|
-
* The supported values for `"funnel"` are:
|
|
23
|
-
*
|
|
24
|
-
* - `"center"`—The labels are positioned in the center over the funnel segment.
|
|
25
|
-
* - `"right"`—The labels are positioned on the right side of the Chart and, if there is enough
|
|
26
|
-
* space, do not overlap the funnel segments.
|
|
27
|
-
* - `"left"`—The labels are positioned on the left side of the Chart and, if there is enough
|
|
28
|
-
* space, do not overlap the funnel segments.
|
|
29
17
|
*/
|
|
30
|
-
align?:
|
|
18
|
+
align?: SeriesLabelsAlignment;
|
|
31
19
|
/**
|
|
32
20
|
* The background color of the labels. Accepts a valid CSS color string, including hex and rgb.
|
|
33
21
|
*/
|
|
@@ -43,22 +31,8 @@ export interface SeriesLabels {
|
|
|
43
31
|
/**
|
|
44
32
|
* The function which returns the Chart series label content.
|
|
45
33
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Line, Pie, and
|
|
50
|
-
* Waterfall series.
|
|
51
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
52
|
-
* - `percentage`—The point value represented as a percentage value. Available only for the Donut, Pie, and
|
|
53
|
-
* 100% stacked charts.
|
|
54
|
-
* - `series`—The data series.
|
|
55
|
-
* - `stackValue`—The cumulative point value on the stack. Available only for the stackable series.
|
|
56
|
-
* - `value`—The point value. Can be a number or object containing each bound field.
|
|
57
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
58
|
-
* the Waterfall series.
|
|
59
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
60
|
-
*/
|
|
61
|
-
content?: (e: any) => string;
|
|
34
|
+
*/
|
|
35
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
62
36
|
/**
|
|
63
37
|
* The distance between the labels when [`series.type`]({% slug api_charts_series %}#toc-type) is set to `"donut"` or `"pie"`.
|
|
64
38
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, Margin, Padding } from '../../common/property-types';
|
|
5
|
+
import { Border, Margin, Padding, SeriesLabelsContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the series `to` labels.
|
|
8
8
|
*/
|
|
@@ -22,21 +22,8 @@ export interface SeriesLabelsTo {
|
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the Chart series `to` label content.
|
|
24
24
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
25
|
-
*
|
|
26
|
-
* The fields available in the function argument are:
|
|
27
|
-
*
|
|
28
|
-
* - `category`—The category name. Available for the Area, Bar, Column, Bubble, Donut, Line, Pie, and
|
|
29
|
-
* Waterfall series.
|
|
30
|
-
* - `dataItem`—The original data item used to construct the point. If binding to an array, it will be `null`.
|
|
31
|
-
* - `percentage`—The point value represented as a percentage value. Available only for the Donut, Pie, and
|
|
32
|
-
* 100% stacked charts.
|
|
33
|
-
* - `series`—The data series.
|
|
34
|
-
* - `value`—The point value. Can be a number or object containing each bound field.
|
|
35
|
-
* - `runningTotal`—The sum of point values since the last `"runningTotal"` summary point. Available for
|
|
36
|
-
* the Waterfall series.
|
|
37
|
-
* - `total`—The sum of all previous series values. Available for the Waterfall series.
|
|
38
25
|
*/
|
|
39
|
-
content?: (e:
|
|
26
|
+
content?: (e: SeriesLabelsContentArgs) => string;
|
|
40
27
|
/**
|
|
41
28
|
* The font style of the `to` labels.
|
|
42
29
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { Border, NoteLabelPosition, SeriesNoteContentArgs } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the series notes label.
|
|
8
8
|
*/
|
|
@@ -21,10 +21,9 @@ export interface SeriesNotesLabel {
|
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the label content.
|
|
24
|
-
* The function argument contains a `value` field which defines the point value.
|
|
25
24
|
* You can split the text into multiple lines by using line feed characters (`"\n"`).
|
|
26
25
|
*/
|
|
27
|
-
content?: (e:
|
|
26
|
+
content?: (e: SeriesNoteContentArgs) => string;
|
|
28
27
|
/**
|
|
29
28
|
* The font style of the label.
|
|
30
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { AxisLabelsPosition, AxisLabelVisualArgs, Border, LabelRotation, Margin } from '../../common/property-types';
|
|
6
|
+
import { AxisLabelContentArgs, AxisLabelsPosition, AxisLabelVisualArgs, Border, LabelRotation, Margin } from '../../common/property-types';
|
|
7
7
|
import { Padding } from '../../common/property-types';
|
|
8
8
|
/**
|
|
9
9
|
* The configuration options of the value axis labels.
|
|
@@ -33,7 +33,7 @@ export interface ValueAxisLabels {
|
|
|
33
33
|
* - `index`—The index of the label.
|
|
34
34
|
* - `count`—The total number of rendered labels.
|
|
35
35
|
*/
|
|
36
|
-
content?: (e:
|
|
36
|
+
content?: (e: AxisLabelContentArgs) => string;
|
|
37
37
|
/**
|
|
38
38
|
* The font style of the labels.
|
|
39
39
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { AxisNoteContentArgs, Border, NoteLabelPosition } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the value axis notes label.
|
|
8
8
|
*/
|
|
@@ -21,10 +21,9 @@ export interface ValueAxisNotesLabel {
|
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the label content.
|
|
24
|
-
* The function argument contains a `value` field. It defines the axis value.
|
|
25
24
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
26
25
|
*/
|
|
27
|
-
content?: (e:
|
|
26
|
+
content?: (e: AxisNoteContentArgs) => string;
|
|
28
27
|
/**
|
|
29
28
|
* The font style of the label.
|
|
30
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
6
|
+
import { AxisLabelContentArgs, AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
7
7
|
import { Margin, Padding } from '../../common/property-types';
|
|
8
8
|
/**
|
|
9
9
|
* The configuration of the X-axis labels.
|
|
@@ -24,15 +24,8 @@ export interface XAxisLabels {
|
|
|
24
24
|
/**
|
|
25
25
|
* The function which returns the label content.
|
|
26
26
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
27
|
-
*
|
|
28
|
-
* The available fields in the function argument are:
|
|
29
|
-
* - `value`—The category value.
|
|
30
|
-
* - `format`—The default format of the label.
|
|
31
|
-
* - `text`—The default label text.
|
|
32
|
-
* - `index`—The index of the label.
|
|
33
|
-
* - `count`—The total number of rendered labels.
|
|
34
27
|
*/
|
|
35
|
-
content?: (e:
|
|
28
|
+
content?: (e: AxisLabelContentArgs) => string;
|
|
36
29
|
/**
|
|
37
30
|
* The culture to use when formatting date values.
|
|
38
31
|
* The specified culture must be loaded as demonstrated in the [Internationalization Overview]({% slug overview_intl %}).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { AxisNoteContentArgs, Border, NoteLabelPosition } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the X-axis notes label.
|
|
8
8
|
*/
|
|
@@ -24,7 +24,7 @@ export interface XAxisNotesLabel {
|
|
|
24
24
|
* The function argument contains a `value` field. It defines the axis value.
|
|
25
25
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
26
26
|
*/
|
|
27
|
-
content?: (e:
|
|
27
|
+
content?: (e: AxisNoteContentArgs) => string;
|
|
28
28
|
/**
|
|
29
29
|
* The font style of the label.
|
|
30
30
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { drawing } from '@progress/kendo-drawing';
|
|
6
|
-
import { AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
6
|
+
import { AxisLabelContentArgs, AxisLabelsPosition, AxisLabelVisualArgs, Border, DateFormats, LabelRotation } from '../../common/property-types';
|
|
7
7
|
import { Margin, Padding } from '../../common/property-types';
|
|
8
8
|
/**
|
|
9
9
|
* The yAxis.labels options.
|
|
@@ -24,15 +24,8 @@ export interface YAxisLabels {
|
|
|
24
24
|
/**
|
|
25
25
|
* The function which returns the label content.
|
|
26
26
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
27
|
-
*
|
|
28
|
-
* The available fields in the function argument are:
|
|
29
|
-
* - `value`—The category value.
|
|
30
|
-
* - `format`—The default format of the label.
|
|
31
|
-
* - `text`—The default label text.
|
|
32
|
-
* - `index`—The index of the label.
|
|
33
|
-
* - `count`—The total number of rendered labels.
|
|
34
27
|
*/
|
|
35
|
-
content?: (e:
|
|
28
|
+
content?: (e: AxisLabelContentArgs) => string;
|
|
36
29
|
/**
|
|
37
30
|
* The culture to use when formatting date values.
|
|
38
31
|
* The specified culture must be loaded as demonstrated in the [Internationalization Overview]({% slug overview_intl %}).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Border, NoteLabelPosition } from '../../common/property-types';
|
|
5
|
+
import { AxisNoteContentArgs, Border, NoteLabelPosition } from '../../common/property-types';
|
|
6
6
|
/**
|
|
7
7
|
* The configuration options of the Y-axis notes label.
|
|
8
8
|
*/
|
|
@@ -21,10 +21,9 @@ export interface YAxisNotesLabel {
|
|
|
21
21
|
color?: string;
|
|
22
22
|
/**
|
|
23
23
|
* The function which returns the label content.
|
|
24
|
-
* The function argument contains a `value` field. It defines the axis value.
|
|
25
24
|
* You can split the text into multiple lines by using the line feed characters (`"\n"`).
|
|
26
25
|
*/
|
|
27
|
-
content?: (e:
|
|
26
|
+
content?: (e: AxisNoteContentArgs) => string;
|
|
28
27
|
/**
|
|
29
28
|
* The font style of the label.
|
|
30
29
|
*/
|