@trismegisto/charts 3.3.13 → 3.4.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/README.md +36 -25
- package/dist/core/bar-chart.d.ts +12 -0
- package/dist/core/bar-chart.js +30 -0
- package/dist/core/bar-chart.js.map +1 -0
- package/dist/core/boxplot-chart.d.ts +15 -0
- package/dist/core/boxplot-chart.js +45 -0
- package/dist/core/boxplot-chart.js.map +1 -0
- package/dist/core/bullet-chart.d.ts +29 -0
- package/dist/core/bullet-chart.js +95 -0
- package/dist/core/bullet-chart.js.map +1 -0
- package/dist/core/calendar-heatmap.d.ts +18 -0
- package/dist/core/calendar-heatmap.js +79 -0
- package/dist/core/calendar-heatmap.js.map +1 -0
- package/dist/core/chart-host.d.ts +19 -0
- package/dist/core/chart-host.js +109 -0
- package/dist/core/chart-host.js.map +1 -0
- package/dist/core/charts-i18n.d.ts +25 -0
- package/dist/core/charts-i18n.js +33 -0
- package/dist/core/charts-i18n.js.map +1 -0
- package/dist/core/charts-messages.d.ts +88 -0
- package/dist/core/charts-messages.en.d.ts +2 -0
- package/dist/core/charts-messages.en.js +106 -0
- package/dist/core/charts-messages.en.js.map +1 -0
- package/dist/core/charts-messages.es.d.ts +2 -0
- package/dist/core/charts-messages.es.js +106 -0
- package/dist/core/charts-messages.es.js.map +1 -0
- package/dist/core/charts-messages.js +106 -0
- package/dist/core/charts-messages.js.map +1 -0
- package/dist/core/context.d.ts +22 -0
- package/dist/core/context.js +13 -0
- package/dist/core/context.js.map +1 -0
- package/dist/core/engine-locale.d.ts +3 -0
- package/dist/core/engine-locale.js +59 -0
- package/dist/core/engine-locale.js.map +1 -0
- package/dist/core/format.d.ts +13 -0
- package/dist/core/format.js +64 -0
- package/dist/core/format.js.map +1 -0
- package/dist/core/frame.d.ts +19 -0
- package/dist/core/frame.js +28 -0
- package/dist/core/frame.js.map +1 -0
- package/dist/core/funnel-chart.d.ts +8 -0
- package/dist/core/funnel-chart.js +33 -0
- package/dist/core/funnel-chart.js.map +1 -0
- package/dist/core/gauge-chart.d.ts +44 -0
- package/dist/core/gauge-chart.js +218 -0
- package/dist/core/gauge-chart.js.map +1 -0
- package/dist/core/gauge-layout.d.ts +67 -0
- package/dist/core/gauge-layout.js +140 -0
- package/dist/core/gauge-layout.js.map +1 -0
- package/dist/core/heatmap-chart.d.ts +17 -0
- package/dist/core/heatmap-chart.js +55 -0
- package/dist/core/heatmap-chart.js.map +1 -0
- package/dist/core/index.d.ts +32 -0
- package/dist/core/index.js +38 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/line-chart.d.ts +12 -0
- package/dist/core/line-chart.js +29 -0
- package/dist/core/line-chart.js.map +1 -0
- package/dist/core/navigation.d.ts +25 -0
- package/dist/core/navigation.js +57 -0
- package/dist/core/navigation.js.map +1 -0
- package/dist/core/observe.d.ts +28 -0
- package/dist/core/observe.js +115 -0
- package/dist/core/observe.js.map +1 -0
- package/dist/core/options.d.ts +27 -0
- package/dist/core/options.js +64 -0
- package/dist/core/options.js.map +1 -0
- package/dist/core/pie-chart.d.ts +9 -0
- package/dist/core/pie-chart.js +34 -0
- package/dist/core/pie-chart.js.map +1 -0
- package/dist/core/radar-chart.d.ts +18 -0
- package/dist/core/radar-chart.js +34 -0
- package/dist/core/radar-chart.js.map +1 -0
- package/dist/core/sankey-chart.d.ts +15 -0
- package/dist/core/sankey-chart.js +32 -0
- package/dist/core/sankey-chart.js.map +1 -0
- package/dist/core/scatter-chart.d.ts +33 -0
- package/dist/core/scatter-chart.js +62 -0
- package/dist/core/scatter-chart.js.map +1 -0
- package/dist/core/sparkline-chart.d.ts +20 -0
- package/dist/core/sparkline-chart.js +60 -0
- package/dist/core/sparkline-chart.js.map +1 -0
- package/dist/core/stats.d.ts +12 -0
- package/dist/core/stats.js +23 -0
- package/dist/core/stats.js.map +1 -0
- package/dist/core/theme.d.ts +8 -0
- package/dist/core/theme.js +171 -0
- package/dist/core/theme.js.map +1 -0
- package/dist/core/treemap-chart.d.ts +21 -0
- package/dist/core/treemap-chart.js +45 -0
- package/dist/core/treemap-chart.js.map +1 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/view.d.ts +24 -0
- package/dist/core/view.js +2 -0
- package/dist/core/view.js.map +1 -0
- package/dist/core/waterfall-chart.d.ts +32 -0
- package/dist/core/waterfall-chart.js +115 -0
- package/dist/core/waterfall-chart.js.map +1 -0
- package/dist/engine/aria.d.ts +8 -0
- package/dist/engine/aria.js +70 -0
- package/dist/engine/aria.js.map +1 -0
- package/dist/engine/component/legend.d.ts +11 -0
- package/dist/engine/component/legend.js +349 -0
- package/dist/engine/component/legend.js.map +1 -0
- package/dist/engine/component/text-style.d.ts +6 -0
- package/dist/engine/component/text-style.js +26 -0
- package/dist/engine/component/text-style.js.map +1 -0
- package/dist/engine/component/title.d.ts +2 -0
- package/dist/engine/component/title.js +90 -0
- package/dist/engine/component/title.js.map +1 -0
- package/dist/engine/component/tooltip.d.ts +40 -0
- package/dist/engine/component/tooltip.js +418 -0
- package/dist/engine/component/tooltip.js.map +1 -0
- package/dist/engine/component/visual-map.d.ts +9 -0
- package/dist/engine/component/visual-map.js +381 -0
- package/dist/engine/component/visual-map.js.map +1 -0
- package/dist/engine/contract.d.ts +504 -0
- package/dist/engine/contract.js +10 -0
- package/dist/engine/contract.js.map +1 -0
- package/dist/engine/coord/axis.d.ts +55 -0
- package/dist/engine/coord/axis.js +349 -0
- package/dist/engine/coord/axis.js.map +1 -0
- package/dist/engine/coord/calendar.d.ts +44 -0
- package/dist/engine/coord/calendar.js +282 -0
- package/dist/engine/coord/calendar.js.map +1 -0
- package/dist/engine/coord/cartesian.d.ts +22 -0
- package/dist/engine/coord/cartesian.js +449 -0
- package/dist/engine/coord/cartesian.js.map +1 -0
- package/dist/engine/coord/polar.d.ts +24 -0
- package/dist/engine/coord/polar.js +232 -0
- package/dist/engine/coord/polar.js.map +1 -0
- package/dist/engine/coord/radar.d.ts +90 -0
- package/dist/engine/coord/radar.js +288 -0
- package/dist/engine/coord/radar.js.map +1 -0
- package/dist/engine/index.d.ts +27 -0
- package/dist/engine/index.js +16 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/instance.d.ts +79 -0
- package/dist/engine/instance.js +773 -0
- package/dist/engine/instance.js.map +1 -0
- package/dist/engine/label-layout.d.ts +3 -0
- package/dist/engine/label-layout.js +35 -0
- package/dist/engine/label-layout.js.map +1 -0
- package/dist/engine/locale.d.ts +9 -0
- package/dist/engine/locale.js +154 -0
- package/dist/engine/locale.js.map +1 -0
- package/dist/engine/model.d.ts +26 -0
- package/dist/engine/model.js +307 -0
- package/dist/engine/model.js.map +1 -0
- package/dist/engine/option/axis.d.ts +167 -0
- package/dist/engine/option/axis.js +2 -0
- package/dist/engine/option/axis.js.map +1 -0
- package/dist/engine/option/components.d.ts +424 -0
- package/dist/engine/option/components.js +2 -0
- package/dist/engine/option/components.js.map +1 -0
- package/dist/engine/option.d.ts +59 -0
- package/dist/engine/option.js +2 -0
- package/dist/engine/option.js.map +1 -0
- package/dist/engine/registry.d.ts +9 -0
- package/dist/engine/registry.js +42 -0
- package/dist/engine/registry.js.map +1 -0
- package/dist/engine/render/path.d.ts +26 -0
- package/dist/engine/render/path.js +387 -0
- package/dist/engine/render/path.js.map +1 -0
- package/dist/engine/render/svg.d.ts +60 -0
- package/dist/engine/render/svg.js +624 -0
- package/dist/engine/render/svg.js.map +1 -0
- package/dist/engine/render/text.d.ts +13 -0
- package/dist/engine/render/text.js +144 -0
- package/dist/engine/render/text.js.map +1 -0
- package/dist/engine/scale.d.ts +38 -0
- package/dist/engine/scale.js +170 -0
- package/dist/engine/scale.js.map +1 -0
- package/dist/engine/series/bar.d.ts +65 -0
- package/dist/engine/series/bar.js +417 -0
- package/dist/engine/series/bar.js.map +1 -0
- package/dist/engine/series/boxplot.d.ts +31 -0
- package/dist/engine/series/boxplot.js +125 -0
- package/dist/engine/series/boxplot.js.map +1 -0
- package/dist/engine/series/cartesian-data.d.ts +38 -0
- package/dist/engine/series/cartesian-data.js +159 -0
- package/dist/engine/series/cartesian-data.js.map +1 -0
- package/dist/engine/series/circular-common.d.ts +51 -0
- package/dist/engine/series/circular-common.js +196 -0
- package/dist/engine/series/circular-common.js.map +1 -0
- package/dist/engine/series/circular-options.d.ts +151 -0
- package/dist/engine/series/circular-options.js +2 -0
- package/dist/engine/series/circular-options.js.map +1 -0
- package/dist/engine/series/common.d.ts +51 -0
- package/dist/engine/series/common.js +210 -0
- package/dist/engine/series/common.js.map +1 -0
- package/dist/engine/series/funnel.d.ts +37 -0
- package/dist/engine/series/funnel.js +204 -0
- package/dist/engine/series/funnel.js.map +1 -0
- package/dist/engine/series/gauge.d.ts +106 -0
- package/dist/engine/series/gauge.js +349 -0
- package/dist/engine/series/gauge.js.map +1 -0
- package/dist/engine/series/heatmap.d.ts +31 -0
- package/dist/engine/series/heatmap.js +222 -0
- package/dist/engine/series/heatmap.js.map +1 -0
- package/dist/engine/series/label-fit.d.ts +7 -0
- package/dist/engine/series/label-fit.js +56 -0
- package/dist/engine/series/label-fit.js.map +1 -0
- package/dist/engine/series/line.d.ts +63 -0
- package/dist/engine/series/line.js +347 -0
- package/dist/engine/series/line.js.map +1 -0
- package/dist/engine/series/pie.d.ts +59 -0
- package/dist/engine/series/pie.js +396 -0
- package/dist/engine/series/pie.js.map +1 -0
- package/dist/engine/series/radar.d.ts +34 -0
- package/dist/engine/series/radar.js +168 -0
- package/dist/engine/series/radar.js.map +1 -0
- package/dist/engine/series/sankey.d.ts +64 -0
- package/dist/engine/series/sankey.js +486 -0
- package/dist/engine/series/sankey.js.map +1 -0
- package/dist/engine/series/scatter.d.ts +38 -0
- package/dist/engine/series/scatter.js +167 -0
- package/dist/engine/series/scatter.js.map +1 -0
- package/dist/engine/series/treemap.d.ts +77 -0
- package/dist/engine/series/treemap.js +493 -0
- package/dist/engine/series/treemap.js.map +1 -0
- package/dist/engine/theme.d.ts +9 -0
- package/dist/engine/theme.js +84 -0
- package/dist/engine/theme.js.map +1 -0
- package/dist/engine/util.d.ts +68 -0
- package/dist/engine/util.js +269 -0
- package/dist/engine/util.js.map +1 -0
- package/package.json +35 -24
- package/fesm2022/trismegisto-charts.mjs +0 -12428
- package/fesm2022/trismegisto-charts.mjs.map +0 -1
- package/types/trismegisto-charts.d.ts +0 -1970
- package/types/trismegisto-charts.d.ts.map +0 -1
|
@@ -1,1970 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
3
|
-
import { PluralMessage, MessageParams } from '@trismegisto/primitives/i18n';
|
|
4
|
-
import { CatalogOverride } from '@trismegisto/primitives/messages';
|
|
5
|
-
|
|
6
|
-
/** Gradiente linear (x, y, x2, y2 em fração da caixa) ou radial (x, y, r em fração), como no formato de opções. */
|
|
7
|
-
interface Gradient {
|
|
8
|
-
type: 'linear' | 'radial';
|
|
9
|
-
x?: number;
|
|
10
|
-
y?: number;
|
|
11
|
-
x2?: number;
|
|
12
|
-
y2?: number;
|
|
13
|
-
r?: number;
|
|
14
|
-
colorStops: {
|
|
15
|
-
offset: number;
|
|
16
|
-
color: string;
|
|
17
|
-
}[];
|
|
18
|
-
global?: boolean;
|
|
19
|
-
}
|
|
20
|
-
/** De onde veio o nó (eventos, tooltip, destaque, aria). */
|
|
21
|
-
interface ItemRef {
|
|
22
|
-
componentType: 'series' | 'legend' | 'title' | 'visualMap' | 'xAxis' | 'yAxis' | 'calendar' | 'radar' | 'polar' | 'treemapBreadcrumb' | string;
|
|
23
|
-
componentIndex?: number;
|
|
24
|
-
seriesIndex?: number;
|
|
25
|
-
seriesType?: string;
|
|
26
|
-
seriesName?: string;
|
|
27
|
-
dataIndex?: number;
|
|
28
|
-
name?: string;
|
|
29
|
-
value?: unknown;
|
|
30
|
-
/** Dados extras para quem trata o evento (nó do treemap, link do sankey…). */
|
|
31
|
-
data?: unknown;
|
|
32
|
-
dataType?: 'node' | 'edge';
|
|
33
|
-
}
|
|
34
|
-
interface SetOptionOpts {
|
|
35
|
-
notMerge?: boolean;
|
|
36
|
-
replaceMerge?: string | string[];
|
|
37
|
-
lazyUpdate?: boolean;
|
|
38
|
-
silent?: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface ChartEvent extends ItemRef {
|
|
41
|
-
type: string;
|
|
42
|
-
event?: Event;
|
|
43
|
-
/** Para `legendselectchanged`. */
|
|
44
|
-
selected?: Record<string, boolean>;
|
|
45
|
-
}
|
|
46
|
-
interface ChartInstance {
|
|
47
|
-
setOption(option: Record<string, any>, opts?: boolean | SetOptionOpts): void;
|
|
48
|
-
getOption(): Record<string, any>;
|
|
49
|
-
setTheme(theme: Record<string, any> | string | null): void;
|
|
50
|
-
resize(opts?: {
|
|
51
|
-
width?: number | 'auto';
|
|
52
|
-
height?: number | 'auto';
|
|
53
|
-
animation?: {
|
|
54
|
-
duration?: number;
|
|
55
|
-
};
|
|
56
|
-
}): void;
|
|
57
|
-
dispatchAction(action: Record<string, any>): void;
|
|
58
|
-
on(event: string, handler: (event: ChartEvent) => void): void;
|
|
59
|
-
on(event: string, query: string | Record<string, unknown>, handler: (event: ChartEvent) => void): void;
|
|
60
|
-
off(event: string, handler?: (event: ChartEvent) => void): void;
|
|
61
|
-
getWidth(): number;
|
|
62
|
-
getHeight(): number;
|
|
63
|
-
getDom(): HTMLElement;
|
|
64
|
-
/** SVG atual como texto (exportar). */
|
|
65
|
-
renderToSVGString(): string;
|
|
66
|
-
getDataURL(opts?: {
|
|
67
|
-
type?: 'svg';
|
|
68
|
-
backgroundColor?: string;
|
|
69
|
-
}): string;
|
|
70
|
-
clear(): void;
|
|
71
|
-
isDisposed(): boolean;
|
|
72
|
-
dispose(): void;
|
|
73
|
-
/** Converte dado → pixel num sistema de coordenadas (`{ gridIndex: 0 }`, `{ seriesIndex: 1 }`…). */
|
|
74
|
-
convertToPixel(finder: Record<string, number> | string, value: unknown): number | number[] | undefined;
|
|
75
|
-
convertFromPixel(finder: Record<string, number> | string, value: number[]): number | number[] | undefined;
|
|
76
|
-
containPixel(finder: Record<string, number> | string, value: number[]): boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** Cor: texto CSS ou gradiente (`{ type: 'linear', x, y, x2, y2, colorStops }`). */
|
|
80
|
-
type ColorValue = string | Gradient;
|
|
81
|
-
type LayoutPosition = number | string;
|
|
82
|
-
interface BoxLayoutOption {
|
|
83
|
-
left?: LayoutPosition;
|
|
84
|
-
top?: LayoutPosition;
|
|
85
|
-
right?: LayoutPosition;
|
|
86
|
-
bottom?: LayoutPosition;
|
|
87
|
-
width?: LayoutPosition;
|
|
88
|
-
height?: LayoutPosition;
|
|
89
|
-
}
|
|
90
|
-
interface TextStyleOption {
|
|
91
|
-
color?: string;
|
|
92
|
-
fontStyle?: 'normal' | 'italic' | 'oblique';
|
|
93
|
-
fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number | string;
|
|
94
|
-
fontFamily?: string;
|
|
95
|
-
fontSize?: number;
|
|
96
|
-
lineHeight?: number;
|
|
97
|
-
width?: number;
|
|
98
|
-
height?: number;
|
|
99
|
-
overflow?: 'none' | 'truncate' | 'break' | 'breakAll';
|
|
100
|
-
ellipsis?: string;
|
|
101
|
-
textBorderColor?: string;
|
|
102
|
-
textBorderWidth?: number;
|
|
103
|
-
textShadowColor?: string;
|
|
104
|
-
textShadowBlur?: number;
|
|
105
|
-
backgroundColor?: string;
|
|
106
|
-
borderColor?: string;
|
|
107
|
-
borderWidth?: number;
|
|
108
|
-
borderRadius?: number | number[];
|
|
109
|
-
padding?: number | number[];
|
|
110
|
-
align?: 'left' | 'center' | 'right';
|
|
111
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
112
|
-
opacity?: number;
|
|
113
|
-
/** Estilos nomeados para `{nome|texto}` (rich text). */
|
|
114
|
-
rich?: Record<string, TextStyleOption>;
|
|
115
|
-
}
|
|
116
|
-
interface ShadowOption {
|
|
117
|
-
shadowBlur?: number;
|
|
118
|
-
shadowColor?: string;
|
|
119
|
-
shadowOffsetX?: number;
|
|
120
|
-
shadowOffsetY?: number;
|
|
121
|
-
}
|
|
122
|
-
interface LineStyleOption$1 extends ShadowOption {
|
|
123
|
-
color?: ColorValue;
|
|
124
|
-
width?: number;
|
|
125
|
-
type?: 'solid' | 'dashed' | 'dotted' | number | number[];
|
|
126
|
-
dashOffset?: number;
|
|
127
|
-
cap?: 'butt' | 'round' | 'square';
|
|
128
|
-
join?: 'bevel' | 'round' | 'miter';
|
|
129
|
-
opacity?: number;
|
|
130
|
-
/** Curvatura (sankey, linhas de grafo). */
|
|
131
|
-
curveness?: number;
|
|
132
|
-
}
|
|
133
|
-
interface ItemStyleOption$1 extends ShadowOption {
|
|
134
|
-
color?: ColorValue | ((params: any) => ColorValue);
|
|
135
|
-
borderColor?: ColorValue;
|
|
136
|
-
borderWidth?: number;
|
|
137
|
-
borderType?: 'solid' | 'dashed' | 'dotted' | number | number[];
|
|
138
|
-
borderRadius?: number | number[];
|
|
139
|
-
borderCap?: 'butt' | 'round' | 'square';
|
|
140
|
-
opacity?: number;
|
|
141
|
-
decal?: Partial<DecalOption> | 'none';
|
|
142
|
-
/** Treemap: espaço entre filhos e saturação por nível. */
|
|
143
|
-
gapWidth?: number;
|
|
144
|
-
borderColorSaturation?: number;
|
|
145
|
-
colorAlpha?: number;
|
|
146
|
-
colorSaturation?: number;
|
|
147
|
-
[key: string]: unknown;
|
|
148
|
-
}
|
|
149
|
-
interface AreaStyleOption$1 extends ShadowOption {
|
|
150
|
-
color?: ColorValue;
|
|
151
|
-
opacity?: number;
|
|
152
|
-
origin?: 'auto' | 'start' | 'end' | number;
|
|
153
|
-
}
|
|
154
|
-
type LabelFormatter = string | ((params: any) => string);
|
|
155
|
-
interface LabelOption$1 extends TextStyleOption {
|
|
156
|
-
show?: boolean;
|
|
157
|
-
position?: string | (number | string)[];
|
|
158
|
-
distance?: number;
|
|
159
|
-
rotate?: number;
|
|
160
|
-
offset?: [number, number];
|
|
161
|
-
formatter?: LabelFormatter;
|
|
162
|
-
valueAnimation?: boolean;
|
|
163
|
-
minMargin?: number;
|
|
164
|
-
/** Pizza: alinhamento das linhas guia. */
|
|
165
|
-
alignTo?: 'none' | 'labelLine' | 'edge';
|
|
166
|
-
edgeDistance?: number | string;
|
|
167
|
-
bleedMargin?: number;
|
|
168
|
-
silent?: boolean;
|
|
169
|
-
}
|
|
170
|
-
interface LabelLineOption$1 {
|
|
171
|
-
show?: boolean;
|
|
172
|
-
showAbove?: boolean;
|
|
173
|
-
length?: number;
|
|
174
|
-
length2?: number;
|
|
175
|
-
smooth?: boolean | number;
|
|
176
|
-
minTurnAngle?: number;
|
|
177
|
-
lineStyle?: LineStyleOption$1;
|
|
178
|
-
}
|
|
179
|
-
interface EmphasisOption$1 {
|
|
180
|
-
disabled?: boolean;
|
|
181
|
-
/** O que esmaecer ao destacar: nada, a própria série ou todo o resto. */
|
|
182
|
-
focus?: 'none' | 'self' | 'series' | 'ancestor' | 'descendant' | 'adjacency';
|
|
183
|
-
blurScope?: 'coordinateSystem' | 'series' | 'global';
|
|
184
|
-
scale?: boolean | number;
|
|
185
|
-
itemStyle?: ItemStyleOption$1;
|
|
186
|
-
lineStyle?: LineStyleOption$1;
|
|
187
|
-
areaStyle?: AreaStyleOption$1;
|
|
188
|
-
label?: LabelOption$1;
|
|
189
|
-
labelLine?: LabelLineOption$1;
|
|
190
|
-
}
|
|
191
|
-
interface StateOption$1 {
|
|
192
|
-
itemStyle?: ItemStyleOption$1;
|
|
193
|
-
lineStyle?: LineStyleOption$1;
|
|
194
|
-
areaStyle?: AreaStyleOption$1;
|
|
195
|
-
label?: LabelOption$1;
|
|
196
|
-
}
|
|
197
|
-
interface DecalOption {
|
|
198
|
-
symbol: string | string[];
|
|
199
|
-
symbolSize: number;
|
|
200
|
-
symbolKeepAspect: boolean;
|
|
201
|
-
color: string;
|
|
202
|
-
backgroundColor: string;
|
|
203
|
-
dashArrayX: number | number[];
|
|
204
|
-
dashArrayY: number | number[];
|
|
205
|
-
rotation: number;
|
|
206
|
-
maxTileWidth: number;
|
|
207
|
-
maxTileHeight: number;
|
|
208
|
-
}
|
|
209
|
-
interface TitleOption extends BoxLayoutOption {
|
|
210
|
-
id?: string;
|
|
211
|
-
show?: boolean;
|
|
212
|
-
text?: string;
|
|
213
|
-
link?: string;
|
|
214
|
-
target?: 'self' | 'blank';
|
|
215
|
-
textStyle?: TextStyleOption;
|
|
216
|
-
subtext?: string;
|
|
217
|
-
sublink?: string;
|
|
218
|
-
subtarget?: 'self' | 'blank';
|
|
219
|
-
subtextStyle?: TextStyleOption;
|
|
220
|
-
textAlign?: 'auto' | 'left' | 'center' | 'right';
|
|
221
|
-
textVerticalAlign?: 'auto' | 'top' | 'middle' | 'bottom';
|
|
222
|
-
triggerEvent?: boolean;
|
|
223
|
-
padding?: number | number[];
|
|
224
|
-
itemGap?: number;
|
|
225
|
-
zlevel?: number;
|
|
226
|
-
z?: number;
|
|
227
|
-
backgroundColor?: string;
|
|
228
|
-
borderColor?: string;
|
|
229
|
-
borderWidth?: number;
|
|
230
|
-
borderRadius?: number | number[];
|
|
231
|
-
}
|
|
232
|
-
interface LegendDataItem {
|
|
233
|
-
name: string;
|
|
234
|
-
icon?: string;
|
|
235
|
-
itemStyle?: ItemStyleOption$1;
|
|
236
|
-
lineStyle?: LineStyleOption$1;
|
|
237
|
-
textStyle?: TextStyleOption;
|
|
238
|
-
inactiveColor?: string;
|
|
239
|
-
}
|
|
240
|
-
interface LegendOption extends BoxLayoutOption {
|
|
241
|
-
id?: string;
|
|
242
|
-
type?: 'plain' | 'scroll';
|
|
243
|
-
show?: boolean;
|
|
244
|
-
orient?: 'horizontal' | 'vertical';
|
|
245
|
-
align?: 'auto' | 'left' | 'right';
|
|
246
|
-
padding?: number | number[];
|
|
247
|
-
itemGap?: number;
|
|
248
|
-
itemWidth?: number;
|
|
249
|
-
itemHeight?: number;
|
|
250
|
-
itemStyle?: ItemStyleOption$1;
|
|
251
|
-
lineStyle?: LineStyleOption$1;
|
|
252
|
-
symbolRotate?: number | 'inherit';
|
|
253
|
-
formatter?: string | ((name: string) => string);
|
|
254
|
-
selectedMode?: boolean | 'single' | 'multiple';
|
|
255
|
-
inactiveColor?: string;
|
|
256
|
-
inactiveBorderColor?: string;
|
|
257
|
-
inactiveBorderWidth?: number | 'auto';
|
|
258
|
-
selected?: Record<string, boolean>;
|
|
259
|
-
textStyle?: TextStyleOption;
|
|
260
|
-
tooltip?: TooltipOption;
|
|
261
|
-
icon?: string;
|
|
262
|
-
data?: (string | LegendDataItem)[];
|
|
263
|
-
backgroundColor?: string;
|
|
264
|
-
borderColor?: string;
|
|
265
|
-
borderWidth?: number;
|
|
266
|
-
borderRadius?: number | number[];
|
|
267
|
-
/** Scroll: índice do primeiro item da página atual. */
|
|
268
|
-
scrollDataIndex?: number;
|
|
269
|
-
pageButtonItemGap?: number;
|
|
270
|
-
pageButtonGap?: number;
|
|
271
|
-
pageButtonPosition?: 'start' | 'end';
|
|
272
|
-
pageFormatter?: string | ((params: {
|
|
273
|
-
current: number;
|
|
274
|
-
total: number;
|
|
275
|
-
}) => string);
|
|
276
|
-
pageIconColor?: string;
|
|
277
|
-
pageIconInactiveColor?: string;
|
|
278
|
-
pageIconSize?: number | number[];
|
|
279
|
-
pageTextStyle?: TextStyleOption;
|
|
280
|
-
animation?: boolean;
|
|
281
|
-
animationDurationUpdate?: number;
|
|
282
|
-
zlevel?: number;
|
|
283
|
-
z?: number;
|
|
284
|
-
}
|
|
285
|
-
interface AxisPointerOption$1 {
|
|
286
|
-
show?: boolean | 'auto';
|
|
287
|
-
type?: 'line' | 'shadow' | 'cross' | 'none';
|
|
288
|
-
axis?: 'auto' | 'x' | 'y' | 'radius' | 'angle';
|
|
289
|
-
snap?: boolean;
|
|
290
|
-
z?: number;
|
|
291
|
-
label?: LabelOption$1 & {
|
|
292
|
-
precision?: number | 'auto';
|
|
293
|
-
margin?: number;
|
|
294
|
-
};
|
|
295
|
-
lineStyle?: LineStyleOption$1;
|
|
296
|
-
shadowStyle?: ItemStyleOption$1;
|
|
297
|
-
crossStyle?: LineStyleOption$1;
|
|
298
|
-
triggerTooltip?: boolean;
|
|
299
|
-
value?: number;
|
|
300
|
-
status?: 'show' | 'hide';
|
|
301
|
-
link?: unknown[];
|
|
302
|
-
animation?: boolean;
|
|
303
|
-
}
|
|
304
|
-
type TooltipPositionCallback = (point: [number, number], params: unknown, dom: HTMLElement, rect: {
|
|
305
|
-
x: number;
|
|
306
|
-
y: number;
|
|
307
|
-
width: number;
|
|
308
|
-
height: number;
|
|
309
|
-
} | null, size: {
|
|
310
|
-
contentSize: [number, number];
|
|
311
|
-
viewSize: [number, number];
|
|
312
|
-
}) => (number | string)[] | Record<string, number | string>;
|
|
313
|
-
interface TooltipOption {
|
|
314
|
-
show?: boolean;
|
|
315
|
-
trigger?: 'item' | 'axis' | 'none';
|
|
316
|
-
axisPointer?: AxisPointerOption$1;
|
|
317
|
-
showContent?: boolean;
|
|
318
|
-
alwaysShowContent?: boolean;
|
|
319
|
-
triggerOn?: 'mousemove' | 'click' | 'mousemove|click' | 'none';
|
|
320
|
-
showDelay?: number;
|
|
321
|
-
hideDelay?: number;
|
|
322
|
-
enterable?: boolean;
|
|
323
|
-
renderMode?: 'html' | 'richText';
|
|
324
|
-
confine?: boolean;
|
|
325
|
-
appendToBody?: boolean;
|
|
326
|
-
appendTo?: string | HTMLElement | ((chartContainer: HTMLElement) => HTMLElement | undefined | null);
|
|
327
|
-
className?: string;
|
|
328
|
-
transitionDuration?: number;
|
|
329
|
-
position?: (number | string)[] | 'inside' | 'top' | 'left' | 'right' | 'bottom' | TooltipPositionCallback | Record<string, number | string>;
|
|
330
|
-
formatter?: string | ((params: any, ticket: string, callback: (ticket: string, html: string) => void) => string | HTMLElement | HTMLElement[]);
|
|
331
|
-
valueFormatter?: (value: unknown, dataIndex: number) => string;
|
|
332
|
-
backgroundColor?: string;
|
|
333
|
-
borderColor?: string;
|
|
334
|
-
borderWidth?: number;
|
|
335
|
-
borderRadius?: number;
|
|
336
|
-
padding?: number | number[];
|
|
337
|
-
textStyle?: TextStyleOption;
|
|
338
|
-
extraCssText?: string;
|
|
339
|
-
order?: 'seriesAsc' | 'seriesDesc' | 'valueAsc' | 'valueDesc';
|
|
340
|
-
shadowBlur?: number;
|
|
341
|
-
shadowColor?: string;
|
|
342
|
-
shadowOffsetX?: number;
|
|
343
|
-
shadowOffsetY?: number;
|
|
344
|
-
}
|
|
345
|
-
interface VisualChannels {
|
|
346
|
-
color?: string | string[];
|
|
347
|
-
colorAlpha?: number | number[];
|
|
348
|
-
opacity?: number | number[];
|
|
349
|
-
colorLightness?: number | number[];
|
|
350
|
-
colorSaturation?: number | number[];
|
|
351
|
-
colorHue?: number | number[];
|
|
352
|
-
symbol?: string | string[];
|
|
353
|
-
symbolSize?: number | number[];
|
|
354
|
-
}
|
|
355
|
-
interface VisualMapBase extends BoxLayoutOption {
|
|
356
|
-
id?: string;
|
|
357
|
-
show?: boolean;
|
|
358
|
-
dimension?: number;
|
|
359
|
-
seriesIndex?: number | number[];
|
|
360
|
-
inverse?: boolean;
|
|
361
|
-
orient?: 'vertical' | 'horizontal';
|
|
362
|
-
align?: 'auto' | 'left' | 'right' | 'top' | 'bottom';
|
|
363
|
-
itemWidth?: number;
|
|
364
|
-
itemHeight?: number;
|
|
365
|
-
itemGap?: number;
|
|
366
|
-
itemSymbol?: string;
|
|
367
|
-
hoverLink?: boolean;
|
|
368
|
-
inRange?: VisualChannels;
|
|
369
|
-
outOfRange?: VisualChannels;
|
|
370
|
-
controller?: {
|
|
371
|
-
inRange?: VisualChannels;
|
|
372
|
-
outOfRange?: VisualChannels;
|
|
373
|
-
};
|
|
374
|
-
text?: [string, string];
|
|
375
|
-
textGap?: number;
|
|
376
|
-
textStyle?: TextStyleOption;
|
|
377
|
-
precision?: number;
|
|
378
|
-
formatter?: string | ((value: number, value2?: number) => string);
|
|
379
|
-
padding?: number | number[];
|
|
380
|
-
backgroundColor?: string;
|
|
381
|
-
borderColor?: string;
|
|
382
|
-
borderWidth?: number;
|
|
383
|
-
/** Cor do controle (atalho para inRange.color). */
|
|
384
|
-
color?: string[];
|
|
385
|
-
zlevel?: number;
|
|
386
|
-
z?: number;
|
|
387
|
-
}
|
|
388
|
-
interface ContinuousVisualMapOption extends VisualMapBase {
|
|
389
|
-
type?: 'continuous';
|
|
390
|
-
min?: number;
|
|
391
|
-
max?: number;
|
|
392
|
-
range?: [number, number];
|
|
393
|
-
calculable?: boolean;
|
|
394
|
-
realtime?: boolean;
|
|
395
|
-
handleIcon?: string;
|
|
396
|
-
handleSize?: number | string;
|
|
397
|
-
handleStyle?: ItemStyleOption$1;
|
|
398
|
-
indicatorIcon?: string;
|
|
399
|
-
indicatorSize?: number | string;
|
|
400
|
-
indicatorStyle?: ItemStyleOption$1;
|
|
401
|
-
}
|
|
402
|
-
interface VisualPiece extends VisualChannels {
|
|
403
|
-
min?: number;
|
|
404
|
-
max?: number;
|
|
405
|
-
lt?: number;
|
|
406
|
-
lte?: number;
|
|
407
|
-
gt?: number;
|
|
408
|
-
gte?: number;
|
|
409
|
-
value?: number;
|
|
410
|
-
label?: string;
|
|
411
|
-
}
|
|
412
|
-
interface PiecewiseVisualMapOption extends VisualMapBase {
|
|
413
|
-
type: 'piecewise';
|
|
414
|
-
min?: number;
|
|
415
|
-
max?: number;
|
|
416
|
-
splitNumber?: number;
|
|
417
|
-
pieces?: VisualPiece[];
|
|
418
|
-
categories?: string[];
|
|
419
|
-
selectedMode?: 'multiple' | 'single' | boolean;
|
|
420
|
-
selected?: Record<string, boolean>;
|
|
421
|
-
minOpen?: boolean;
|
|
422
|
-
maxOpen?: boolean;
|
|
423
|
-
showLabel?: boolean;
|
|
424
|
-
}
|
|
425
|
-
type VisualMapOption = ContinuousVisualMapOption | PiecewiseVisualMapOption;
|
|
426
|
-
interface AriaLabelOption {
|
|
427
|
-
enabled?: boolean;
|
|
428
|
-
description?: string;
|
|
429
|
-
general?: {
|
|
430
|
-
withTitle?: string;
|
|
431
|
-
withoutTitle?: string;
|
|
432
|
-
};
|
|
433
|
-
series?: {
|
|
434
|
-
maxCount?: number;
|
|
435
|
-
single?: {
|
|
436
|
-
prefix?: string;
|
|
437
|
-
withName?: string;
|
|
438
|
-
withoutName?: string;
|
|
439
|
-
};
|
|
440
|
-
multiple?: {
|
|
441
|
-
prefix?: string;
|
|
442
|
-
withName?: string;
|
|
443
|
-
withoutName?: string;
|
|
444
|
-
separator?: {
|
|
445
|
-
middle?: string;
|
|
446
|
-
end?: string;
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
data?: {
|
|
451
|
-
maxCount?: number;
|
|
452
|
-
allData?: string;
|
|
453
|
-
partialData?: string;
|
|
454
|
-
withName?: string;
|
|
455
|
-
withoutName?: string;
|
|
456
|
-
separator?: {
|
|
457
|
-
middle?: string;
|
|
458
|
-
end?: string;
|
|
459
|
-
};
|
|
460
|
-
excludeDimensionId?: number[];
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
interface AriaOption {
|
|
464
|
-
enabled?: boolean;
|
|
465
|
-
label?: AriaLabelOption;
|
|
466
|
-
decal?: {
|
|
467
|
-
show?: boolean;
|
|
468
|
-
decals?: Partial<DecalOption> | Partial<DecalOption>[];
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
interface DimensionDefinition {
|
|
472
|
-
name?: string;
|
|
473
|
-
type?: 'number' | 'float' | 'int' | 'ordinal' | 'time';
|
|
474
|
-
displayName?: string;
|
|
475
|
-
}
|
|
476
|
-
interface DatasetOption {
|
|
477
|
-
id?: string;
|
|
478
|
-
/** Linhas (array de arrays, a primeira pode ser cabeçalho) ou objetos por linha, ou colunas (objeto de arrays). */
|
|
479
|
-
source?: unknown[][] | Record<string, unknown>[] | Record<string, unknown[]>;
|
|
480
|
-
dimensions?: (string | DimensionDefinition)[];
|
|
481
|
-
sourceHeader?: boolean | number | 'auto';
|
|
482
|
-
fromDatasetIndex?: number;
|
|
483
|
-
fromDatasetId?: string;
|
|
484
|
-
transform?: unknown;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
type Percent = number | string;
|
|
488
|
-
interface GridOption {
|
|
489
|
-
id?: string;
|
|
490
|
-
show?: boolean;
|
|
491
|
-
z?: number;
|
|
492
|
-
left?: Percent;
|
|
493
|
-
top?: Percent;
|
|
494
|
-
right?: Percent;
|
|
495
|
-
bottom?: Percent;
|
|
496
|
-
width?: Percent;
|
|
497
|
-
height?: Percent;
|
|
498
|
-
/** Os rótulos dos eixos ficam dentro da área do grid (a caixa encolhe para caber). */
|
|
499
|
-
containLabel?: boolean;
|
|
500
|
-
backgroundColor?: ColorValue;
|
|
501
|
-
borderColor?: ColorValue;
|
|
502
|
-
borderWidth?: number;
|
|
503
|
-
tooltip?: Record<string, any>;
|
|
504
|
-
}
|
|
505
|
-
type AxisType = 'category' | 'value' | 'time' | 'log';
|
|
506
|
-
interface AxisLabelOption extends TextStyleOption {
|
|
507
|
-
show?: boolean;
|
|
508
|
-
/** `'auto'` esconde rótulos que se sobreporiam; número = mostra 1 a cada n+1; função (índice, valor) → mostrar. */
|
|
509
|
-
interval?: 'auto' | number | ((index: number, value: string) => boolean);
|
|
510
|
-
inside?: boolean;
|
|
511
|
-
rotate?: number;
|
|
512
|
-
margin?: number;
|
|
513
|
-
/** Template (`'{value} kg'`, `'{yyyy}'` em eixo de tempo) ou função (valor, índice). */
|
|
514
|
-
formatter?: string | ((value: any, index: number) => string) | null;
|
|
515
|
-
showMinLabel?: boolean | null;
|
|
516
|
-
showMaxLabel?: boolean | null;
|
|
517
|
-
hideOverlap?: boolean;
|
|
518
|
-
/** Cor fixa ou por valor. */
|
|
519
|
-
color?: ColorValue | ((value: any, index: number) => string) | any;
|
|
520
|
-
}
|
|
521
|
-
interface AxisTickOption {
|
|
522
|
-
show?: boolean | 'auto';
|
|
523
|
-
alignWithLabel?: boolean;
|
|
524
|
-
interval?: 'auto' | number | ((index: number, value: string) => boolean);
|
|
525
|
-
inside?: boolean;
|
|
526
|
-
length?: number;
|
|
527
|
-
lineStyle?: LineStyleOption$1;
|
|
528
|
-
}
|
|
529
|
-
interface AxisLineOption {
|
|
530
|
-
show?: boolean | 'auto';
|
|
531
|
-
/** No eixo de baixo/esquerda: a linha passa pelo zero do outro eixo, quando ele contém o zero. */
|
|
532
|
-
onZero?: boolean;
|
|
533
|
-
onZeroAxisIndex?: number;
|
|
534
|
-
symbol?: string | string[];
|
|
535
|
-
lineStyle?: LineStyleOption$1;
|
|
536
|
-
}
|
|
537
|
-
interface SplitLineOption {
|
|
538
|
-
show?: boolean;
|
|
539
|
-
interval?: 'auto' | number | ((index: number, value: string) => boolean);
|
|
540
|
-
lineStyle?: LineStyleOption$1 & {
|
|
541
|
-
color?: ColorValue | ColorValue[];
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
interface SplitAreaOption {
|
|
545
|
-
show?: boolean;
|
|
546
|
-
interval?: 'auto' | number;
|
|
547
|
-
areaStyle?: {
|
|
548
|
-
color?: ColorValue[];
|
|
549
|
-
opacity?: number;
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
interface AxisPointerOption {
|
|
553
|
-
show?: boolean | 'auto';
|
|
554
|
-
type?: 'line' | 'shadow' | 'none';
|
|
555
|
-
snap?: boolean;
|
|
556
|
-
z?: number;
|
|
557
|
-
label?: TextStyleOption & {
|
|
558
|
-
show?: boolean;
|
|
559
|
-
precision?: number | 'auto';
|
|
560
|
-
formatter?: string | ((params: any) => string);
|
|
561
|
-
margin?: number;
|
|
562
|
-
};
|
|
563
|
-
lineStyle?: LineStyleOption$1;
|
|
564
|
-
shadowStyle?: {
|
|
565
|
-
color?: ColorValue;
|
|
566
|
-
opacity?: number;
|
|
567
|
-
};
|
|
568
|
-
triggerTooltip?: boolean;
|
|
569
|
-
}
|
|
570
|
-
interface AxisOption {
|
|
571
|
-
id?: string;
|
|
572
|
-
show?: boolean;
|
|
573
|
-
type?: AxisType;
|
|
574
|
-
name?: string;
|
|
575
|
-
nameLocation?: 'start' | 'middle' | 'center' | 'end';
|
|
576
|
-
nameGap?: number;
|
|
577
|
-
nameRotate?: number;
|
|
578
|
-
nameTextStyle?: TextStyleOption;
|
|
579
|
-
inverse?: boolean;
|
|
580
|
-
/** Categoria: `true` = valores no meio das bandas. Valor: folga [min, max] em número ou %. */
|
|
581
|
-
boundaryGap?: boolean | [Percent, Percent];
|
|
582
|
-
min?: number | string | 'dataMin' | ((extent: {
|
|
583
|
-
min: number;
|
|
584
|
-
max: number;
|
|
585
|
-
}) => number) | null;
|
|
586
|
-
max?: number | string | 'dataMax' | ((extent: {
|
|
587
|
-
min: number;
|
|
588
|
-
max: number;
|
|
589
|
-
}) => number) | null;
|
|
590
|
-
/** Eixo de valor sem forçar o zero. */
|
|
591
|
-
scale?: boolean;
|
|
592
|
-
splitNumber?: number;
|
|
593
|
-
minInterval?: number;
|
|
594
|
-
maxInterval?: number;
|
|
595
|
-
interval?: number;
|
|
596
|
-
logBase?: number;
|
|
597
|
-
silent?: boolean;
|
|
598
|
-
triggerEvent?: boolean;
|
|
599
|
-
/** Categorias (nomes ou `{ value, textStyle }`). */
|
|
600
|
-
data?: (string | number | {
|
|
601
|
-
value: string | number;
|
|
602
|
-
textStyle?: TextStyleOption;
|
|
603
|
-
})[];
|
|
604
|
-
axisLine?: AxisLineOption;
|
|
605
|
-
axisTick?: AxisTickOption;
|
|
606
|
-
minorTick?: {
|
|
607
|
-
show?: boolean;
|
|
608
|
-
splitNumber?: number;
|
|
609
|
-
length?: number;
|
|
610
|
-
lineStyle?: LineStyleOption$1;
|
|
611
|
-
};
|
|
612
|
-
axisLabel?: AxisLabelOption;
|
|
613
|
-
splitLine?: SplitLineOption;
|
|
614
|
-
minorSplitLine?: {
|
|
615
|
-
show?: boolean;
|
|
616
|
-
lineStyle?: LineStyleOption$1;
|
|
617
|
-
};
|
|
618
|
-
splitArea?: SplitAreaOption;
|
|
619
|
-
axisPointer?: AxisPointerOption;
|
|
620
|
-
z?: number;
|
|
621
|
-
}
|
|
622
|
-
interface CartesianAxisOption extends AxisOption {
|
|
623
|
-
gridIndex?: number;
|
|
624
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
625
|
-
offset?: number;
|
|
626
|
-
alignTicks?: boolean;
|
|
627
|
-
}
|
|
628
|
-
type XAXisOption = CartesianAxisOption & {
|
|
629
|
-
position?: 'top' | 'bottom';
|
|
630
|
-
};
|
|
631
|
-
type YAXisOption = CartesianAxisOption & {
|
|
632
|
-
position?: 'left' | 'right';
|
|
633
|
-
};
|
|
634
|
-
interface PolarOption {
|
|
635
|
-
id?: string;
|
|
636
|
-
z?: number;
|
|
637
|
-
center?: [Percent, Percent];
|
|
638
|
-
/** Raio externo ou [interno, externo]. */
|
|
639
|
-
radius?: Percent | [Percent, Percent];
|
|
640
|
-
tooltip?: Record<string, any>;
|
|
641
|
-
}
|
|
642
|
-
interface AngleAxisOption extends AxisOption {
|
|
643
|
-
polarIndex?: number;
|
|
644
|
-
/** Ângulo do início, em graus (90 = topo). */
|
|
645
|
-
startAngle?: number;
|
|
646
|
-
endAngle?: number;
|
|
647
|
-
clockwise?: boolean;
|
|
648
|
-
}
|
|
649
|
-
interface RadiusAxisOption extends AxisOption {
|
|
650
|
-
polarIndex?: number;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
interface CalendarLabelOption extends TextStyleOption {
|
|
654
|
-
show?: boolean;
|
|
655
|
-
position?: 'start' | 'end';
|
|
656
|
-
margin?: number;
|
|
657
|
-
/** Nomes: `'en'`, `'pt'`, uma lista (12 meses ou 7 dias) ou ausente (idioma do motor). */
|
|
658
|
-
nameMap?: string | string[];
|
|
659
|
-
formatter?: string | ((params: any) => string);
|
|
660
|
-
}
|
|
661
|
-
interface CalendarOption extends BoxLayoutOption {
|
|
662
|
-
/** `'2026'`, `'2026-01'`, `'2026-01-05'` ou `[início, fim]`. */
|
|
663
|
-
range?: string | number | (string | number | Date)[];
|
|
664
|
-
orient?: 'horizontal' | 'vertical';
|
|
665
|
-
/** Tamanho da célula: número, `[largura, altura]` ou `'auto'` (cabe na caixa). */
|
|
666
|
-
cellSize?: number | 'auto' | (number | 'auto')[];
|
|
667
|
-
splitLine?: {
|
|
668
|
-
show?: boolean;
|
|
669
|
-
lineStyle?: LineStyleOption$1;
|
|
670
|
-
};
|
|
671
|
-
itemStyle?: ItemStyleOption$1;
|
|
672
|
-
dayLabel?: CalendarLabelOption & {
|
|
673
|
-
firstDay?: number;
|
|
674
|
-
};
|
|
675
|
-
monthLabel?: CalendarLabelOption & {
|
|
676
|
-
align?: 'left' | 'center' | 'right';
|
|
677
|
-
};
|
|
678
|
-
yearLabel?: CalendarLabelOption;
|
|
679
|
-
silent?: boolean;
|
|
680
|
-
z?: number;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
type ColorOption = string | Gradient;
|
|
684
|
-
type NumberOrPercent = number | string;
|
|
685
|
-
interface LineStyleOption {
|
|
686
|
-
color?: ColorOption;
|
|
687
|
-
width?: number;
|
|
688
|
-
type?: 'solid' | 'dashed' | 'dotted' | number[];
|
|
689
|
-
dashOffset?: number;
|
|
690
|
-
cap?: 'butt' | 'round' | 'square';
|
|
691
|
-
join?: 'bevel' | 'round' | 'miter';
|
|
692
|
-
opacity?: number;
|
|
693
|
-
shadowBlur?: number;
|
|
694
|
-
shadowColor?: string;
|
|
695
|
-
shadowOffsetX?: number;
|
|
696
|
-
shadowOffsetY?: number;
|
|
697
|
-
}
|
|
698
|
-
interface ItemStyleOption {
|
|
699
|
-
color?: ColorOption | ((params: unknown) => string);
|
|
700
|
-
borderColor?: string;
|
|
701
|
-
borderWidth?: number;
|
|
702
|
-
borderType?: 'solid' | 'dashed' | 'dotted' | number[];
|
|
703
|
-
borderRadius?: NumberOrPercent | NumberOrPercent[];
|
|
704
|
-
opacity?: number;
|
|
705
|
-
shadowBlur?: number;
|
|
706
|
-
shadowColor?: string;
|
|
707
|
-
shadowOffsetX?: number;
|
|
708
|
-
shadowOffsetY?: number;
|
|
709
|
-
decal?: unknown;
|
|
710
|
-
}
|
|
711
|
-
interface AreaStyleOption {
|
|
712
|
-
color?: ColorOption;
|
|
713
|
-
opacity?: number;
|
|
714
|
-
origin?: 'auto' | 'start' | 'end' | number;
|
|
715
|
-
shadowBlur?: number;
|
|
716
|
-
shadowColor?: string;
|
|
717
|
-
}
|
|
718
|
-
interface TextOption {
|
|
719
|
-
color?: string;
|
|
720
|
-
fontStyle?: 'normal' | 'italic' | 'oblique';
|
|
721
|
-
fontWeight?: string | number;
|
|
722
|
-
fontFamily?: string;
|
|
723
|
-
fontSize?: number;
|
|
724
|
-
lineHeight?: number;
|
|
725
|
-
align?: 'left' | 'center' | 'right';
|
|
726
|
-
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
727
|
-
backgroundColor?: string;
|
|
728
|
-
borderColor?: string;
|
|
729
|
-
borderWidth?: number;
|
|
730
|
-
borderRadius?: number;
|
|
731
|
-
padding?: number | number[];
|
|
732
|
-
width?: number;
|
|
733
|
-
height?: number;
|
|
734
|
-
overflow?: 'none' | 'truncate' | 'break' | 'breakAll';
|
|
735
|
-
ellipsis?: string;
|
|
736
|
-
textBorderColor?: string;
|
|
737
|
-
textBorderWidth?: number;
|
|
738
|
-
opacity?: number;
|
|
739
|
-
rich?: Record<string, unknown>;
|
|
740
|
-
}
|
|
741
|
-
type FormatterFn = (params: any) => string;
|
|
742
|
-
interface LabelOption extends TextOption {
|
|
743
|
-
show?: boolean;
|
|
744
|
-
position?: string;
|
|
745
|
-
distance?: number;
|
|
746
|
-
rotate?: number | boolean | 'radial' | 'tangential';
|
|
747
|
-
offset?: [number, number];
|
|
748
|
-
formatter?: string | FormatterFn;
|
|
749
|
-
silent?: boolean;
|
|
750
|
-
precision?: number | 'auto';
|
|
751
|
-
valueAnimation?: boolean;
|
|
752
|
-
/** Pizza. */
|
|
753
|
-
alignTo?: 'none' | 'labelLine' | 'edge';
|
|
754
|
-
edgeDistance?: NumberOrPercent;
|
|
755
|
-
bleedMargin?: number;
|
|
756
|
-
distanceToLabelLine?: number;
|
|
757
|
-
minMargin?: number;
|
|
758
|
-
}
|
|
759
|
-
interface LabelLineOption {
|
|
760
|
-
show?: boolean;
|
|
761
|
-
showAbove?: boolean;
|
|
762
|
-
length?: number;
|
|
763
|
-
length2?: number;
|
|
764
|
-
smooth?: boolean | number;
|
|
765
|
-
minTurnAngle?: number;
|
|
766
|
-
maxSurfaceAngle?: number;
|
|
767
|
-
lineStyle?: LineStyleOption;
|
|
768
|
-
}
|
|
769
|
-
interface EmphasisOption {
|
|
770
|
-
disabled?: boolean;
|
|
771
|
-
focus?: 'none' | 'self' | 'series';
|
|
772
|
-
blurScope?: 'coordinateSystem' | 'series' | 'global';
|
|
773
|
-
scale?: boolean | number;
|
|
774
|
-
scaleSize?: number;
|
|
775
|
-
label?: LabelOption;
|
|
776
|
-
labelLine?: LabelLineOption;
|
|
777
|
-
itemStyle?: ItemStyleOption;
|
|
778
|
-
lineStyle?: LineStyleOption;
|
|
779
|
-
areaStyle?: AreaStyleOption;
|
|
780
|
-
}
|
|
781
|
-
interface StateOption {
|
|
782
|
-
disabled?: boolean;
|
|
783
|
-
label?: LabelOption;
|
|
784
|
-
labelLine?: LabelLineOption;
|
|
785
|
-
itemStyle?: ItemStyleOption;
|
|
786
|
-
lineStyle?: LineStyleOption;
|
|
787
|
-
areaStyle?: AreaStyleOption;
|
|
788
|
-
}
|
|
789
|
-
/** Campos comuns a toda série (identidade, animação, interação, tooltip). */
|
|
790
|
-
interface SeriesCommonOption {
|
|
791
|
-
id?: string | number;
|
|
792
|
-
name?: string | number;
|
|
793
|
-
z?: number;
|
|
794
|
-
zlevel?: number;
|
|
795
|
-
silent?: boolean;
|
|
796
|
-
cursor?: string;
|
|
797
|
-
legendHoverLink?: boolean;
|
|
798
|
-
selectedMode?: boolean | 'single' | 'multiple' | 'series';
|
|
799
|
-
selectedOffset?: number;
|
|
800
|
-
animation?: boolean;
|
|
801
|
-
animationThreshold?: number;
|
|
802
|
-
animationDuration?: number | ((idx: number) => number);
|
|
803
|
-
animationEasing?: string;
|
|
804
|
-
animationDelay?: number | ((idx: number) => number);
|
|
805
|
-
animationDurationUpdate?: number | ((idx: number) => number);
|
|
806
|
-
animationEasingUpdate?: string;
|
|
807
|
-
animationDelayUpdate?: number | ((idx: number) => number);
|
|
808
|
-
tooltip?: Record<string, unknown>;
|
|
809
|
-
colorBy?: 'series' | 'data';
|
|
810
|
-
datasetIndex?: number;
|
|
811
|
-
seriesLayoutBy?: 'column' | 'row';
|
|
812
|
-
encode?: Record<string, unknown>;
|
|
813
|
-
dimensions?: unknown[];
|
|
814
|
-
universalTransition?: unknown;
|
|
815
|
-
blur?: StateOption;
|
|
816
|
-
select?: StateOption;
|
|
817
|
-
}
|
|
818
|
-
/** Item de dado nomeado (pizza, funil, medidor): número, `null`, ou objeto. */
|
|
819
|
-
interface NamedDataItemOption {
|
|
820
|
-
name?: string;
|
|
821
|
-
value?: number | string | null | (number | string | null)[];
|
|
822
|
-
id?: string | number;
|
|
823
|
-
selected?: boolean;
|
|
824
|
-
itemStyle?: ItemStyleOption;
|
|
825
|
-
label?: LabelOption;
|
|
826
|
-
labelLine?: LabelLineOption;
|
|
827
|
-
emphasis?: EmphasisOption;
|
|
828
|
-
blur?: StateOption;
|
|
829
|
-
select?: StateOption;
|
|
830
|
-
tooltip?: Record<string, unknown>;
|
|
831
|
-
cursor?: string;
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
interface RadarIndicatorOption {
|
|
835
|
-
name?: string;
|
|
836
|
-
/** Nome antigo do formato (alias de `name`). */
|
|
837
|
-
text?: string;
|
|
838
|
-
max?: number;
|
|
839
|
-
min?: number;
|
|
840
|
-
color?: string;
|
|
841
|
-
}
|
|
842
|
-
interface RadarOption {
|
|
843
|
-
id?: string | number;
|
|
844
|
-
z?: number;
|
|
845
|
-
center?: NumberOrPercent[];
|
|
846
|
-
radius?: NumberOrPercent | NumberOrPercent[];
|
|
847
|
-
startAngle?: number;
|
|
848
|
-
clockwise?: boolean;
|
|
849
|
-
splitNumber?: number;
|
|
850
|
-
shape?: 'polygon' | 'circle';
|
|
851
|
-
scale?: boolean;
|
|
852
|
-
silent?: boolean;
|
|
853
|
-
triggerEvent?: boolean;
|
|
854
|
-
indicator?: RadarIndicatorOption[];
|
|
855
|
-
axisName?: TextOption & {
|
|
856
|
-
show?: boolean;
|
|
857
|
-
formatter?: string | ((name: string, indicator: RadarIndicatorOption) => string);
|
|
858
|
-
};
|
|
859
|
-
nameGap?: number;
|
|
860
|
-
axisLine?: {
|
|
861
|
-
show?: boolean;
|
|
862
|
-
lineStyle?: LineStyleOption;
|
|
863
|
-
};
|
|
864
|
-
axisTick?: {
|
|
865
|
-
show?: boolean;
|
|
866
|
-
length?: number;
|
|
867
|
-
lineStyle?: LineStyleOption;
|
|
868
|
-
};
|
|
869
|
-
axisLabel?: TextOption & {
|
|
870
|
-
show?: boolean;
|
|
871
|
-
margin?: number;
|
|
872
|
-
formatter?: string | ((value: number) => string);
|
|
873
|
-
};
|
|
874
|
-
splitLine?: {
|
|
875
|
-
show?: boolean;
|
|
876
|
-
lineStyle?: LineStyleOption & {
|
|
877
|
-
color?: string | string[];
|
|
878
|
-
};
|
|
879
|
-
};
|
|
880
|
-
splitArea?: {
|
|
881
|
-
show?: boolean;
|
|
882
|
-
areaStyle?: {
|
|
883
|
-
color?: string | string[];
|
|
884
|
-
opacity?: number;
|
|
885
|
-
};
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
interface BarSeriesOption {
|
|
890
|
-
type: 'bar';
|
|
891
|
-
id?: string;
|
|
892
|
-
name?: string;
|
|
893
|
-
coordinateSystem?: 'cartesian2d' | 'polar';
|
|
894
|
-
xAxisIndex?: number;
|
|
895
|
-
yAxisIndex?: number;
|
|
896
|
-
polarIndex?: number;
|
|
897
|
-
stack?: string;
|
|
898
|
-
barWidth?: number | string;
|
|
899
|
-
barMaxWidth?: number | string;
|
|
900
|
-
barMinWidth?: number | string;
|
|
901
|
-
barMinHeight?: number;
|
|
902
|
-
barGap?: number | string;
|
|
903
|
-
barCategoryGap?: number | string;
|
|
904
|
-
showBackground?: boolean;
|
|
905
|
-
backgroundStyle?: ItemStyleOption$1;
|
|
906
|
-
itemStyle?: ItemStyleOption$1;
|
|
907
|
-
label?: LabelOption$1;
|
|
908
|
-
labelLine?: Record<string, any>;
|
|
909
|
-
emphasis?: {
|
|
910
|
-
disabled?: boolean;
|
|
911
|
-
focus?: 'none' | 'self' | 'series';
|
|
912
|
-
blurScope?: string;
|
|
913
|
-
itemStyle?: ItemStyleOption$1;
|
|
914
|
-
label?: LabelOption$1;
|
|
915
|
-
};
|
|
916
|
-
blur?: {
|
|
917
|
-
itemStyle?: ItemStyleOption$1;
|
|
918
|
-
label?: LabelOption$1;
|
|
919
|
-
};
|
|
920
|
-
select?: Record<string, any>;
|
|
921
|
-
data?: (number | string | null | (number | string | null)[] | {
|
|
922
|
-
name?: string;
|
|
923
|
-
value?: unknown;
|
|
924
|
-
itemStyle?: ItemStyleOption$1;
|
|
925
|
-
label?: LabelOption$1;
|
|
926
|
-
[key: string]: unknown;
|
|
927
|
-
})[];
|
|
928
|
-
large?: boolean;
|
|
929
|
-
realtimeSort?: boolean;
|
|
930
|
-
silent?: boolean;
|
|
931
|
-
z?: number;
|
|
932
|
-
zlevel?: number;
|
|
933
|
-
animation?: boolean;
|
|
934
|
-
animationDuration?: number;
|
|
935
|
-
animationDelay?: number | ((index: number) => number);
|
|
936
|
-
animationEasing?: string;
|
|
937
|
-
tooltip?: Record<string, any>;
|
|
938
|
-
encode?: Record<string, unknown>;
|
|
939
|
-
datasetIndex?: number;
|
|
940
|
-
seriesLayoutBy?: 'column' | 'row';
|
|
941
|
-
[key: string]: unknown;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
interface BoxplotSeriesOption {
|
|
945
|
-
type: 'boxplot';
|
|
946
|
-
id?: string;
|
|
947
|
-
name?: string;
|
|
948
|
-
coordinateSystem?: 'cartesian2d';
|
|
949
|
-
xAxisIndex?: number;
|
|
950
|
-
yAxisIndex?: number;
|
|
951
|
-
layout?: 'horizontal' | 'vertical';
|
|
952
|
-
/** Largura da caixa: [mínima, máxima] em px ou % da banda. */
|
|
953
|
-
boxWidth?: (number | string)[];
|
|
954
|
-
itemStyle?: ItemStyleOption$1;
|
|
955
|
-
emphasis?: {
|
|
956
|
-
disabled?: boolean;
|
|
957
|
-
focus?: 'none' | 'self' | 'series';
|
|
958
|
-
itemStyle?: ItemStyleOption$1;
|
|
959
|
-
};
|
|
960
|
-
blur?: {
|
|
961
|
-
itemStyle?: ItemStyleOption$1;
|
|
962
|
-
};
|
|
963
|
-
data?: unknown[];
|
|
964
|
-
silent?: boolean;
|
|
965
|
-
z?: number;
|
|
966
|
-
animation?: boolean;
|
|
967
|
-
tooltip?: Record<string, any>;
|
|
968
|
-
[key: string]: unknown;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
interface FunnelSeriesOption extends SeriesCommonOption {
|
|
972
|
-
type: 'funnel';
|
|
973
|
-
left?: NumberOrPercent;
|
|
974
|
-
top?: NumberOrPercent;
|
|
975
|
-
right?: NumberOrPercent;
|
|
976
|
-
bottom?: NumberOrPercent;
|
|
977
|
-
width?: NumberOrPercent;
|
|
978
|
-
height?: NumberOrPercent;
|
|
979
|
-
min?: number;
|
|
980
|
-
max?: number;
|
|
981
|
-
minSize?: NumberOrPercent;
|
|
982
|
-
maxSize?: NumberOrPercent;
|
|
983
|
-
orient?: 'vertical' | 'horizontal';
|
|
984
|
-
sort?: 'descending' | 'ascending' | 'none' | ((a: unknown, b: unknown) => number);
|
|
985
|
-
gap?: number;
|
|
986
|
-
funnelAlign?: 'left' | 'center' | 'right';
|
|
987
|
-
label?: LabelOption;
|
|
988
|
-
labelLine?: LabelLineOption;
|
|
989
|
-
itemStyle?: ItemStyleOption;
|
|
990
|
-
emphasis?: EmphasisOption;
|
|
991
|
-
data?: (number | string | null | NamedDataItemOption)[];
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
type GaugeTextOption = TextOption & {
|
|
995
|
-
show?: boolean;
|
|
996
|
-
offsetCenter?: NumberOrPercent[];
|
|
997
|
-
formatter?: string | ((value: number) => string);
|
|
998
|
-
valueAnimation?: boolean;
|
|
999
|
-
precision?: number;
|
|
1000
|
-
};
|
|
1001
|
-
interface GaugeDataItemOption extends NamedDataItemOption {
|
|
1002
|
-
title?: GaugeTextOption;
|
|
1003
|
-
detail?: GaugeTextOption;
|
|
1004
|
-
pointer?: GaugeSeriesOption['pointer'];
|
|
1005
|
-
progress?: GaugeSeriesOption['progress'];
|
|
1006
|
-
}
|
|
1007
|
-
interface GaugeSeriesOption extends SeriesCommonOption {
|
|
1008
|
-
type: 'gauge';
|
|
1009
|
-
center?: NumberOrPercent[];
|
|
1010
|
-
radius?: NumberOrPercent;
|
|
1011
|
-
startAngle?: number;
|
|
1012
|
-
endAngle?: number;
|
|
1013
|
-
clockwise?: boolean;
|
|
1014
|
-
min?: number;
|
|
1015
|
-
max?: number;
|
|
1016
|
-
splitNumber?: number;
|
|
1017
|
-
axisLine?: {
|
|
1018
|
-
show?: boolean;
|
|
1019
|
-
roundCap?: boolean;
|
|
1020
|
-
lineStyle?: Omit<LineStyleOption, 'color'> & {
|
|
1021
|
-
color?: [number, string][] | string;
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
1024
|
-
progress?: {
|
|
1025
|
-
show?: boolean;
|
|
1026
|
-
overlap?: boolean;
|
|
1027
|
-
width?: number;
|
|
1028
|
-
roundCap?: boolean;
|
|
1029
|
-
clip?: boolean;
|
|
1030
|
-
itemStyle?: ItemStyleOption;
|
|
1031
|
-
};
|
|
1032
|
-
splitLine?: {
|
|
1033
|
-
show?: boolean;
|
|
1034
|
-
length?: NumberOrPercent;
|
|
1035
|
-
distance?: number;
|
|
1036
|
-
lineStyle?: LineStyleOption & {
|
|
1037
|
-
color?: string;
|
|
1038
|
-
};
|
|
1039
|
-
};
|
|
1040
|
-
axisTick?: {
|
|
1041
|
-
show?: boolean;
|
|
1042
|
-
splitNumber?: number;
|
|
1043
|
-
length?: NumberOrPercent;
|
|
1044
|
-
distance?: number;
|
|
1045
|
-
lineStyle?: LineStyleOption & {
|
|
1046
|
-
color?: string;
|
|
1047
|
-
};
|
|
1048
|
-
};
|
|
1049
|
-
axisLabel?: TextOption & {
|
|
1050
|
-
show?: boolean;
|
|
1051
|
-
distance?: number;
|
|
1052
|
-
rotate?: number | 'tangential' | 'radial';
|
|
1053
|
-
formatter?: string | ((value: number) => string);
|
|
1054
|
-
};
|
|
1055
|
-
pointer?: {
|
|
1056
|
-
show?: boolean;
|
|
1057
|
-
showAbove?: boolean;
|
|
1058
|
-
icon?: string;
|
|
1059
|
-
offsetCenter?: NumberOrPercent[];
|
|
1060
|
-
length?: NumberOrPercent;
|
|
1061
|
-
width?: number;
|
|
1062
|
-
keepAspect?: boolean;
|
|
1063
|
-
itemStyle?: ItemStyleOption;
|
|
1064
|
-
};
|
|
1065
|
-
anchor?: {
|
|
1066
|
-
show?: boolean;
|
|
1067
|
-
showAbove?: boolean;
|
|
1068
|
-
size?: number;
|
|
1069
|
-
icon?: string;
|
|
1070
|
-
offsetCenter?: NumberOrPercent[];
|
|
1071
|
-
keepAspect?: boolean;
|
|
1072
|
-
itemStyle?: ItemStyleOption;
|
|
1073
|
-
};
|
|
1074
|
-
title?: GaugeTextOption;
|
|
1075
|
-
detail?: GaugeTextOption;
|
|
1076
|
-
itemStyle?: ItemStyleOption;
|
|
1077
|
-
emphasis?: {
|
|
1078
|
-
disabled?: boolean;
|
|
1079
|
-
itemStyle?: ItemStyleOption;
|
|
1080
|
-
};
|
|
1081
|
-
data?: (number | null | GaugeDataItemOption)[];
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
interface HeatmapSeriesOption {
|
|
1085
|
-
type: 'heatmap';
|
|
1086
|
-
id?: string;
|
|
1087
|
-
name?: string;
|
|
1088
|
-
coordinateSystem?: 'cartesian2d' | 'calendar';
|
|
1089
|
-
xAxisIndex?: number;
|
|
1090
|
-
yAxisIndex?: number;
|
|
1091
|
-
calendarIndex?: number;
|
|
1092
|
-
/** Cartesiano: `[x, y, valor]` (índice ou nome da categoria); calendário: `[data, valor]`. */
|
|
1093
|
-
data?: (unknown[] | {
|
|
1094
|
-
name?: string;
|
|
1095
|
-
value: unknown[];
|
|
1096
|
-
itemStyle?: ItemStyleOption$1;
|
|
1097
|
-
label?: LabelOption$1;
|
|
1098
|
-
})[];
|
|
1099
|
-
itemStyle?: ItemStyleOption$1;
|
|
1100
|
-
label?: LabelOption$1;
|
|
1101
|
-
emphasis?: EmphasisOption$1;
|
|
1102
|
-
blur?: StateOption$1;
|
|
1103
|
-
select?: StateOption$1;
|
|
1104
|
-
pointSize?: number;
|
|
1105
|
-
blurSize?: number;
|
|
1106
|
-
silent?: boolean;
|
|
1107
|
-
z?: number;
|
|
1108
|
-
animation?: boolean;
|
|
1109
|
-
tooltip?: Record<string, unknown>;
|
|
1110
|
-
[key: string]: unknown;
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
interface LineSeriesOption {
|
|
1114
|
-
type: 'line';
|
|
1115
|
-
id?: string;
|
|
1116
|
-
name?: string;
|
|
1117
|
-
coordinateSystem?: 'cartesian2d' | 'polar';
|
|
1118
|
-
xAxisIndex?: number;
|
|
1119
|
-
yAxisIndex?: number;
|
|
1120
|
-
polarIndex?: number;
|
|
1121
|
-
stack?: string;
|
|
1122
|
-
smooth?: boolean | number;
|
|
1123
|
-
smoothMonotone?: 'x' | 'y' | 'none';
|
|
1124
|
-
step?: boolean | 'start' | 'middle' | 'end';
|
|
1125
|
-
connectNulls?: boolean;
|
|
1126
|
-
symbol?: string;
|
|
1127
|
-
symbolSize?: number | number[] | ((value: unknown, params: any) => number | number[]);
|
|
1128
|
-
symbolRotate?: number;
|
|
1129
|
-
symbolKeepAspect?: boolean;
|
|
1130
|
-
showSymbol?: boolean;
|
|
1131
|
-
showAllSymbol?: boolean | 'auto';
|
|
1132
|
-
lineStyle?: LineStyleOption$1;
|
|
1133
|
-
areaStyle?: AreaStyleOption$1 & {
|
|
1134
|
-
origin?: 'auto' | 'start' | 'end' | number;
|
|
1135
|
-
};
|
|
1136
|
-
itemStyle?: ItemStyleOption$1;
|
|
1137
|
-
label?: LabelOption$1;
|
|
1138
|
-
endLabel?: LabelOption$1 & {
|
|
1139
|
-
valueAnimation?: boolean;
|
|
1140
|
-
};
|
|
1141
|
-
emphasis?: {
|
|
1142
|
-
disabled?: boolean;
|
|
1143
|
-
focus?: 'none' | 'self' | 'series';
|
|
1144
|
-
scale?: boolean | number;
|
|
1145
|
-
lineStyle?: LineStyleOption$1 & {
|
|
1146
|
-
width?: number | 'bolder';
|
|
1147
|
-
};
|
|
1148
|
-
areaStyle?: AreaStyleOption$1;
|
|
1149
|
-
itemStyle?: ItemStyleOption$1;
|
|
1150
|
-
label?: LabelOption$1;
|
|
1151
|
-
};
|
|
1152
|
-
blur?: {
|
|
1153
|
-
lineStyle?: LineStyleOption$1;
|
|
1154
|
-
areaStyle?: AreaStyleOption$1;
|
|
1155
|
-
itemStyle?: ItemStyleOption$1;
|
|
1156
|
-
label?: LabelOption$1;
|
|
1157
|
-
};
|
|
1158
|
-
data?: unknown[];
|
|
1159
|
-
sampling?: string;
|
|
1160
|
-
silent?: boolean;
|
|
1161
|
-
clip?: boolean;
|
|
1162
|
-
z?: number;
|
|
1163
|
-
animation?: boolean;
|
|
1164
|
-
animationDuration?: number;
|
|
1165
|
-
animationEasing?: string;
|
|
1166
|
-
tooltip?: Record<string, any>;
|
|
1167
|
-
encode?: Record<string, unknown>;
|
|
1168
|
-
datasetIndex?: number;
|
|
1169
|
-
[key: string]: unknown;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
interface PieSeriesOption extends SeriesCommonOption {
|
|
1173
|
-
type: 'pie';
|
|
1174
|
-
center?: NumberOrPercent | NumberOrPercent[];
|
|
1175
|
-
radius?: NumberOrPercent | NumberOrPercent[];
|
|
1176
|
-
roseType?: boolean | 'radius' | 'area';
|
|
1177
|
-
startAngle?: number;
|
|
1178
|
-
endAngle?: number | 'auto';
|
|
1179
|
-
clockwise?: boolean;
|
|
1180
|
-
minAngle?: number;
|
|
1181
|
-
minShowLabelAngle?: number;
|
|
1182
|
-
padAngle?: number;
|
|
1183
|
-
avoidLabelOverlap?: boolean;
|
|
1184
|
-
stillShowZeroSum?: boolean;
|
|
1185
|
-
showEmptyCircle?: boolean;
|
|
1186
|
-
emptyCircleStyle?: ItemStyleOption;
|
|
1187
|
-
percentPrecision?: number;
|
|
1188
|
-
animationType?: 'expansion' | 'scale';
|
|
1189
|
-
animationTypeUpdate?: 'transition' | 'expansion';
|
|
1190
|
-
left?: NumberOrPercent;
|
|
1191
|
-
top?: NumberOrPercent;
|
|
1192
|
-
right?: NumberOrPercent;
|
|
1193
|
-
bottom?: NumberOrPercent;
|
|
1194
|
-
width?: NumberOrPercent;
|
|
1195
|
-
height?: NumberOrPercent;
|
|
1196
|
-
label?: LabelOption;
|
|
1197
|
-
labelLine?: LabelLineOption;
|
|
1198
|
-
labelLayout?: Record<string, unknown> | ((params: unknown) => unknown);
|
|
1199
|
-
itemStyle?: ItemStyleOption;
|
|
1200
|
-
emphasis?: EmphasisOption;
|
|
1201
|
-
data?: (number | string | null | NamedDataItemOption)[];
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
interface RadarDataItemOption {
|
|
1205
|
-
name?: string;
|
|
1206
|
-
value?: (number | string | null)[];
|
|
1207
|
-
symbol?: string;
|
|
1208
|
-
symbolSize?: number | number[];
|
|
1209
|
-
symbolRotate?: number;
|
|
1210
|
-
symbolKeepAspect?: boolean;
|
|
1211
|
-
symbolOffset?: (number | string)[];
|
|
1212
|
-
itemStyle?: ItemStyleOption;
|
|
1213
|
-
lineStyle?: LineStyleOption;
|
|
1214
|
-
areaStyle?: AreaStyleOption;
|
|
1215
|
-
label?: LabelOption;
|
|
1216
|
-
emphasis?: EmphasisOption;
|
|
1217
|
-
tooltip?: Record<string, unknown>;
|
|
1218
|
-
}
|
|
1219
|
-
interface RadarSeriesOption extends SeriesCommonOption {
|
|
1220
|
-
type: 'radar';
|
|
1221
|
-
radarIndex?: number;
|
|
1222
|
-
symbol?: string;
|
|
1223
|
-
symbolSize?: number | number[];
|
|
1224
|
-
symbolRotate?: number;
|
|
1225
|
-
symbolKeepAspect?: boolean;
|
|
1226
|
-
symbolOffset?: (number | string)[];
|
|
1227
|
-
label?: LabelOption;
|
|
1228
|
-
labelLayout?: Record<string, unknown>;
|
|
1229
|
-
itemStyle?: ItemStyleOption;
|
|
1230
|
-
lineStyle?: LineStyleOption;
|
|
1231
|
-
areaStyle?: AreaStyleOption;
|
|
1232
|
-
emphasis?: EmphasisOption;
|
|
1233
|
-
data?: RadarDataItemOption[];
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
interface SankeyNodeOption {
|
|
1237
|
-
name: string;
|
|
1238
|
-
value?: number;
|
|
1239
|
-
depth?: number;
|
|
1240
|
-
itemStyle?: ItemStyleOption$1;
|
|
1241
|
-
label?: LabelOption$1;
|
|
1242
|
-
emphasis?: EmphasisOption$1;
|
|
1243
|
-
[key: string]: unknown;
|
|
1244
|
-
}
|
|
1245
|
-
interface SankeyLinkOption {
|
|
1246
|
-
source: string | number;
|
|
1247
|
-
target: string | number;
|
|
1248
|
-
value: number;
|
|
1249
|
-
lineStyle?: LineStyleOption$1;
|
|
1250
|
-
emphasis?: EmphasisOption$1;
|
|
1251
|
-
[key: string]: unknown;
|
|
1252
|
-
}
|
|
1253
|
-
interface SankeySeriesOption extends BoxLayoutOption {
|
|
1254
|
-
type: 'sankey';
|
|
1255
|
-
id?: string;
|
|
1256
|
-
name?: string;
|
|
1257
|
-
data?: SankeyNodeOption[];
|
|
1258
|
-
nodes?: SankeyNodeOption[];
|
|
1259
|
-
links?: SankeyLinkOption[];
|
|
1260
|
-
edges?: SankeyLinkOption[];
|
|
1261
|
-
nodeWidth?: number;
|
|
1262
|
-
nodeGap?: number;
|
|
1263
|
-
nodeAlign?: 'justify' | 'left' | 'right';
|
|
1264
|
-
layoutIterations?: number;
|
|
1265
|
-
orient?: 'horizontal' | 'vertical';
|
|
1266
|
-
draggable?: boolean;
|
|
1267
|
-
levels?: {
|
|
1268
|
-
depth: number;
|
|
1269
|
-
itemStyle?: ItemStyleOption$1;
|
|
1270
|
-
lineStyle?: LineStyleOption$1;
|
|
1271
|
-
label?: LabelOption$1;
|
|
1272
|
-
}[];
|
|
1273
|
-
label?: LabelOption$1;
|
|
1274
|
-
itemStyle?: ItemStyleOption$1;
|
|
1275
|
-
lineStyle?: LineStyleOption$1 & {
|
|
1276
|
-
color?: string | 'source' | 'target' | 'gradient';
|
|
1277
|
-
};
|
|
1278
|
-
emphasis?: EmphasisOption$1;
|
|
1279
|
-
blur?: {
|
|
1280
|
-
itemStyle?: ItemStyleOption$1;
|
|
1281
|
-
lineStyle?: LineStyleOption$1;
|
|
1282
|
-
label?: LabelOption$1;
|
|
1283
|
-
};
|
|
1284
|
-
silent?: boolean;
|
|
1285
|
-
animation?: boolean;
|
|
1286
|
-
tooltip?: Record<string, unknown>;
|
|
1287
|
-
[key: string]: unknown;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
interface ScatterSeriesOption {
|
|
1291
|
-
type: 'scatter';
|
|
1292
|
-
id?: string;
|
|
1293
|
-
name?: string;
|
|
1294
|
-
coordinateSystem?: 'cartesian2d' | 'polar';
|
|
1295
|
-
xAxisIndex?: number;
|
|
1296
|
-
yAxisIndex?: number;
|
|
1297
|
-
polarIndex?: number;
|
|
1298
|
-
symbol?: string;
|
|
1299
|
-
symbolSize?: number | number[] | ((value: any, params: any) => number | number[]);
|
|
1300
|
-
symbolRotate?: number;
|
|
1301
|
-
symbolOffset?: (number | string)[];
|
|
1302
|
-
itemStyle?: ItemStyleOption$1;
|
|
1303
|
-
label?: LabelOption$1;
|
|
1304
|
-
emphasis?: {
|
|
1305
|
-
disabled?: boolean;
|
|
1306
|
-
focus?: 'none' | 'self' | 'series';
|
|
1307
|
-
scale?: boolean | number;
|
|
1308
|
-
itemStyle?: ItemStyleOption$1;
|
|
1309
|
-
label?: LabelOption$1;
|
|
1310
|
-
};
|
|
1311
|
-
blur?: {
|
|
1312
|
-
itemStyle?: ItemStyleOption$1;
|
|
1313
|
-
label?: LabelOption$1;
|
|
1314
|
-
};
|
|
1315
|
-
data?: unknown[];
|
|
1316
|
-
large?: boolean;
|
|
1317
|
-
silent?: boolean;
|
|
1318
|
-
z?: number;
|
|
1319
|
-
animation?: boolean;
|
|
1320
|
-
tooltip?: Record<string, any>;
|
|
1321
|
-
encode?: Record<string, unknown>;
|
|
1322
|
-
datasetIndex?: number;
|
|
1323
|
-
[key: string]: unknown;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
interface TreemapNodeOption {
|
|
1327
|
-
name?: string;
|
|
1328
|
-
value?: number | number[];
|
|
1329
|
-
id?: string;
|
|
1330
|
-
children?: TreemapNodeOption[];
|
|
1331
|
-
itemStyle?: ItemStyleOption$1;
|
|
1332
|
-
label?: LabelOption$1;
|
|
1333
|
-
upperLabel?: TreemapUpperLabelOption;
|
|
1334
|
-
color?: string[];
|
|
1335
|
-
colorSaturation?: number[];
|
|
1336
|
-
link?: string;
|
|
1337
|
-
target?: '_blank' | '_self';
|
|
1338
|
-
[key: string]: unknown;
|
|
1339
|
-
}
|
|
1340
|
-
interface TreemapUpperLabelOption extends LabelOption$1 {
|
|
1341
|
-
height?: number;
|
|
1342
|
-
}
|
|
1343
|
-
interface TreemapLevelOption {
|
|
1344
|
-
itemStyle?: ItemStyleOption$1;
|
|
1345
|
-
label?: LabelOption$1;
|
|
1346
|
-
upperLabel?: TreemapUpperLabelOption;
|
|
1347
|
-
color?: string[];
|
|
1348
|
-
colorSaturation?: number[];
|
|
1349
|
-
colorMappingBy?: 'index' | 'value' | 'id';
|
|
1350
|
-
visibleMin?: number;
|
|
1351
|
-
childrenVisibleMin?: number;
|
|
1352
|
-
}
|
|
1353
|
-
interface TreemapSeriesOption extends BoxLayoutOption {
|
|
1354
|
-
type: 'treemap';
|
|
1355
|
-
id?: string;
|
|
1356
|
-
name?: string;
|
|
1357
|
-
data?: TreemapNodeOption[];
|
|
1358
|
-
/** Proporção-alvo dos retângulos (largura/altura); padrão: razão áurea. */
|
|
1359
|
-
squareRatio?: number;
|
|
1360
|
-
/** Até que profundidade desenhar a partir do nó atual (clique desce). */
|
|
1361
|
-
leafDepth?: number | null;
|
|
1362
|
-
drillDownIcon?: string;
|
|
1363
|
-
roam?: boolean | 'scale' | 'move';
|
|
1364
|
-
nodeClick?: false | 'zoomToNode' | 'link';
|
|
1365
|
-
zoomToNodeRatio?: number;
|
|
1366
|
-
visibleMin?: number;
|
|
1367
|
-
childrenVisibleMin?: number | null;
|
|
1368
|
-
label?: LabelOption$1;
|
|
1369
|
-
upperLabel?: TreemapUpperLabelOption;
|
|
1370
|
-
itemStyle?: ItemStyleOption$1;
|
|
1371
|
-
emphasis?: EmphasisOption$1 & {
|
|
1372
|
-
upperLabel?: TreemapUpperLabelOption;
|
|
1373
|
-
};
|
|
1374
|
-
levels?: TreemapLevelOption[];
|
|
1375
|
-
color?: string[];
|
|
1376
|
-
colorAlpha?: number[];
|
|
1377
|
-
colorSaturation?: number[];
|
|
1378
|
-
colorMappingBy?: 'index' | 'value' | 'id';
|
|
1379
|
-
breadcrumb?: BoxLayoutOption & {
|
|
1380
|
-
show?: boolean;
|
|
1381
|
-
height?: number;
|
|
1382
|
-
emptyItemWidth?: number;
|
|
1383
|
-
itemStyle?: ItemStyleOption$1 & {
|
|
1384
|
-
textStyle?: TextStyleOption;
|
|
1385
|
-
};
|
|
1386
|
-
emphasis?: {
|
|
1387
|
-
itemStyle?: ItemStyleOption$1;
|
|
1388
|
-
};
|
|
1389
|
-
};
|
|
1390
|
-
silent?: boolean;
|
|
1391
|
-
animation?: boolean;
|
|
1392
|
-
tooltip?: Record<string, unknown>;
|
|
1393
|
-
[key: string]: unknown;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
type SeriesOption = BarSeriesOption | LineSeriesOption | ScatterSeriesOption | BoxplotSeriesOption | PieSeriesOption | FunnelSeriesOption | GaugeSeriesOption | RadarSeriesOption | HeatmapSeriesOption | TreemapSeriesOption | SankeySeriesOption;
|
|
1397
|
-
type OneOrMany<T> = T | T[];
|
|
1398
|
-
type Easing = 'linear' | 'cubicOut' | 'cubicInOut' | 'quadraticOut' | 'elasticOut' | 'backOut' | 'exponentialOut' | (string & {});
|
|
1399
|
-
interface ChartOption {
|
|
1400
|
-
title?: OneOrMany<TitleOption>;
|
|
1401
|
-
legend?: OneOrMany<LegendOption>;
|
|
1402
|
-
grid?: OneOrMany<GridOption>;
|
|
1403
|
-
xAxis?: OneOrMany<XAXisOption>;
|
|
1404
|
-
yAxis?: OneOrMany<YAXisOption>;
|
|
1405
|
-
polar?: OneOrMany<PolarOption>;
|
|
1406
|
-
angleAxis?: OneOrMany<AngleAxisOption>;
|
|
1407
|
-
radiusAxis?: OneOrMany<RadiusAxisOption>;
|
|
1408
|
-
radar?: OneOrMany<RadarOption>;
|
|
1409
|
-
calendar?: OneOrMany<CalendarOption>;
|
|
1410
|
-
tooltip?: OneOrMany<TooltipOption>;
|
|
1411
|
-
visualMap?: OneOrMany<VisualMapOption>;
|
|
1412
|
-
dataset?: OneOrMany<DatasetOption>;
|
|
1413
|
-
aria?: AriaOption;
|
|
1414
|
-
series?: OneOrMany<SeriesOption>;
|
|
1415
|
-
/** Paleta das séries. */
|
|
1416
|
-
color?: ColorValue[];
|
|
1417
|
-
backgroundColor?: ColorValue;
|
|
1418
|
-
textStyle?: TextStyleOption;
|
|
1419
|
-
animation?: boolean | 'auto';
|
|
1420
|
-
animationThreshold?: number;
|
|
1421
|
-
animationDuration?: number | ((index: number) => number);
|
|
1422
|
-
animationEasing?: Easing;
|
|
1423
|
-
animationDelay?: number | ((index: number) => number);
|
|
1424
|
-
animationDurationUpdate?: number | ((index: number) => number);
|
|
1425
|
-
animationEasingUpdate?: Easing;
|
|
1426
|
-
animationDelayUpdate?: number | ((index: number) => number);
|
|
1427
|
-
stateAnimation?: {
|
|
1428
|
-
duration?: number;
|
|
1429
|
-
easing?: Easing;
|
|
1430
|
-
};
|
|
1431
|
-
useUTC?: boolean;
|
|
1432
|
-
darkMode?: boolean | 'auto';
|
|
1433
|
-
/** Aceitos e ignorados (componentes que o motor não desenha). */
|
|
1434
|
-
toolbox?: Record<string, unknown>;
|
|
1435
|
-
dataZoom?: OneOrMany<Record<string, unknown>>;
|
|
1436
|
-
axisPointer?: Record<string, unknown>;
|
|
1437
|
-
graphic?: unknown;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
/** Tipos de gráfico do pacote (chave de `ChartsMessages.types`). */
|
|
1441
|
-
type ChartKind = 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'heatmap' | 'calendar' | 'scatter' | 'gauge' | 'funnel' | 'radar' | 'treemap' | 'sankey' | 'boxplot' | 'sparkline' | 'bubble' | 'bullet' | 'waterfall' | 'chart';
|
|
1442
|
-
/**
|
|
1443
|
-
* Textos do `@trismegisto/charts`: o que o pacote escreve na tela (alternar tabela, cabeçalhos), o resumo
|
|
1444
|
-
* para leitor de tela e os textos que o motor usa por dentro (nomes de série e descrição automática).
|
|
1445
|
-
* Texto com variável é template nomeado; contagem é `PluralMessage`.
|
|
1446
|
-
*/
|
|
1447
|
-
interface ChartsMessages {
|
|
1448
|
-
readonly meta: {
|
|
1449
|
-
readonly locale: string;
|
|
1450
|
-
};
|
|
1451
|
-
readonly frame: {
|
|
1452
|
-
readonly showTable: string;
|
|
1453
|
-
readonly showChart: string;
|
|
1454
|
-
/** Legenda da tabela de dados: `{label}` é o rótulo acessível do gráfico. */
|
|
1455
|
-
readonly tableCaption: string;
|
|
1456
|
-
readonly noData: string;
|
|
1457
|
-
readonly keyboardHint: string;
|
|
1458
|
-
};
|
|
1459
|
-
readonly columns: {
|
|
1460
|
-
readonly category: string;
|
|
1461
|
-
readonly series: string;
|
|
1462
|
-
readonly value: string;
|
|
1463
|
-
readonly date: string;
|
|
1464
|
-
readonly share: string;
|
|
1465
|
-
readonly row: string;
|
|
1466
|
-
readonly column: string;
|
|
1467
|
-
readonly x: string;
|
|
1468
|
-
readonly y: string;
|
|
1469
|
-
readonly indicator: string;
|
|
1470
|
-
readonly path: string;
|
|
1471
|
-
readonly source: string;
|
|
1472
|
-
readonly target: string;
|
|
1473
|
-
readonly min: string;
|
|
1474
|
-
readonly q1: string;
|
|
1475
|
-
readonly median: string;
|
|
1476
|
-
readonly q3: string;
|
|
1477
|
-
readonly max: string;
|
|
1478
|
-
readonly goal: string;
|
|
1479
|
-
readonly ranges: string;
|
|
1480
|
-
readonly change: string;
|
|
1481
|
-
readonly cumulative: string;
|
|
1482
|
-
readonly size: string;
|
|
1483
|
-
};
|
|
1484
|
-
readonly types: Readonly<Record<ChartKind, string>>;
|
|
1485
|
-
readonly summary: {
|
|
1486
|
-
/** `{type}` com N séries e `{points}` pontos. */
|
|
1487
|
-
readonly series: PluralMessage;
|
|
1488
|
-
readonly range: string;
|
|
1489
|
-
readonly total: string;
|
|
1490
|
-
readonly largest: string;
|
|
1491
|
-
readonly gauge: string;
|
|
1492
|
-
readonly links: PluralMessage;
|
|
1493
|
-
readonly items: PluralMessage;
|
|
1494
|
-
/** Medidor com legenda: `{caption}` é o texto do app abaixo do valor. */
|
|
1495
|
-
readonly gaugeCaption: string;
|
|
1496
|
-
/** `{count}` pontos, do `{first}` ao `{last}`, com `{min}` e `{max}`. */
|
|
1497
|
-
readonly sparkline: PluralMessage;
|
|
1498
|
-
/** Um indicador do gráfico de bala: `{name}`, `{value}` e a meta `{target}`. */
|
|
1499
|
-
readonly bulletItem: string;
|
|
1500
|
-
readonly bulletItemNoTarget: string;
|
|
1501
|
-
/** `{count}` etapas, do valor inicial `{start}` ao final `{end}`. */
|
|
1502
|
-
readonly waterfall: PluralMessage;
|
|
1503
|
-
};
|
|
1504
|
-
/** Nomes das partes do gráfico de cascata (legenda, tooltip e tabela). */
|
|
1505
|
-
readonly waterfall: {
|
|
1506
|
-
readonly increase: string;
|
|
1507
|
-
readonly decrease: string;
|
|
1508
|
-
readonly total: string;
|
|
1509
|
-
};
|
|
1510
|
-
/** Texto que o motor usa na descrição automática (opção `aria` do `hm-chart`). */
|
|
1511
|
-
readonly engine: {
|
|
1512
|
-
readonly legendAll: string;
|
|
1513
|
-
readonly legendInverse: string;
|
|
1514
|
-
readonly withTitle: string;
|
|
1515
|
-
readonly withoutTitle: string;
|
|
1516
|
-
readonly singleWithName: string;
|
|
1517
|
-
readonly singleWithoutName: string;
|
|
1518
|
-
readonly multiplePrefix: string;
|
|
1519
|
-
readonly multipleWithName: string;
|
|
1520
|
-
readonly multipleWithoutName: string;
|
|
1521
|
-
readonly allData: string;
|
|
1522
|
-
readonly partialData: string;
|
|
1523
|
-
readonly dataWithName: string;
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
declare const CHARTS_MESSAGES_PT_BR: ChartsMessages;
|
|
1527
|
-
|
|
1528
|
-
type ChartsMessagesOverride = CatalogOverride<ChartsMessages>;
|
|
1529
|
-
interface ChartsI18nConfig {
|
|
1530
|
-
/** Catálogos extras ou substitutos, por idioma (mesmas chaves de `ChartsMessages`). */
|
|
1531
|
-
readonly catalogs?: Readonly<Record<string, ChartsMessages>>;
|
|
1532
|
-
/** Textos avulsos sobrescritos por cima do catálogo ativo, em qualquer idioma. */
|
|
1533
|
-
readonly override?: ChartsMessagesOverride;
|
|
1534
|
-
}
|
|
1535
|
-
declare const CHARTS_I18N_CONFIG: InjectionToken<ChartsI18nConfig>;
|
|
1536
|
-
/**
|
|
1537
|
-
* Textos e formatação dos gráficos no idioma ativo da lib (`HermesI18nService.locale`): trocar o
|
|
1538
|
-
* idioma com `setLocale` atualiza a lib e os gráficos juntos.
|
|
1539
|
-
*/
|
|
1540
|
-
declare class ChartsI18nService {
|
|
1541
|
-
#private;
|
|
1542
|
-
/** Catálogo ativo, com as sobrescritas do app. */
|
|
1543
|
-
readonly messages: _angular_core.Signal<ChartsMessages>;
|
|
1544
|
-
/** Idioma usado em todo `Intl` (números, datas, plural): o pedido à lib, não só o do catálogo. */
|
|
1545
|
-
readonly locale: _angular_core.Signal<string>;
|
|
1546
|
-
format(template: string, params?: MessageParams): string;
|
|
1547
|
-
plural(message: PluralMessage, count: number, params?: MessageParams): string;
|
|
1548
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartsI18nService, never>;
|
|
1549
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChartsI18nService>;
|
|
1550
|
-
}
|
|
1551
|
-
/** Sobrescreve textos dos gráficos e/ou acrescenta idiomas. O idioma em si vem de `provideHermesI18n`. */
|
|
1552
|
-
declare function provideChartsMessages(config: ChartsI18nConfig): Provider;
|
|
1553
|
-
|
|
1554
|
-
/** Um ponto navegável por teclado: qual item destacar e o texto anunciado ao chegar nele. */
|
|
1555
|
-
interface ChartPoint {
|
|
1556
|
-
readonly seriesIndex: number;
|
|
1557
|
-
readonly dataIndex: number;
|
|
1558
|
-
readonly text: string;
|
|
1559
|
-
}
|
|
1560
|
-
/**
|
|
1561
|
-
* Gráfico genérico: recebe a opção completa do motor e cuida do ciclo de vida (criação, troca de
|
|
1562
|
-
* opção, redimensionamento e descarte), do tema lido dos tokens, do idioma ativo, de
|
|
1563
|
-
* `prefers-reduced-motion` e de `forced-colors`. Renderização sempre em SVG. É a saída de emergência
|
|
1564
|
-
* para o que os gráficos tipados (`hm-bar-chart`...) não cobrem.
|
|
1565
|
-
*/
|
|
1566
|
-
declare class HmChartComponent {
|
|
1567
|
-
#private;
|
|
1568
|
-
/** Opção completa do gráfico (séries, eixos, legenda...). Trocar a referência redesenha. */
|
|
1569
|
-
readonly option: _angular_core.InputSignal<ChartOption>;
|
|
1570
|
-
/** Nome acessível do gráfico (texto do app, já traduzido). */
|
|
1571
|
-
readonly label: _angular_core.InputSignal<string>;
|
|
1572
|
-
/** Pontos navegáveis com as setas. Vazio: o gráfico não entra na ordem de foco. */
|
|
1573
|
-
readonly points: _angular_core.InputSignal<readonly ChartPoint[]>;
|
|
1574
|
-
protected readonly announcement: _angular_core.WritableSignal<string>;
|
|
1575
|
-
constructor();
|
|
1576
|
-
/** Instância do motor (para ações como `dispatchAction`); `null` antes da primeira renderização. */
|
|
1577
|
-
get instance(): ChartInstance | null;
|
|
1578
|
-
protected onKeydown(event: KeyboardEvent): void;
|
|
1579
|
-
/** Sai do modo de navegação: some o destaque e o tooltip. */
|
|
1580
|
-
leave(): void;
|
|
1581
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmChartComponent, never>;
|
|
1582
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmChartComponent, "hm-chart", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "points": { "alias": "points"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
/** Tabela de dados equivalente ao gráfico (a 1ª coluna é o cabeçalho de cada linha). */
|
|
1586
|
-
interface ChartTable {
|
|
1587
|
-
readonly columns: readonly string[];
|
|
1588
|
-
/** Alinhamento por coluna (`end` para números); padrão `start`. */
|
|
1589
|
-
readonly align?: readonly ('start' | 'end')[];
|
|
1590
|
-
readonly rows: readonly {
|
|
1591
|
-
readonly header: string;
|
|
1592
|
-
readonly cells: readonly string[];
|
|
1593
|
-
}[];
|
|
1594
|
-
}
|
|
1595
|
-
/** Tudo que a moldura precisa para desenhar um gráfico tipado e as alternativas acessíveis. */
|
|
1596
|
-
interface ChartView {
|
|
1597
|
-
readonly option: ChartOption;
|
|
1598
|
-
readonly summary: string;
|
|
1599
|
-
readonly table: ChartTable;
|
|
1600
|
-
readonly points: readonly ChartPoint[];
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
type NumberFormatter = (value: number | null | undefined) => string;
|
|
1604
|
-
|
|
1605
|
-
/** O que cada gráfico tipado recebe para montar opção, resumo e tabela. */
|
|
1606
|
-
interface ChartContext {
|
|
1607
|
-
readonly m: ChartsMessages;
|
|
1608
|
-
readonly locale: string;
|
|
1609
|
-
readonly num: NumberFormatter;
|
|
1610
|
-
readonly legend: boolean;
|
|
1611
|
-
readonly tooltip: boolean;
|
|
1612
|
-
readonly i18n: ChartsI18nService;
|
|
1613
|
-
}
|
|
1614
|
-
/** Entradas comuns a todos os gráficos tipados. */
|
|
1615
|
-
declare abstract class HmChartBase {
|
|
1616
|
-
/** Nome acessível do gráfico (obrigatório); também vira a legenda da tabela de dados. */
|
|
1617
|
-
readonly label: _angular_core.InputSignal<string>;
|
|
1618
|
-
/** Frase extra do app somada ao resumo automático (contexto, conclusão, fonte dos dados). */
|
|
1619
|
-
readonly description: _angular_core.InputSignal<string>;
|
|
1620
|
-
/** Mostra a legenda (quando o gráfico tem mais de uma série/categoria). */
|
|
1621
|
-
readonly legend: _angular_core.InputSignal<boolean>;
|
|
1622
|
-
/** Mostra o tooltip ao passar o ponteiro ou navegar com as setas. */
|
|
1623
|
-
readonly tooltip: _angular_core.InputSignal<boolean>;
|
|
1624
|
-
/** Altura do gráfico (qualquer comprimento CSS); padrão: oito alturas de controle. */
|
|
1625
|
-
readonly height: _angular_core.InputSignal<string>;
|
|
1626
|
-
/** Formato dos valores (`Intl.NumberFormat`, no idioma ativo): moeda, porcentagem, compacto... */
|
|
1627
|
-
readonly numberFormat: _angular_core.InputSignal<Intl.NumberFormatOptions | null>;
|
|
1628
|
-
/** Mostra a tabela de dados no lugar do gráfico. */
|
|
1629
|
-
readonly showTable: _angular_core.ModelSignal<boolean>;
|
|
1630
|
-
protected readonly i18n: ChartsI18nService;
|
|
1631
|
-
protected readonly context: _angular_core.Signal<ChartContext>;
|
|
1632
|
-
readonly view: _angular_core.Signal<ChartView>;
|
|
1633
|
-
protected abstract build(ctx: ChartContext): ChartView;
|
|
1634
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmChartBase, never>;
|
|
1635
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HmChartBase, never, never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "legend": { "alias": "legend"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "numberFormat": { "alias": "numberFormat"; "required": false; "isSignal": true; }; "showTable": { "alias": "showTable"; "required": false; "isSignal": true; }; }, { "showTable": "showTableChange"; }, never, never, true, never>;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
/** Série de um gráfico de categorias (barras, linhas): um valor por categoria, `null` para lacuna. */
|
|
1639
|
-
interface ChartSeries {
|
|
1640
|
-
readonly name: string;
|
|
1641
|
-
readonly data: readonly (number | null)[];
|
|
1642
|
-
}
|
|
1643
|
-
/** Item nomeado com valor (fatia, etapa de funil). */
|
|
1644
|
-
interface ChartDatum {
|
|
1645
|
-
readonly name: string;
|
|
1646
|
-
readonly value: number;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
type BarChartOrientation = 'vertical' | 'horizontal';
|
|
1650
|
-
/** Barras por categoria: uma ou várias séries, agrupadas (padrão) ou empilhadas, em pé ou deitadas. */
|
|
1651
|
-
declare class HmBarChartComponent extends HmChartBase {
|
|
1652
|
-
/** Rótulos das categorias (eixo de categorias), na ordem dos valores de cada série. */
|
|
1653
|
-
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
1654
|
-
readonly series: _angular_core.InputSignal<readonly ChartSeries[]>;
|
|
1655
|
-
/** `vertical`: barras em pé; `horizontal`: deitadas (rótulos longos cabem melhor). */
|
|
1656
|
-
readonly orientation: _angular_core.InputSignal<BarChartOrientation>;
|
|
1657
|
-
/** Empilha as séries (soma por categoria) em vez de agrupá-las lado a lado. */
|
|
1658
|
-
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
1659
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1660
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmBarChartComponent, never>;
|
|
1661
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmBarChartComponent, "hm-bar-chart", never, { "categories": { "alias": "categories"; "required": true; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
/** Linhas por categoria (tempo, etapas ordenadas); com `area`, preenche abaixo da linha. */
|
|
1665
|
-
declare class HmLineChartComponent extends HmChartBase {
|
|
1666
|
-
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
1667
|
-
readonly series: _angular_core.InputSignal<readonly ChartSeries[]>;
|
|
1668
|
-
/** Preenche a área sob cada linha (gráfico de área). */
|
|
1669
|
-
readonly area: _angular_core.InputSignal<boolean>;
|
|
1670
|
-
/** Empilha as séries (útil com `area` para mostrar a composição do total). */
|
|
1671
|
-
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
1672
|
-
/** Suaviza a linha entre os pontos. */
|
|
1673
|
-
readonly smooth: _angular_core.InputSignal<boolean>;
|
|
1674
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1675
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmLineChartComponent, never>;
|
|
1676
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmLineChartComponent, "hm-line-chart", never, { "categories": { "alias": "categories"; "required": true; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; "area": { "alias": "area"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "smooth": { "alias": "smooth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
/** Partes de um todo; com `donut`, rosca (o centro fica livre). Prefira poucas fatias (até ~6). */
|
|
1680
|
-
declare class HmPieChartComponent extends HmChartBase {
|
|
1681
|
-
readonly data: _angular_core.InputSignal<readonly ChartDatum[]>;
|
|
1682
|
-
/** Rosca em vez de pizza. */
|
|
1683
|
-
readonly donut: _angular_core.InputSignal<boolean>;
|
|
1684
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1685
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmPieChartComponent, never>;
|
|
1686
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmPieChartComponent, "hm-pie-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "donut": { "alias": "donut"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
/** Uma célula do mapa de calor: coluna (`x`), linha (`y`) e valor. */
|
|
1690
|
-
interface HeatmapCell {
|
|
1691
|
-
readonly x: string;
|
|
1692
|
-
readonly y: string;
|
|
1693
|
-
readonly value: number | null;
|
|
1694
|
-
}
|
|
1695
|
-
/**
|
|
1696
|
-
* Mapa de calor cartesiano: intensidade por cruzamento de duas categorias (dia × hora, região ×
|
|
1697
|
-
* produto). A escala de cor é a sequencial dos tokens; `legend` liga a régua de valores.
|
|
1698
|
-
*/
|
|
1699
|
-
declare class HmHeatmapChartComponent extends HmChartBase {
|
|
1700
|
-
readonly data: _angular_core.InputSignal<readonly HeatmapCell[]>;
|
|
1701
|
-
/** Ordem das colunas; padrão: a ordem em que aparecem em `data`. */
|
|
1702
|
-
readonly xCategories: _angular_core.InputSignal<readonly string[] | null>;
|
|
1703
|
-
/** Ordem das linhas; padrão: a ordem em que aparecem em `data`. */
|
|
1704
|
-
readonly yCategories: _angular_core.InputSignal<readonly string[] | null>;
|
|
1705
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1706
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmHeatmapChartComponent, never>;
|
|
1707
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmHeatmapChartComponent, "hm-heatmap-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "xCategories": { "alias": "xCategories"; "required": false; "isSignal": true; }; "yCategories": { "alias": "yCategories"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
/** Valor de um dia. `date`: `Date`, timestamp ou `AAAA-MM-DD`. */
|
|
1711
|
-
interface CalendarDatum {
|
|
1712
|
-
readonly date: Date | string | number;
|
|
1713
|
-
readonly value: number;
|
|
1714
|
-
}
|
|
1715
|
-
/**
|
|
1716
|
-
* Mapa de calor de calendário: um quadrado por dia, semanas em colunas (atividade diária, volume de
|
|
1717
|
-
* pedidos). Nomes de mês e dia da semana seguem o idioma ativo.
|
|
1718
|
-
*/
|
|
1719
|
-
declare class HmCalendarHeatmapComponent extends HmChartBase {
|
|
1720
|
-
readonly data: _angular_core.InputSignal<readonly CalendarDatum[]>;
|
|
1721
|
-
/**
|
|
1722
|
-
* Período desenhado: ano (`'2026'`), mês (`'2026-03'`) ou `[início, fim]`. Padrão: do primeiro ao
|
|
1723
|
-
* último dia de `data`.
|
|
1724
|
-
*/
|
|
1725
|
-
readonly range: _angular_core.InputSignal<string | readonly [string | Date, string | Date] | null>;
|
|
1726
|
-
/** Formato da data no tooltip e na tabela (`Intl.DateTimeFormat`). */
|
|
1727
|
-
readonly dateFormat: _angular_core.InputSignal<Intl.DateTimeFormatOptions | null>;
|
|
1728
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1729
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmCalendarHeatmapComponent, never>;
|
|
1730
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmCalendarHeatmapComponent, "hm-calendar-heatmap", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "range": { "alias": "range"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
interface ScatterPoint {
|
|
1734
|
-
readonly x: number;
|
|
1735
|
-
readonly y: number;
|
|
1736
|
-
/** Nome do ponto (aparece no tooltip e na tabela). */
|
|
1737
|
-
readonly name?: string;
|
|
1738
|
-
/**
|
|
1739
|
-
* Terceira medida (gráfico de bolhas): a ÁREA da bolha é proporcional a ela. Basta um ponto com
|
|
1740
|
-
* `size` para o gráfico virar de bolhas; ponto sem `size` fica com o menor tamanho.
|
|
1741
|
-
*/
|
|
1742
|
-
readonly size?: number;
|
|
1743
|
-
}
|
|
1744
|
-
interface ScatterSeries {
|
|
1745
|
-
readonly name: string;
|
|
1746
|
-
readonly data: readonly ScatterPoint[];
|
|
1747
|
-
}
|
|
1748
|
-
/**
|
|
1749
|
-
* Relação entre duas medidas (preço × volume, prazo × satisfação), uma ou várias séries. Com `size`
|
|
1750
|
-
* nos pontos, vira gráfico de bolhas (a área de cada bolha mostra uma terceira medida).
|
|
1751
|
-
*/
|
|
1752
|
-
declare class HmScatterChartComponent extends HmChartBase {
|
|
1753
|
-
readonly series: _angular_core.InputSignal<readonly ScatterSeries[]>;
|
|
1754
|
-
/** Nome do eixo horizontal (texto do app). */
|
|
1755
|
-
readonly xLabel: _angular_core.InputSignal<string>;
|
|
1756
|
-
/** Nome do eixo vertical (texto do app). */
|
|
1757
|
-
readonly yLabel: _angular_core.InputSignal<string>;
|
|
1758
|
-
/** Nome da medida do tamanho das bolhas (texto do app); padrão "Tamanho". */
|
|
1759
|
-
readonly sizeLabel: _angular_core.InputSignal<string>;
|
|
1760
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1761
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmScatterChartComponent, never>;
|
|
1762
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmScatterChartComponent, "hm-scatter-chart", never, { "series": { "alias": "series"; "required": true; "isSignal": true; }; "xLabel": { "alias": "xLabel"; "required": false; "isSignal": true; }; "yLabel": { "alias": "yLabel"; "required": false; "isSignal": true; }; "sizeLabel": { "alias": "sizeLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
/**
|
|
1766
|
-
* Um valor numa escala (meta atingida, ocupação, SLA). Para vários indicadores, vários medidores.
|
|
1767
|
-
* Arco de 240° com a escala por fora, agulha e valor no centro; ao aparecer e a cada troca de valor,
|
|
1768
|
-
* o arco preenche animado do valor anterior até o novo, com a agulha e o número acompanhando.
|
|
1769
|
-
*/
|
|
1770
|
-
declare class HmGaugeChartComponent extends HmChartBase {
|
|
1771
|
-
#private;
|
|
1772
|
-
readonly value: _angular_core.InputSignal<number>;
|
|
1773
|
-
readonly min: _angular_core.InputSignal<number>;
|
|
1774
|
-
readonly max: _angular_core.InputSignal<number>;
|
|
1775
|
-
/**
|
|
1776
|
-
* Preenche o arco animado ao aparecer e a cada troca de valor (do valor anterior até o novo).
|
|
1777
|
-
* Com `prefers-reduced-motion`, nunca anima. O resumo e a tabela já trazem o valor final.
|
|
1778
|
-
*/
|
|
1779
|
-
readonly animated: _angular_core.InputSignal<boolean>;
|
|
1780
|
-
/** Agulha que gira junto com a ponta do arco. Sem ela, o valor vai para o centro do arco. */
|
|
1781
|
-
readonly needle: _angular_core.InputSignal<boolean>;
|
|
1782
|
-
/** Marcas da escala por fora do arco, com rótulos. Desligado, só o mínimo e o máximo aparecem. */
|
|
1783
|
-
readonly ticks: _angular_core.InputSignal<boolean>;
|
|
1784
|
-
/** Intervalo entre as marcas, na unidade do valor; padrão (ou intervalo que não divide a escala): um décimo. */
|
|
1785
|
-
readonly tickStep: _angular_core.InputSignal<number | null>;
|
|
1786
|
-
/** Legenda curta abaixo do valor (ex.: "das PAs conectadas"); entra também no resumo acessível. */
|
|
1787
|
-
readonly caption: _angular_core.InputSignal<string>;
|
|
1788
|
-
/** Formato do valor no centro, quando difere do `numberFormat` (que vale para a escala e a tabela). */
|
|
1789
|
-
readonly valueFormat: _angular_core.InputSignal<Intl.NumberFormatOptions | null>;
|
|
1790
|
-
constructor();
|
|
1791
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1792
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmGaugeChartComponent, never>;
|
|
1793
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmGaugeChartComponent, "hm-gauge-chart", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "needle": { "alias": "needle"; "required": false; "isSignal": true; }; "ticks": { "alias": "ticks"; "required": false; "isSignal": true; }; "tickStep": { "alias": "tickStep"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
/**
|
|
1797
|
-
* Etapas sucessivas de um processo (visitas → cadastros → compras). A ordem de `data` é a ordem das
|
|
1798
|
-
* etapas; a coluna de participação da tabela é a conversão em relação à primeira etapa.
|
|
1799
|
-
*/
|
|
1800
|
-
declare class HmFunnelChartComponent extends HmChartBase {
|
|
1801
|
-
readonly data: _angular_core.InputSignal<readonly ChartDatum[]>;
|
|
1802
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1803
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmFunnelChartComponent, never>;
|
|
1804
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmFunnelChartComponent, "hm-funnel-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
interface RadarIndicator {
|
|
1808
|
-
readonly name: string;
|
|
1809
|
-
/** Teto do eixo; padrão: o maior valor entre as séries. */
|
|
1810
|
-
readonly max?: number;
|
|
1811
|
-
}
|
|
1812
|
-
interface RadarSeries {
|
|
1813
|
-
readonly name: string;
|
|
1814
|
-
/** Um valor por indicador, na mesma ordem de `indicators`. */
|
|
1815
|
-
readonly values: readonly number[];
|
|
1816
|
-
}
|
|
1817
|
-
/** Perfis comparados em vários critérios (avaliação de fornecedores, competências). Até ~8 eixos. */
|
|
1818
|
-
declare class HmRadarChartComponent extends HmChartBase {
|
|
1819
|
-
readonly indicators: _angular_core.InputSignal<readonly RadarIndicator[]>;
|
|
1820
|
-
readonly series: _angular_core.InputSignal<readonly RadarSeries[]>;
|
|
1821
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1822
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmRadarChartComponent, never>;
|
|
1823
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmRadarChartComponent, "hm-radar-chart", never, { "indicators": { "alias": "indicators"; "required": true; "isSignal": true; }; "series": { "alias": "series"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
/** Nó da hierarquia: folha com `value`, ou grupo com `children` (valor = soma dos filhos). */
|
|
1827
|
-
interface TreemapNode {
|
|
1828
|
-
readonly name: string;
|
|
1829
|
-
readonly value?: number;
|
|
1830
|
-
readonly children?: readonly TreemapNode[];
|
|
1831
|
-
}
|
|
1832
|
-
/** Composição hierárquica por área (orçamento por área → projeto, vendas por região → loja). */
|
|
1833
|
-
declare class HmTreemapChartComponent extends HmChartBase {
|
|
1834
|
-
readonly data: _angular_core.InputSignal<readonly TreemapNode[]>;
|
|
1835
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1836
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmTreemapChartComponent, never>;
|
|
1837
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmTreemapChartComponent, "hm-treemap-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
/** Fluxo de `source` para `target` com intensidade `value`. */
|
|
1841
|
-
interface SankeyLink {
|
|
1842
|
-
readonly source: string;
|
|
1843
|
-
readonly target: string;
|
|
1844
|
-
readonly value: number;
|
|
1845
|
-
}
|
|
1846
|
-
/** Fluxos entre etapas ou origens (canal → plano → status). Os nós saem dos `links`; sem ciclos. */
|
|
1847
|
-
declare class HmSankeyChartComponent extends HmChartBase {
|
|
1848
|
-
readonly links: _angular_core.InputSignal<readonly SankeyLink[]>;
|
|
1849
|
-
/** Ordem dos nós; padrão: a ordem em que aparecem nos links. */
|
|
1850
|
-
readonly nodes: _angular_core.InputSignal<readonly string[] | null>;
|
|
1851
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1852
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmSankeyChartComponent, never>;
|
|
1853
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmSankeyChartComponent, "hm-sankey-chart", never, { "links": { "alias": "links"; "required": true; "isSignal": true; }; "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
/** Resumo de cinco números de uma amostra (o que o diagrama de caixa desenha). */
|
|
1857
|
-
interface FiveNumberSummary {
|
|
1858
|
-
readonly min: number;
|
|
1859
|
-
readonly q1: number;
|
|
1860
|
-
readonly median: number;
|
|
1861
|
-
readonly q3: number;
|
|
1862
|
-
readonly max: number;
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
/** Uma caixa: a amostra crua (`values`, o componente calcula os quartis) ou o resumo já calculado. */
|
|
1866
|
-
interface BoxplotGroup {
|
|
1867
|
-
readonly name: string;
|
|
1868
|
-
readonly values?: readonly number[];
|
|
1869
|
-
readonly summary?: FiveNumberSummary;
|
|
1870
|
-
}
|
|
1871
|
-
/** Distribuição de uma medida por grupo (tempo de atendimento por equipe, ticket por região). */
|
|
1872
|
-
declare class HmBoxplotChartComponent extends HmChartBase {
|
|
1873
|
-
readonly data: _angular_core.InputSignal<readonly BoxplotGroup[]>;
|
|
1874
|
-
/** `vertical`: caixas em pé; `horizontal`: deitadas. */
|
|
1875
|
-
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
1876
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1877
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmBoxplotChartComponent, never>;
|
|
1878
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmBoxplotChartComponent, "hm-boxplot-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* Minigráfico: a tendência de uma série em pouco espaço, sem eixos nem legenda (dentro de um card de
|
|
1883
|
-
* indicador, numa linha de tabela). O resumo (primeiro, último, mínimo e máximo) e a tabela de dados
|
|
1884
|
-
* ficam na árvore de acessibilidade; sem o botão "Ver como tabela", para caber no `[footer]` do
|
|
1885
|
-
* `hm-stat-card`.
|
|
1886
|
-
*/
|
|
1887
|
-
declare class HmSparklineChartComponent extends HmChartBase {
|
|
1888
|
-
/** Valores na ordem (o mais antigo primeiro); `null` é lacuna. */
|
|
1889
|
-
readonly data: _angular_core.InputSignal<readonly (number | null)[]>;
|
|
1890
|
-
/** Rótulo de cada valor (datas, meses) para a tabela e o tooltip; padrão: a posição (1, 2, 3...). */
|
|
1891
|
-
readonly categories: _angular_core.InputSignal<readonly string[]>;
|
|
1892
|
-
/** Preenche a área sob a linha. */
|
|
1893
|
-
readonly area: _angular_core.InputSignal<boolean>;
|
|
1894
|
-
/** Destaca o último ponto (o valor atual). */
|
|
1895
|
-
readonly showLast: _angular_core.InputSignal<boolean>;
|
|
1896
|
-
/** Barras em vez de linha (valores discretos: pedidos por dia). */
|
|
1897
|
-
readonly bars: _angular_core.InputSignal<boolean>;
|
|
1898
|
-
/**
|
|
1899
|
-
* Entra na ordem de foco e mostra o tooltip (setas percorrem os pontos). Desligado (padrão), o
|
|
1900
|
-
* minigráfico é só uma imagem com resumo: um card de indicador não ganha uma parada de Tab a mais.
|
|
1901
|
-
*/
|
|
1902
|
-
readonly interactive: _angular_core.InputSignal<boolean>;
|
|
1903
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1904
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmSparklineChartComponent, never>;
|
|
1905
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmSparklineChartComponent, "hm-sparkline-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "area": { "alias": "area"; "required": false; "isSignal": true; }; "showLast": { "alias": "showLast"; "required": false; "isSignal": true; }; "bars": { "alias": "bars"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
/** Um indicador do gráfico de bala: valor, meta e as faixas qualitativas (ruim, ok, bom...). */
|
|
1909
|
-
interface BulletItem {
|
|
1910
|
-
readonly name: string;
|
|
1911
|
-
readonly value: number;
|
|
1912
|
-
/** Meta (marca vertical). */
|
|
1913
|
-
readonly target?: number;
|
|
1914
|
-
/** Limites superiores das faixas, em ordem crescente (ex.: `[50, 80, 100]`); a 1ª começa no zero. */
|
|
1915
|
-
readonly ranges?: readonly number[];
|
|
1916
|
-
}
|
|
1917
|
-
/**
|
|
1918
|
-
* Gráfico de bala: cada linha é um indicador com o valor (barra fina na cor da série), a meta (marca
|
|
1919
|
-
* vertical) e as faixas qualitativas ao fundo. Substitui um painel de medidores lado a lado em pouco
|
|
1920
|
-
* espaço, com todos na mesma escala.
|
|
1921
|
-
*/
|
|
1922
|
-
declare class HmBulletChartComponent extends HmChartBase {
|
|
1923
|
-
#private;
|
|
1924
|
-
readonly items: _angular_core.InputSignal<readonly BulletItem[]>;
|
|
1925
|
-
/** Fim da escala (comum a todos); padrão: um valor redondo que cobre valores, metas e faixas. */
|
|
1926
|
-
readonly max: _angular_core.InputSignal<number | null>;
|
|
1927
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1928
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmBulletChartComponent, never>;
|
|
1929
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmBulletChartComponent, "hm-bullet-chart", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
/** Uma etapa da cascata: a variação (`value`) ou, com `total`, o acumulado até ali. */
|
|
1933
|
-
interface WaterfallStep {
|
|
1934
|
-
readonly name: string;
|
|
1935
|
-
/** Variação da etapa (positiva soma, negativa subtrai). Ignorado quando `total`. */
|
|
1936
|
-
readonly value?: number;
|
|
1937
|
-
/** Barra de total/subtotal: mostra o acumulado até esta etapa, a partir do zero. */
|
|
1938
|
-
readonly total?: boolean;
|
|
1939
|
-
}
|
|
1940
|
-
type Kind = 'increase' | 'decrease' | 'total';
|
|
1941
|
-
/** Uma etapa já calculada: de onde a barra sai, aonde chega e o acumulado depois dela. */
|
|
1942
|
-
interface WaterfallBar {
|
|
1943
|
-
readonly kind: Kind;
|
|
1944
|
-
readonly from: number;
|
|
1945
|
-
readonly to: number;
|
|
1946
|
-
readonly change: number;
|
|
1947
|
-
readonly cumulative: number;
|
|
1948
|
-
}
|
|
1949
|
-
/** Calcula as barras da cascata (sem framework: testável e portável). */
|
|
1950
|
-
declare function waterfallBars(steps: readonly WaterfallStep[]): WaterfallBar[];
|
|
1951
|
-
/**
|
|
1952
|
-
* Gráfico de cascata: como um valor inicial chega ao final, etapa por etapa (receita → custos →
|
|
1953
|
-
* lucro). Aumentos e reduções flutuam a partir do acumulado; totais partem do zero. Cores da escala
|
|
1954
|
-
* divergente dos tokens (um polo para aumento, outro para redução, o ponto neutro para totais).
|
|
1955
|
-
*/
|
|
1956
|
-
declare class HmWaterfallChartComponent extends HmChartBase {
|
|
1957
|
-
#private;
|
|
1958
|
-
readonly steps: _angular_core.InputSignal<readonly WaterfallStep[]>;
|
|
1959
|
-
protected build(ctx: ChartContext): ChartView;
|
|
1960
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HmWaterfallChartComponent, never>;
|
|
1961
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HmWaterfallChartComponent, "hm-waterfall-chart", never, { "steps": { "alias": "steps"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1964
|
-
declare const CHARTS_MESSAGES_EN: ChartsMessages;
|
|
1965
|
-
|
|
1966
|
-
declare const CHARTS_MESSAGES_ES: ChartsMessages;
|
|
1967
|
-
|
|
1968
|
-
export { CHARTS_I18N_CONFIG, CHARTS_MESSAGES_EN, CHARTS_MESSAGES_ES, CHARTS_MESSAGES_PT_BR, ChartsI18nService, HmBarChartComponent, HmBoxplotChartComponent, HmBulletChartComponent, HmCalendarHeatmapComponent, HmChartBase, HmChartComponent, HmFunnelChartComponent, HmGaugeChartComponent, HmHeatmapChartComponent, HmLineChartComponent, HmPieChartComponent, HmRadarChartComponent, HmSankeyChartComponent, HmScatterChartComponent, HmSparklineChartComponent, HmTreemapChartComponent, HmWaterfallChartComponent, provideChartsMessages, waterfallBars };
|
|
1969
|
-
export type { BarChartOrientation, BoxplotGroup, BulletItem, CalendarDatum, ChartDatum, ChartKind, ChartPoint, ChartSeries, ChartsI18nConfig, ChartsMessages, ChartsMessagesOverride, FiveNumberSummary, HeatmapCell, BarSeriesOption as HmBarSeriesOption, BoxplotSeriesOption as HmBoxplotSeriesOption, ChartInstance as HmChartInstance, ChartOption as HmChartOption, SeriesOption as HmChartSeriesOption, FunnelSeriesOption as HmFunnelSeriesOption, GaugeSeriesOption as HmGaugeSeriesOption, HeatmapSeriesOption as HmHeatmapSeriesOption, LineSeriesOption as HmLineSeriesOption, PieSeriesOption as HmPieSeriesOption, RadarSeriesOption as HmRadarSeriesOption, SankeySeriesOption as HmSankeySeriesOption, ScatterSeriesOption as HmScatterSeriesOption, TreemapSeriesOption as HmTreemapSeriesOption, RadarIndicator, RadarSeries, SankeyLink, ScatterPoint, ScatterSeries, TreemapNode, WaterfallBar, WaterfallStep };
|
|
1970
|
-
//# sourceMappingURL=trismegisto-charts.d.ts.map
|