@oliasoft-open-source/charts-library 5.13.0 → 5.14.0-beta-1
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/dist/index.d.ts +15 -1217
- package/dist/index.js +453 -68
- package/dist/src/components/bar-chart/bar-chart-const.d.ts +2 -0
- package/dist/src/components/bar-chart/bar-chart-default-props.d.ts +3 -0
- package/dist/src/components/bar-chart/bar-chart.d.ts +3 -0
- package/dist/src/components/bar-chart/bar-chart.interface.d.ts +141 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-data-labels.d.ts +10 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-scales.d.ts +3 -0
- package/dist/src/components/bar-chart/utils/get-bar-chart-tooltips.d.ts +6 -0
- package/dist/src/components/bar-chart/utils/use-bar-chart-config.d.ts +13 -0
- package/dist/src/components/bar-chart/utils/use-bar-chart-options.d.ts +55 -0
- package/dist/src/components/common/common.interface.d.ts +275 -0
- package/dist/src/components/common/controls-portal.d.ts +7 -0
- package/dist/src/components/common/enums.d.ts +87 -0
- package/dist/src/components/common/helpers/add-transparency/add-transparency.d.ts +1 -0
- package/dist/src/components/common/helpers/callout-helpers/callout-helpers.d.ts +25 -0
- package/dist/src/components/common/helpers/chart-border-plugin.d.ts +16 -0
- package/dist/src/components/common/helpers/chart-consts.d.ts +39 -0
- package/dist/src/components/common/helpers/chart-utils.d.ts +86 -0
- package/dist/src/components/common/helpers/container.d.ts +18 -0
- package/dist/src/components/common/helpers/custom-format-number.d.ts +1 -0
- package/dist/src/components/common/helpers/download-pgn.d.ts +3 -0
- package/dist/src/components/common/helpers/get-chart-annotation.d.ts +139 -0
- package/dist/src/components/common/helpers/get-chart-from-ctx.d.ts +1 -0
- package/dist/src/components/common/helpers/get-custom-legend-plugin-example.d.ts +8 -0
- package/dist/src/components/common/helpers/get-draggableData.d.ts +18 -0
- package/dist/src/components/common/helpers/get-grouped-color-scheme/get-grouped-color-scheme.d.ts +1 -0
- package/dist/src/components/common/helpers/input-normalizers.d.ts +15 -0
- package/dist/src/components/common/helpers/range/estimate-data-series-have-close-values.d.ts +8 -0
- package/dist/src/components/common/helpers/range/range.d.ts +33 -0
- package/dist/src/components/common/helpers/text.d.ts +1 -0
- package/dist/src/components/common/helpers/to-annotation.d.ts +4 -0
- package/dist/src/components/common/hooks/use-generated-labels.d.ts +4 -0
- package/dist/src/components/common/hooks/use-legend-state.d.ts +28 -0
- package/dist/src/components/common/hooks/use-legend.d.ts +4 -0
- package/dist/src/components/common/hooks/use-update-annotations.d.ts +4 -0
- package/dist/src/components/common/legend-component/legend-dropzone.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend-interface.d.ts +47 -0
- package/dist/src/components/common/legend-component/legend-item/LegendItemLine.d.ts +5 -0
- package/dist/src/components/common/legend-component/legend-item/legend-item.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend-panel.d.ts +3 -0
- package/dist/src/components/common/legend-component/legend.d.ts +3 -0
- package/dist/src/components/common/legend-component/state/legend-action-types.d.ts +3 -0
- package/dist/src/components/common/legend-component/state/legend-context.d.ts +14 -0
- package/dist/src/components/common/legend-component/state/legend-state-reducer.d.ts +30 -0
- package/dist/src/components/common/legend-component/utils/create-style-object.d.ts +27 -0
- package/dist/src/components/common/legend-component/utils/get-generated-labels.d.ts +2 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-dragger-plugin.d.ts +15 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/annotation-position-storage.d.ts +7 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/enums.d.ts +21 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/event-helpers.d.ts +6 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/helpers.d.ts +53 -0
- package/dist/src/components/common/plugins/annotation-dragger-plugin/point-annotation-label.d.ts +5 -0
- package/dist/src/components/common/plugins/ellipsis-annotation-plugin/compute-ellipse-geometry.d.ts +9 -0
- package/dist/src/components/common/plugins/ellipsis-annotation-plugin/ellipsis-annotation-plugin.d.ts +18 -0
- package/dist/src/components/common/plugins/gradient-background-plugin/enums.d.ts +10 -0
- package/dist/src/components/common/plugins/gradient-background-plugin/gradient-background-plugin.d.ts +2 -0
- package/dist/src/components/line-chart/constants/default-translations.d.ts +25 -0
- package/dist/src/components/line-chart/constants/line-chart-consts.d.ts +13 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options-interfaces.d.ts +57 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-options.d.ts +6 -0
- package/dist/src/components/line-chart/controls/axes-options/axes-validation.d.ts +8 -0
- package/dist/src/components/line-chart/controls/controls-interfaces.d.ts +19 -0
- package/dist/src/components/line-chart/controls/controls.d.ts +3 -0
- package/dist/src/components/line-chart/controls/drag-options-interfaces.d.ts +14 -0
- package/dist/src/components/line-chart/controls/drag-options.d.ts +23 -0
- package/dist/src/components/line-chart/controls/line-options.d.ts +19 -0
- package/dist/src/components/line-chart/hooks/use-chart-functions.d.ts +32 -0
- package/dist/src/components/line-chart/hooks/use-chart-options.d.ts +19 -0
- package/dist/src/components/line-chart/hooks/use-chart-plugins.d.ts +7 -0
- package/dist/src/components/line-chart/hooks/use-chart-state.d.ts +12 -0
- package/dist/src/components/line-chart/hooks/use-toggle-handler.d.ts +12 -0
- package/dist/src/components/line-chart/initialize/config.d.ts +12 -0
- package/dist/src/components/line-chart/initialize/initialize-line-chart.d.ts +12 -0
- package/dist/src/components/line-chart/line-chart-get-default-props.d.ts +3 -0
- package/dist/src/components/line-chart/line-chart.d.ts +3 -0
- package/dist/src/components/line-chart/line-chart.interface.d.ts +236 -0
- package/dist/src/components/line-chart/plugins/callout-plugin/callout-plugin.d.ts +11 -0
- package/dist/src/components/line-chart/plugins/callout-plugin/helpers.d.ts +42 -0
- package/dist/src/components/line-chart/plugins/chart-area-text-plugin.d.ts +17 -0
- package/dist/src/components/line-chart/plugins/line-chart.minor-gridlines-plugin.d.ts +8 -0
- package/dist/src/components/line-chart/plugins/line-markers-plugin/draw.d.ts +39 -0
- package/dist/src/components/line-chart/plugins/line-markers-plugin/line-markers-plugin.d.ts +10 -0
- package/dist/src/components/line-chart/plugins/line-markers-plugin/types.d.ts +109 -0
- package/dist/src/components/line-chart/plugins/line-markers-plugin/utils.d.ts +40 -0
- package/dist/src/components/line-chart/plugins/plugin-constants.d.ts +11 -0
- package/dist/src/components/line-chart/plugins/plugins.interface.d.ts +9 -0
- package/dist/src/components/line-chart/state/action-types.d.ts +12 -0
- package/dist/src/components/line-chart/state/helpers.d.ts +13 -0
- package/dist/src/components/line-chart/state/initial-state.d.ts +11 -0
- package/dist/src/components/line-chart/state/line-chart-reducer.d.ts +2 -0
- package/dist/src/components/line-chart/state/manage-state-in-local-storage.d.ts +15 -0
- package/dist/src/components/line-chart/state/state.interfaces.d.ts +26 -0
- package/dist/src/components/line-chart/utils/axis-formatting/axis-formatting.d.ts +2 -0
- package/dist/src/components/line-chart/utils/axis-scales/axis-scales.d.ts +18 -0
- package/dist/src/components/line-chart/utils/check-custom-option/check-custom-option.d.ts +12 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/datalabels-alignment.interface.d.ts +20 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-condition.d.ts +8 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-alignment-data.d.ts +11 -0
- package/dist/src/components/line-chart/utils/datalabels-alignment/get-datalabels-position.d.ts +6 -0
- package/dist/src/components/line-chart/utils/enums.d.ts +4 -0
- package/dist/src/components/line-chart/utils/generate-line-chart-datasets.d.ts +8 -0
- package/dist/src/components/line-chart/utils/get-annotations-data.d.ts +1 -0
- package/dist/src/components/line-chart/utils/get-axes-data-from-metasets.d.ts +1 -0
- package/dist/src/components/line-chart/utils/get-axes-ranges-from-chart.d.ts +9 -0
- package/dist/src/components/line-chart/utils/get-axis-range-by-type.d.ts +10 -0
- package/dist/src/components/line-chart/utils/get-generated-labels.d.ts +2 -0
- package/dist/src/components/line-chart/utils/get-line-chart-data-labels.d.ts +16 -0
- package/dist/src/components/line-chart/utils/get-line-chart-scales.d.ts +589 -0
- package/dist/src/components/line-chart/utils/get-line-chart-tooltips.d.ts +30 -0
- package/dist/src/components/line-chart/utils/line-chart-utils.d.ts +24 -0
- package/dist/src/components/line-chart/utils/translations/get-translations.d.ts +8 -0
- package/dist/src/components/pie-chart/pie-chart-defalut-props.interface.d.ts +50 -0
- package/dist/src/components/pie-chart/pie-chart-get-default-props.d.ts +3 -0
- package/dist/src/components/pie-chart/pie-chart.d.ts +3 -0
- package/dist/src/components/pie-chart/pie-chart.interface.d.ts +58 -0
- package/dist/src/components/pie-chart/use-pie-chart-config.d.ts +42 -0
- package/dist/src/components/scatter-chart/hooks/use-scatter-chart-config.d.ts +239 -0
- package/dist/src/components/scatter-chart/scatter-chart-default-props.interface.d.ts +72 -0
- package/dist/src/components/scatter-chart/scatter-chart-get-default-props.d.ts +4 -0
- package/dist/src/components/scatter-chart/scatter-chart.d.ts +3 -0
- package/dist/src/components/scatter-chart/scatter-chart.interface.d.ts +111 -0
- package/dist/src/components/scatter-chart/utils/get-scales-config.d.ts +176 -0
- package/dist/src/components/scatter-chart/utils/get-tooltip-config.d.ts +21 -0
- package/package.json +11 -12
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
import { Tick } from 'chart.js';
|
|
2
|
+
import { IState } from '../state/state.interfaces';
|
|
3
|
+
import { ILineChartOptions } from '../line-chart.interface';
|
|
4
|
+
import { UnusedParameter } from '../../common/common.interface';
|
|
5
|
+
declare const getLineChartScales: (options: ILineChartOptions, state: IState) => {
|
|
6
|
+
id?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
position?: import('../../common/common.interface').TAxisPosition | undefined;
|
|
9
|
+
color?: string | string[];
|
|
10
|
+
unit?: import('../line-chart.interface').IUnitOptions | string;
|
|
11
|
+
stepSize?: number;
|
|
12
|
+
gridLines?: import('../line-chart.interface').ILineChartGraph;
|
|
13
|
+
min?: number | string;
|
|
14
|
+
max?: number | string;
|
|
15
|
+
} | {
|
|
16
|
+
y: {
|
|
17
|
+
display: boolean;
|
|
18
|
+
type: "linear" | "logarithmic" | undefined;
|
|
19
|
+
position: import('../../common/common.interface').TAxisPosition | undefined;
|
|
20
|
+
beginAtZero: boolean | undefined;
|
|
21
|
+
reverse: boolean | undefined;
|
|
22
|
+
suggestedMax: number | undefined;
|
|
23
|
+
suggestedMin: number | undefined;
|
|
24
|
+
min: string | number | undefined;
|
|
25
|
+
max: string | number | undefined;
|
|
26
|
+
title: {
|
|
27
|
+
font: {
|
|
28
|
+
size: number;
|
|
29
|
+
} | {
|
|
30
|
+
family?: string | undefined;
|
|
31
|
+
size: number;
|
|
32
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
33
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
34
|
+
lineHeight?: string | number | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
size: number;
|
|
37
|
+
} | {
|
|
38
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
39
|
+
size: number | ((ctx: import('chart.js').ScriptableCartesianScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
40
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
41
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
42
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
43
|
+
};
|
|
44
|
+
display: number | boolean | undefined;
|
|
45
|
+
align?: import('chart.js').Align | undefined;
|
|
46
|
+
text: string | string[] | undefined;
|
|
47
|
+
color?: import('chart.js').Color | undefined;
|
|
48
|
+
padding: number | {
|
|
49
|
+
top: number;
|
|
50
|
+
bottom: number;
|
|
51
|
+
y: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
ticks: {
|
|
55
|
+
font: {
|
|
56
|
+
size: number;
|
|
57
|
+
} | {
|
|
58
|
+
family?: string | undefined;
|
|
59
|
+
size: number;
|
|
60
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
61
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
62
|
+
lineHeight?: string | number | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
size: number;
|
|
65
|
+
} | {
|
|
66
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
67
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
68
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
69
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
70
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
71
|
+
};
|
|
72
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
73
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
74
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
75
|
+
display?: boolean | undefined;
|
|
76
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
77
|
+
padding?: number | undefined;
|
|
78
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
79
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
80
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
81
|
+
z?: number | undefined;
|
|
82
|
+
major?: {
|
|
83
|
+
enabled: boolean;
|
|
84
|
+
} | undefined;
|
|
85
|
+
sampleSize?: number | undefined;
|
|
86
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
87
|
+
autoSkip?: boolean | undefined;
|
|
88
|
+
autoSkipPadding?: number | undefined;
|
|
89
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
90
|
+
includeBounds: boolean;
|
|
91
|
+
labelOffset?: number | undefined;
|
|
92
|
+
minRotation?: number | undefined;
|
|
93
|
+
maxRotation?: number | undefined;
|
|
94
|
+
mirror?: boolean | undefined;
|
|
95
|
+
maxTicksLimit?: number | undefined;
|
|
96
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
97
|
+
precision?: number | undefined;
|
|
98
|
+
stepSize: number | null | undefined;
|
|
99
|
+
count?: number | undefined;
|
|
100
|
+
} | {
|
|
101
|
+
font: {
|
|
102
|
+
size: number;
|
|
103
|
+
} | {
|
|
104
|
+
family?: string | undefined;
|
|
105
|
+
size: number;
|
|
106
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
107
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
108
|
+
lineHeight?: string | number | undefined;
|
|
109
|
+
} | {
|
|
110
|
+
size: number;
|
|
111
|
+
} | {
|
|
112
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
113
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
114
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
115
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
116
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
117
|
+
};
|
|
118
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
119
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
120
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
121
|
+
display?: boolean | undefined;
|
|
122
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
123
|
+
padding?: number | undefined;
|
|
124
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
125
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
126
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
127
|
+
z?: number | undefined;
|
|
128
|
+
major?: {
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
} | undefined;
|
|
131
|
+
sampleSize?: number | undefined;
|
|
132
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
133
|
+
autoSkip?: boolean | undefined;
|
|
134
|
+
autoSkipPadding?: number | undefined;
|
|
135
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
136
|
+
includeBounds: boolean;
|
|
137
|
+
labelOffset?: number | undefined;
|
|
138
|
+
minRotation?: number | undefined;
|
|
139
|
+
maxRotation?: number | undefined;
|
|
140
|
+
mirror?: boolean | undefined;
|
|
141
|
+
maxTicksLimit?: number | undefined;
|
|
142
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
143
|
+
precision?: number | undefined;
|
|
144
|
+
stepSize?: number | undefined;
|
|
145
|
+
count?: number | undefined;
|
|
146
|
+
};
|
|
147
|
+
grid: {
|
|
148
|
+
lineTension?: number;
|
|
149
|
+
spanGaps?: boolean;
|
|
150
|
+
showDataLabels?: boolean;
|
|
151
|
+
showMinorGridlines?: boolean;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
id?: string;
|
|
155
|
+
label?: string;
|
|
156
|
+
position?: import('../../common/common.interface').TAxisPosition | undefined;
|
|
157
|
+
color?: string | string[];
|
|
158
|
+
unit?: import('../line-chart.interface').IUnitOptions | string;
|
|
159
|
+
stepSize?: number;
|
|
160
|
+
gridLines?: import('../line-chart.interface').ILineChartGraph;
|
|
161
|
+
min?: number | string;
|
|
162
|
+
max?: number | string;
|
|
163
|
+
} | {
|
|
164
|
+
id?: string;
|
|
165
|
+
label?: string;
|
|
166
|
+
position?: import('../../common/common.interface').TAxisPosition | undefined;
|
|
167
|
+
color?: string | string[];
|
|
168
|
+
unit?: import('../line-chart.interface').IUnitOptions | string;
|
|
169
|
+
stepSize?: number;
|
|
170
|
+
gridLines?: import('../line-chart.interface').ILineChartGraph;
|
|
171
|
+
min?: number | string;
|
|
172
|
+
max?: number | string;
|
|
173
|
+
x: {
|
|
174
|
+
display: boolean;
|
|
175
|
+
type: "linear" | "logarithmic" | undefined;
|
|
176
|
+
position: import('../../common/common.interface').TAxisPosition | undefined;
|
|
177
|
+
beginAtZero: boolean | undefined;
|
|
178
|
+
reverse: boolean | undefined;
|
|
179
|
+
suggestedMax: number | undefined;
|
|
180
|
+
suggestedMin: number | undefined;
|
|
181
|
+
min: string | number | undefined;
|
|
182
|
+
max: string | number | undefined;
|
|
183
|
+
title: {
|
|
184
|
+
font: {
|
|
185
|
+
size: number;
|
|
186
|
+
} | {
|
|
187
|
+
family?: string | undefined;
|
|
188
|
+
size: number;
|
|
189
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
190
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
191
|
+
lineHeight?: string | number | undefined;
|
|
192
|
+
} | {
|
|
193
|
+
size: number;
|
|
194
|
+
} | {
|
|
195
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
196
|
+
size: number | ((ctx: import('chart.js').ScriptableCartesianScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
197
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
198
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
199
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
200
|
+
};
|
|
201
|
+
display: number | boolean | undefined;
|
|
202
|
+
align?: import('chart.js').Align | undefined;
|
|
203
|
+
text: string | string[] | undefined;
|
|
204
|
+
color?: import('chart.js').Color | undefined;
|
|
205
|
+
padding: number | {
|
|
206
|
+
top: number;
|
|
207
|
+
bottom: number;
|
|
208
|
+
y: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
ticks: {
|
|
212
|
+
font: {
|
|
213
|
+
size: number;
|
|
214
|
+
} | {
|
|
215
|
+
family?: string | undefined;
|
|
216
|
+
size: number;
|
|
217
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
218
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
219
|
+
lineHeight?: string | number | undefined;
|
|
220
|
+
} | {
|
|
221
|
+
size: number;
|
|
222
|
+
} | {
|
|
223
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
224
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
225
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
226
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
227
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
228
|
+
};
|
|
229
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
230
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
231
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
232
|
+
display?: boolean | undefined;
|
|
233
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
234
|
+
padding?: number | undefined;
|
|
235
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
236
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
237
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
238
|
+
z?: number | undefined;
|
|
239
|
+
major?: {
|
|
240
|
+
enabled: boolean;
|
|
241
|
+
} | undefined;
|
|
242
|
+
sampleSize?: number | undefined;
|
|
243
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
244
|
+
autoSkip?: boolean | undefined;
|
|
245
|
+
autoSkipPadding?: number | undefined;
|
|
246
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
247
|
+
includeBounds: boolean;
|
|
248
|
+
labelOffset?: number | undefined;
|
|
249
|
+
minRotation?: number | undefined;
|
|
250
|
+
maxRotation?: number | undefined;
|
|
251
|
+
mirror?: boolean | undefined;
|
|
252
|
+
maxTicksLimit?: number | undefined;
|
|
253
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
254
|
+
precision?: number | undefined;
|
|
255
|
+
stepSize: number | null | undefined;
|
|
256
|
+
count?: number | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
font: {
|
|
259
|
+
size: number;
|
|
260
|
+
} | {
|
|
261
|
+
family?: string | undefined;
|
|
262
|
+
size: number;
|
|
263
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
264
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
265
|
+
lineHeight?: string | number | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
size: number;
|
|
268
|
+
} | {
|
|
269
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
270
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
271
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
272
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
273
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
274
|
+
};
|
|
275
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
276
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
277
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
278
|
+
display?: boolean | undefined;
|
|
279
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
280
|
+
padding?: number | undefined;
|
|
281
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
282
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
283
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
284
|
+
z?: number | undefined;
|
|
285
|
+
major?: {
|
|
286
|
+
enabled: boolean;
|
|
287
|
+
} | undefined;
|
|
288
|
+
sampleSize?: number | undefined;
|
|
289
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
290
|
+
autoSkip?: boolean | undefined;
|
|
291
|
+
autoSkipPadding?: number | undefined;
|
|
292
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
293
|
+
includeBounds: boolean;
|
|
294
|
+
labelOffset?: number | undefined;
|
|
295
|
+
minRotation?: number | undefined;
|
|
296
|
+
maxRotation?: number | undefined;
|
|
297
|
+
mirror?: boolean | undefined;
|
|
298
|
+
maxTicksLimit?: number | undefined;
|
|
299
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
300
|
+
precision?: number | undefined;
|
|
301
|
+
stepSize?: number | undefined;
|
|
302
|
+
count?: number | undefined;
|
|
303
|
+
};
|
|
304
|
+
grid: {
|
|
305
|
+
lineTension?: number;
|
|
306
|
+
spanGaps?: boolean;
|
|
307
|
+
showDataLabels?: boolean;
|
|
308
|
+
showMinorGridlines?: boolean;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
} | {
|
|
312
|
+
y: {
|
|
313
|
+
display: boolean;
|
|
314
|
+
type: "linear" | "logarithmic" | undefined;
|
|
315
|
+
position: import('../../common/common.interface').TAxisPosition | undefined;
|
|
316
|
+
beginAtZero: boolean | undefined;
|
|
317
|
+
reverse: boolean | undefined;
|
|
318
|
+
suggestedMax: number | undefined;
|
|
319
|
+
suggestedMin: number | undefined;
|
|
320
|
+
min: string | number | undefined;
|
|
321
|
+
max: string | number | undefined;
|
|
322
|
+
title: {
|
|
323
|
+
font: {
|
|
324
|
+
size: number;
|
|
325
|
+
} | {
|
|
326
|
+
family?: string | undefined;
|
|
327
|
+
size: number;
|
|
328
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
329
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
330
|
+
lineHeight?: string | number | undefined;
|
|
331
|
+
} | {
|
|
332
|
+
size: number;
|
|
333
|
+
} | {
|
|
334
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
335
|
+
size: number | ((ctx: import('chart.js').ScriptableCartesianScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
336
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
337
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
338
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
339
|
+
};
|
|
340
|
+
display: number | boolean | undefined;
|
|
341
|
+
align?: import('chart.js').Align | undefined;
|
|
342
|
+
text: string | string[] | undefined;
|
|
343
|
+
color?: import('chart.js').Color | undefined;
|
|
344
|
+
padding: number | {
|
|
345
|
+
top: number;
|
|
346
|
+
bottom: number;
|
|
347
|
+
y: number;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
ticks: {
|
|
351
|
+
font: {
|
|
352
|
+
size: number;
|
|
353
|
+
} | {
|
|
354
|
+
family?: string | undefined;
|
|
355
|
+
size: number;
|
|
356
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
357
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
358
|
+
lineHeight?: string | number | undefined;
|
|
359
|
+
} | {
|
|
360
|
+
size: number;
|
|
361
|
+
} | {
|
|
362
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
363
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
364
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
365
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
366
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
367
|
+
};
|
|
368
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
369
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
370
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
371
|
+
display?: boolean | undefined;
|
|
372
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
373
|
+
padding?: number | undefined;
|
|
374
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
375
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
376
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
377
|
+
z?: number | undefined;
|
|
378
|
+
major?: {
|
|
379
|
+
enabled: boolean;
|
|
380
|
+
} | undefined;
|
|
381
|
+
sampleSize?: number | undefined;
|
|
382
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
383
|
+
autoSkip?: boolean | undefined;
|
|
384
|
+
autoSkipPadding?: number | undefined;
|
|
385
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
386
|
+
includeBounds: boolean;
|
|
387
|
+
labelOffset?: number | undefined;
|
|
388
|
+
minRotation?: number | undefined;
|
|
389
|
+
maxRotation?: number | undefined;
|
|
390
|
+
mirror?: boolean | undefined;
|
|
391
|
+
maxTicksLimit?: number | undefined;
|
|
392
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
393
|
+
precision?: number | undefined;
|
|
394
|
+
stepSize: number | null | undefined;
|
|
395
|
+
count?: number | undefined;
|
|
396
|
+
} | {
|
|
397
|
+
font: {
|
|
398
|
+
size: number;
|
|
399
|
+
} | {
|
|
400
|
+
family?: string | undefined;
|
|
401
|
+
size: number;
|
|
402
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
403
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
404
|
+
lineHeight?: string | number | undefined;
|
|
405
|
+
} | {
|
|
406
|
+
size: number;
|
|
407
|
+
} | {
|
|
408
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
409
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
410
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
411
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
412
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
413
|
+
};
|
|
414
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
415
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
416
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
417
|
+
display?: boolean | undefined;
|
|
418
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
419
|
+
padding?: number | undefined;
|
|
420
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
421
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
422
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
423
|
+
z?: number | undefined;
|
|
424
|
+
major?: {
|
|
425
|
+
enabled: boolean;
|
|
426
|
+
} | undefined;
|
|
427
|
+
sampleSize?: number | undefined;
|
|
428
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
429
|
+
autoSkip?: boolean | undefined;
|
|
430
|
+
autoSkipPadding?: number | undefined;
|
|
431
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
432
|
+
includeBounds: boolean;
|
|
433
|
+
labelOffset?: number | undefined;
|
|
434
|
+
minRotation?: number | undefined;
|
|
435
|
+
maxRotation?: number | undefined;
|
|
436
|
+
mirror?: boolean | undefined;
|
|
437
|
+
maxTicksLimit?: number | undefined;
|
|
438
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
439
|
+
precision?: number | undefined;
|
|
440
|
+
stepSize?: number | undefined;
|
|
441
|
+
count?: number | undefined;
|
|
442
|
+
};
|
|
443
|
+
grid: {
|
|
444
|
+
lineTension?: number;
|
|
445
|
+
spanGaps?: boolean;
|
|
446
|
+
showDataLabels?: boolean;
|
|
447
|
+
showMinorGridlines?: boolean;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
x: {
|
|
451
|
+
display: boolean;
|
|
452
|
+
type: "linear" | "logarithmic" | undefined;
|
|
453
|
+
position: import('../../common/common.interface').TAxisPosition | undefined;
|
|
454
|
+
beginAtZero: boolean | undefined;
|
|
455
|
+
reverse: boolean | undefined;
|
|
456
|
+
suggestedMax: number | undefined;
|
|
457
|
+
suggestedMin: number | undefined;
|
|
458
|
+
min: string | number | undefined;
|
|
459
|
+
max: string | number | undefined;
|
|
460
|
+
title: {
|
|
461
|
+
font: {
|
|
462
|
+
size: number;
|
|
463
|
+
} | {
|
|
464
|
+
family?: string | undefined;
|
|
465
|
+
size: number;
|
|
466
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
467
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
468
|
+
lineHeight?: string | number | undefined;
|
|
469
|
+
} | {
|
|
470
|
+
size: number;
|
|
471
|
+
} | {
|
|
472
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
473
|
+
size: number | ((ctx: import('chart.js').ScriptableCartesianScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
474
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
475
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
476
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableCartesianScaleContext>;
|
|
477
|
+
};
|
|
478
|
+
display: number | boolean | undefined;
|
|
479
|
+
align?: import('chart.js').Align | undefined;
|
|
480
|
+
text: string | string[] | undefined;
|
|
481
|
+
color?: import('chart.js').Color | undefined;
|
|
482
|
+
padding: number | {
|
|
483
|
+
top: number;
|
|
484
|
+
bottom: number;
|
|
485
|
+
y: number;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
ticks: {
|
|
489
|
+
font: {
|
|
490
|
+
size: number;
|
|
491
|
+
} | {
|
|
492
|
+
family?: string | undefined;
|
|
493
|
+
size: number;
|
|
494
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
495
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
496
|
+
lineHeight?: string | number | undefined;
|
|
497
|
+
} | {
|
|
498
|
+
size: number;
|
|
499
|
+
} | {
|
|
500
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
501
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
502
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
503
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
504
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
505
|
+
};
|
|
506
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
507
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
508
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
509
|
+
display?: boolean | undefined;
|
|
510
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
511
|
+
padding?: number | undefined;
|
|
512
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
513
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
514
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
515
|
+
z?: number | undefined;
|
|
516
|
+
major?: {
|
|
517
|
+
enabled: boolean;
|
|
518
|
+
} | undefined;
|
|
519
|
+
sampleSize?: number | undefined;
|
|
520
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
521
|
+
autoSkip?: boolean | undefined;
|
|
522
|
+
autoSkipPadding?: number | undefined;
|
|
523
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
524
|
+
includeBounds: boolean;
|
|
525
|
+
labelOffset?: number | undefined;
|
|
526
|
+
minRotation?: number | undefined;
|
|
527
|
+
maxRotation?: number | undefined;
|
|
528
|
+
mirror?: boolean | undefined;
|
|
529
|
+
maxTicksLimit?: number | undefined;
|
|
530
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
531
|
+
precision?: number | undefined;
|
|
532
|
+
stepSize: number | null | undefined;
|
|
533
|
+
count?: number | undefined;
|
|
534
|
+
} | {
|
|
535
|
+
font: {
|
|
536
|
+
size: number;
|
|
537
|
+
} | {
|
|
538
|
+
family?: string | undefined;
|
|
539
|
+
size: number;
|
|
540
|
+
style?: "initial" | "normal" | "italic" | "oblique" | "inherit" | undefined;
|
|
541
|
+
weight?: number | "bold" | "normal" | "lighter" | "bolder" | null | undefined;
|
|
542
|
+
lineHeight?: string | number | undefined;
|
|
543
|
+
} | {
|
|
544
|
+
size: number;
|
|
545
|
+
} | {
|
|
546
|
+
family?: import('chart.js').Scriptable<string | undefined, import('chart.js').ScriptableScaleContext>;
|
|
547
|
+
size: number | ((ctx: import('chart.js').ScriptableScaleContext, options: import('node_modules/chart.js/dist/types/basic').AnyObject) => number | undefined);
|
|
548
|
+
style?: import('chart.js').Scriptable<"initial" | "normal" | "italic" | "oblique" | "inherit" | undefined, import('chart.js').ScriptableScaleContext>;
|
|
549
|
+
weight?: import('chart.js').Scriptable<number | "bold" | "normal" | "lighter" | "bolder" | null | undefined, import('chart.js').ScriptableScaleContext>;
|
|
550
|
+
lineHeight?: import('chart.js').Scriptable<string | number | undefined, import('chart.js').ScriptableScaleContext>;
|
|
551
|
+
};
|
|
552
|
+
backdropColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
553
|
+
backdropPadding?: number | import('chart.js').ChartArea | undefined;
|
|
554
|
+
callback: ((this: import('chart.js').Scale, tickValue: number | string, index: number, ticks: Tick[]) => string | string[] | number | number[] | null | undefined) | ((tick: number, _: UnusedParameter, ticks: Tick[]) => string);
|
|
555
|
+
display?: boolean | undefined;
|
|
556
|
+
color?: import('chart.js').ScriptableAndArray<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
557
|
+
padding?: number | undefined;
|
|
558
|
+
showLabelBackdrop?: import('chart.js').Scriptable<boolean, import('chart.js').ScriptableScaleContext> | undefined;
|
|
559
|
+
textStrokeColor?: import('chart.js').Scriptable<import('chart.js').Color, import('chart.js').ScriptableScaleContext> | undefined;
|
|
560
|
+
textStrokeWidth?: import('chart.js').Scriptable<number, import('chart.js').ScriptableScaleContext> | undefined;
|
|
561
|
+
z?: number | undefined;
|
|
562
|
+
major?: {
|
|
563
|
+
enabled: boolean;
|
|
564
|
+
} | undefined;
|
|
565
|
+
sampleSize?: number | undefined;
|
|
566
|
+
align?: import('chart.js').Align | "inner" | undefined;
|
|
567
|
+
autoSkip?: boolean | undefined;
|
|
568
|
+
autoSkipPadding?: number | undefined;
|
|
569
|
+
crossAlign?: "center" | "near" | "far" | undefined;
|
|
570
|
+
includeBounds: boolean;
|
|
571
|
+
labelOffset?: number | undefined;
|
|
572
|
+
minRotation?: number | undefined;
|
|
573
|
+
maxRotation?: number | undefined;
|
|
574
|
+
mirror?: boolean | undefined;
|
|
575
|
+
maxTicksLimit?: number | undefined;
|
|
576
|
+
format?: Intl.NumberFormatOptions | undefined;
|
|
577
|
+
precision?: number | undefined;
|
|
578
|
+
stepSize?: number | undefined;
|
|
579
|
+
count?: number | undefined;
|
|
580
|
+
};
|
|
581
|
+
grid: {
|
|
582
|
+
lineTension?: number;
|
|
583
|
+
spanGaps?: boolean;
|
|
584
|
+
showDataLabels?: boolean;
|
|
585
|
+
showMinorGridlines?: boolean;
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
export default getLineChartScales;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TooltipItem } from 'chart.js';
|
|
2
|
+
import { ChartHoverMode } from '../../common/enums';
|
|
3
|
+
import { ILineChartOptions } from '../line-chart.interface';
|
|
4
|
+
export declare const getUnitsFromLabel: (label: string) => string;
|
|
5
|
+
declare const getLineChartToolTips: (options: ILineChartOptions) => {
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
callbacks: {};
|
|
8
|
+
mode?: undefined;
|
|
9
|
+
intersect?: undefined;
|
|
10
|
+
padding?: undefined;
|
|
11
|
+
usePointStyle?: undefined;
|
|
12
|
+
boxWidth?: undefined;
|
|
13
|
+
boxHeight?: undefined;
|
|
14
|
+
boxPadding?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
enabled: boolean | undefined;
|
|
17
|
+
mode: ChartHoverMode;
|
|
18
|
+
intersect: boolean;
|
|
19
|
+
padding: number;
|
|
20
|
+
usePointStyle: boolean;
|
|
21
|
+
boxWidth: number;
|
|
22
|
+
boxHeight: number;
|
|
23
|
+
boxPadding: number;
|
|
24
|
+
callbacks: {
|
|
25
|
+
title: (() => void) | ((tooltipItem: TooltipItem<any>[]) => string);
|
|
26
|
+
label: (() => void) | ((tooltipItem: TooltipItem<any>) => string);
|
|
27
|
+
afterLabel: (() => void) | ((tooltipItem: Record<string, any>) => string);
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default getLineChartToolTips;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TPrimitive } from '../../common/common.interface';
|
|
2
|
+
import { IState } from '../state/state.interfaces';
|
|
3
|
+
export declare const toNum: (value: string | number) => any;
|
|
4
|
+
export declare const isLessThanMax: (value: string | number, max: string | number) => boolean;
|
|
5
|
+
export declare const isGreaterThanMin: (value: string | number, min: string | number) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param {'x'|'y'} axisType
|
|
9
|
+
* @param {number} [index] - axis index; optional, 0 by default
|
|
10
|
+
* @param {boolean} [hasMultiAxes] - optional, false by default
|
|
11
|
+
* @return {string} - e.g. x if chart has singular axes; x, x2 - in case of multiple axes
|
|
12
|
+
*/
|
|
13
|
+
export declare const generateAxisId: (axisType: string, index?: number, hasMultiAxes?: boolean) => string;
|
|
14
|
+
/**
|
|
15
|
+
Get axis type from a key string.
|
|
16
|
+
@param {string} string - The key string to extract from.
|
|
17
|
+
@returns {string} e.g. x1 => x
|
|
18
|
+
*/
|
|
19
|
+
export declare const getAxisTypeFromKey: (string: string) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Checks if a value is a primitive value (which includes strings, numbers, booleans, and null).
|
|
22
|
+
*/
|
|
23
|
+
export declare const isPrimitiveValue: (value: TPrimitive) => value is string | number | boolean | null;
|
|
24
|
+
export declare const getChartKey: (state: IState, languageKey: string) => string;
|