@xplortech/apollo-data 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apollo-data/apollo-data.esm.js +1 -1
- package/dist/apollo-data/p-2nuV5Vny.js +1 -0
- package/dist/apollo-data/p-4ac3c97c.entry.js +1 -0
- package/dist/apollo-data/p-BWkrM8dc.js +11 -0
- package/dist/apollo-data/p-b7471c12.entry.js +1 -0
- package/dist/apollo-data/p-e518baac.entry.js +1 -0
- package/dist/cjs/apollo-data-bar-chart.cjs.entry.js +314 -0
- package/dist/cjs/{apollo-data-bar-chart_2.cjs.entry.js → apollo-data-base-CxVQ-WVP.js} +1 -715
- package/dist/cjs/apollo-data-donut-chart.cjs.entry.js +408 -0
- package/dist/cjs/apollo-data-line-chart_2.cjs.entry.js +534 -0
- package/dist/cjs/apollo-data.cjs.js +1 -1
- package/dist/cjs/constants-B3weDEpc.js +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/apollo-data-line/apollo-data-line.js +346 -0
- package/dist/collection/components/apollo-data-scatter/apollo-data-scatter.js +329 -0
- package/dist/collection/examples/apollo-data-line.examples.js +91 -0
- package/dist/collection/examples/apollo-data-scatter.examples.js +94 -0
- package/dist/collection/examples/index.js +1 -0
- package/dist/components/apollo-data-bar-chart.js +1 -1
- package/dist/components/apollo-data-line-chart.d.ts +11 -0
- package/dist/components/apollo-data-line-chart.js +1 -0
- package/dist/components/apollo-data-scatter-chart.d.ts +11 -0
- package/dist/components/apollo-data-scatter-chart.js +1 -0
- package/dist/components/p-2nuV5Vny.js +1 -0
- package/dist/esm/apollo-data-bar-chart.entry.js +312 -0
- package/dist/esm/{apollo-data-bar-chart_2.entry.js → apollo-data-base-BWkrM8dc.js} +1 -714
- package/dist/esm/apollo-data-donut-chart.entry.js +406 -0
- package/dist/esm/apollo-data-line-chart_2.entry.js +531 -0
- package/dist/esm/apollo-data.js +1 -1
- package/dist/esm/constants-2nuV5Vny.js +3 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/apollo-data-line/apollo-data-line.d.ts +244 -0
- package/dist/types/components/apollo-data-scatter/apollo-data-scatter.d.ts +329 -0
- package/dist/types/components.d.ts +86 -0
- package/dist/types/examples/apollo-data-line.examples.d.ts +12 -0
- package/dist/types/examples/apollo-data-scatter.examples.d.ts +11 -0
- package/dist/types/examples/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/examples/apollo-data-line.examples.ts +103 -0
- package/src/examples/apollo-data-scatter.examples.ts +109 -0
- package/src/examples/index.ts +2 -1
- package/dist/apollo-data/p-e6584598.entry.js +0 -11
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import { ApolloBase } from '../../apollo-data-base';
|
|
3
|
+
export interface LineDataItem {
|
|
4
|
+
category: string;
|
|
5
|
+
xValue: number;
|
|
6
|
+
yValue: number;
|
|
7
|
+
xLabel?: string;
|
|
8
|
+
yLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export type LinePointStyle = 'circle' | 'square' | 'diamond' | 'cross' | 'triangle' | 'triangle-up' | 'triangle-down' | 'triangle-right' | 'triangle-left';
|
|
11
|
+
/** Stroke dash pattern for the lines: 'solid' | 'dashed' | 'dotted'. */
|
|
12
|
+
export type LineLineStyle = 'solid' | 'dashed' | 'dotted';
|
|
13
|
+
export interface LineSpec {
|
|
14
|
+
colorSet?: string[];
|
|
15
|
+
tooltipPrefix?: string;
|
|
16
|
+
currencySymbol?: string;
|
|
17
|
+
yAxisTitle?: string;
|
|
18
|
+
xAxisTitle?: string;
|
|
19
|
+
/** Shape of the data points. Defaults to 'circle'. */
|
|
20
|
+
pointStyle?: LinePointStyle;
|
|
21
|
+
/** Stroke style of the lines. Defaults to 'solid'. */
|
|
22
|
+
lineStyle?: LineLineStyle;
|
|
23
|
+
}
|
|
24
|
+
export declare class ApolloDataLineChart extends ApolloBase<LineDataItem[], LineSpec> implements ComponentInterface {
|
|
25
|
+
el: HTMLElement;
|
|
26
|
+
adData: string | LineDataItem[];
|
|
27
|
+
adSpec: string | LineSpec;
|
|
28
|
+
private static tooltipStylesInjected;
|
|
29
|
+
componentDidLoad(): void;
|
|
30
|
+
componentDidRender(): Promise<void>;
|
|
31
|
+
private injectTooltipStyles;
|
|
32
|
+
protected getViewData(data: LineDataItem[], spec?: LineSpec): Promise<{
|
|
33
|
+
$schema: string;
|
|
34
|
+
config: {
|
|
35
|
+
text: {
|
|
36
|
+
fill: string;
|
|
37
|
+
font: string;
|
|
38
|
+
labelFontSize: number;
|
|
39
|
+
labelFontWeight: number;
|
|
40
|
+
};
|
|
41
|
+
axis: {
|
|
42
|
+
labelColor: string;
|
|
43
|
+
titleColor: string;
|
|
44
|
+
labelFont: string;
|
|
45
|
+
titleFont: string;
|
|
46
|
+
titleFontWeight: number;
|
|
47
|
+
};
|
|
48
|
+
legend: {
|
|
49
|
+
labelColor: string;
|
|
50
|
+
titleColor: string;
|
|
51
|
+
labelFont: string;
|
|
52
|
+
titleFont: string;
|
|
53
|
+
labelFontSize: number;
|
|
54
|
+
labelLimit: number;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
color: string;
|
|
58
|
+
font: string;
|
|
59
|
+
labelFontSize: number;
|
|
60
|
+
labelFontWeight: number;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
height: number;
|
|
64
|
+
autosize: {
|
|
65
|
+
type: string;
|
|
66
|
+
contains: string;
|
|
67
|
+
resize: boolean;
|
|
68
|
+
};
|
|
69
|
+
signals: {
|
|
70
|
+
name: string;
|
|
71
|
+
update: string;
|
|
72
|
+
}[];
|
|
73
|
+
width: {
|
|
74
|
+
signal: string;
|
|
75
|
+
};
|
|
76
|
+
data: any[];
|
|
77
|
+
scales: ({
|
|
78
|
+
name: string;
|
|
79
|
+
type: string;
|
|
80
|
+
domain: number[];
|
|
81
|
+
range: string;
|
|
82
|
+
padding: number;
|
|
83
|
+
nice?: undefined;
|
|
84
|
+
zero?: undefined;
|
|
85
|
+
} | {
|
|
86
|
+
name: string;
|
|
87
|
+
type: string;
|
|
88
|
+
domain: {
|
|
89
|
+
data: string;
|
|
90
|
+
field: string;
|
|
91
|
+
};
|
|
92
|
+
range: {
|
|
93
|
+
data: string;
|
|
94
|
+
field: string;
|
|
95
|
+
};
|
|
96
|
+
padding?: undefined;
|
|
97
|
+
nice?: undefined;
|
|
98
|
+
zero?: undefined;
|
|
99
|
+
} | {
|
|
100
|
+
name: string;
|
|
101
|
+
type: string;
|
|
102
|
+
domain: {
|
|
103
|
+
data: string;
|
|
104
|
+
field: string;
|
|
105
|
+
};
|
|
106
|
+
nice: boolean;
|
|
107
|
+
zero: boolean;
|
|
108
|
+
range: string;
|
|
109
|
+
padding?: undefined;
|
|
110
|
+
} | {
|
|
111
|
+
name: string;
|
|
112
|
+
type: string;
|
|
113
|
+
domain: string[];
|
|
114
|
+
range: string[];
|
|
115
|
+
padding?: undefined;
|
|
116
|
+
nice?: undefined;
|
|
117
|
+
zero?: undefined;
|
|
118
|
+
})[];
|
|
119
|
+
axes: ({
|
|
120
|
+
orient: string;
|
|
121
|
+
scale: string;
|
|
122
|
+
title: string;
|
|
123
|
+
labelPadding: number;
|
|
124
|
+
titlePadding: number;
|
|
125
|
+
labelAngle: number;
|
|
126
|
+
labelAlign: string;
|
|
127
|
+
labelBaseline: string;
|
|
128
|
+
tickSize: number;
|
|
129
|
+
labelFontSize: number;
|
|
130
|
+
titleFontSize: number;
|
|
131
|
+
ticks: boolean;
|
|
132
|
+
domain: boolean;
|
|
133
|
+
encode: {
|
|
134
|
+
labels: {
|
|
135
|
+
update: {
|
|
136
|
+
text: {
|
|
137
|
+
signal: string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
format?: undefined;
|
|
143
|
+
grid?: undefined;
|
|
144
|
+
tickCount?: undefined;
|
|
145
|
+
tickBand?: undefined;
|
|
146
|
+
} | {
|
|
147
|
+
orient: string;
|
|
148
|
+
scale: string;
|
|
149
|
+
title: string;
|
|
150
|
+
format: string;
|
|
151
|
+
grid: boolean;
|
|
152
|
+
tickCount: number;
|
|
153
|
+
labelFontSize: number;
|
|
154
|
+
titleFontSize: number;
|
|
155
|
+
ticks: boolean;
|
|
156
|
+
domain: boolean;
|
|
157
|
+
tickBand: string;
|
|
158
|
+
labelPadding: number;
|
|
159
|
+
titlePadding?: undefined;
|
|
160
|
+
labelAngle?: undefined;
|
|
161
|
+
labelAlign?: undefined;
|
|
162
|
+
labelBaseline?: undefined;
|
|
163
|
+
tickSize?: undefined;
|
|
164
|
+
encode?: undefined;
|
|
165
|
+
})[];
|
|
166
|
+
legends: {
|
|
167
|
+
stroke: string;
|
|
168
|
+
orient: string;
|
|
169
|
+
direction: string;
|
|
170
|
+
columns: {
|
|
171
|
+
signal: string;
|
|
172
|
+
};
|
|
173
|
+
title: any;
|
|
174
|
+
symbolType: string;
|
|
175
|
+
symbolStrokeWidth: number;
|
|
176
|
+
rowPadding: number;
|
|
177
|
+
symbolOffset: number;
|
|
178
|
+
symbolSize: number;
|
|
179
|
+
labelOffset: number;
|
|
180
|
+
labelLimit: number;
|
|
181
|
+
}[];
|
|
182
|
+
marks: ({
|
|
183
|
+
type: string;
|
|
184
|
+
from: {
|
|
185
|
+
data: string;
|
|
186
|
+
};
|
|
187
|
+
encode: {
|
|
188
|
+
enter: {
|
|
189
|
+
strokeDash?: {
|
|
190
|
+
value: number[];
|
|
191
|
+
};
|
|
192
|
+
x: {
|
|
193
|
+
scale: string;
|
|
194
|
+
field: string;
|
|
195
|
+
};
|
|
196
|
+
y: {
|
|
197
|
+
scale: string;
|
|
198
|
+
field: string;
|
|
199
|
+
};
|
|
200
|
+
stroke: {
|
|
201
|
+
value: string;
|
|
202
|
+
};
|
|
203
|
+
strokeWidth: {
|
|
204
|
+
value: number;
|
|
205
|
+
};
|
|
206
|
+
interpolate: {
|
|
207
|
+
value: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
} | {
|
|
212
|
+
type: string;
|
|
213
|
+
from: {
|
|
214
|
+
data: string;
|
|
215
|
+
};
|
|
216
|
+
encode: {
|
|
217
|
+
enter: {
|
|
218
|
+
x: {
|
|
219
|
+
scale: string;
|
|
220
|
+
field: string;
|
|
221
|
+
};
|
|
222
|
+
y: {
|
|
223
|
+
scale: string;
|
|
224
|
+
field: string;
|
|
225
|
+
};
|
|
226
|
+
fill: {
|
|
227
|
+
scale: string;
|
|
228
|
+
field: string;
|
|
229
|
+
};
|
|
230
|
+
size: {
|
|
231
|
+
value: number;
|
|
232
|
+
};
|
|
233
|
+
shape: {
|
|
234
|
+
value: LinePointStyle;
|
|
235
|
+
};
|
|
236
|
+
tooltip: {
|
|
237
|
+
signal: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
})[];
|
|
242
|
+
}>;
|
|
243
|
+
render(): any;
|
|
244
|
+
}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { ComponentInterface } from '../../stencil-public-runtime';
|
|
2
|
+
import { ApolloBase } from '../../apollo-data-base';
|
|
3
|
+
export interface PointStyle {
|
|
4
|
+
shape?: 'circle' | 'square' | 'triangle';
|
|
5
|
+
opacity?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ScatterDataItem {
|
|
10
|
+
category: string;
|
|
11
|
+
xValue: number;
|
|
12
|
+
yValue: number;
|
|
13
|
+
pointStyle?: PointStyle;
|
|
14
|
+
}
|
|
15
|
+
export interface ScatterSpec {
|
|
16
|
+
yAxisTitle?: string;
|
|
17
|
+
xAxisTitle?: string;
|
|
18
|
+
defaultPointStyle?: PointStyle;
|
|
19
|
+
pointStyle?: PointStyle;
|
|
20
|
+
categoryPointStyleMap?: {
|
|
21
|
+
[categoryName: string]: PointStyle;
|
|
22
|
+
};
|
|
23
|
+
tooltip?: 'auto' | 'none';
|
|
24
|
+
}
|
|
25
|
+
export declare class ApolloDataScatterChart extends ApolloBase<ScatterDataItem[], ScatterSpec> implements ComponentInterface {
|
|
26
|
+
el: HTMLElement;
|
|
27
|
+
/**
|
|
28
|
+
* Represents a single data point in the scatter chart.
|
|
29
|
+
* @property {string} category - Category or group name associated with the data point.
|
|
30
|
+
* This can be used for legend grouping or category-based styling.
|
|
31
|
+
* @property {number} xValue - Numeric value plotted along the X-axis.
|
|
32
|
+
* @property {number} yValue - Numeric value plotted along the Y-axis.
|
|
33
|
+
* @property {PointStyle} [pointStyle] - Optional style override for this specific data point.
|
|
34
|
+
* If provided, it takes precedence over default or category-level styles.
|
|
35
|
+
*/
|
|
36
|
+
adData: string | ScatterDataItem[];
|
|
37
|
+
/**
|
|
38
|
+
* Optional specification object for customizing the scatter chart configuration.
|
|
39
|
+
* @property {string} [yAxisTitle] - Label displayed for the Y-axis.
|
|
40
|
+
* @property {string} [xAxisTitle] - Label displayed for the X-axis.
|
|
41
|
+
* @property {PointStyle} [defaultPointStyle] - Default styling applied to all scatter points (e.g., size, color, shape, opacity).
|
|
42
|
+
* @property {PointStyle} [pointStyle] - Global point style override applied to all data points.
|
|
43
|
+
* @property {{ [categoryName: string]: PointStyle }} [categoryPointStyleMap] -
|
|
44
|
+
* A mapping object that allows custom point styles per category name.
|
|
45
|
+
* Each key represents a category, and its value defines the corresponding PointStyle.
|
|
46
|
+
* @property {'auto' | 'none'} [tooltip] - Controls tooltip behavior.
|
|
47
|
+
* 'auto' enables default tooltip rendering, while 'none' disables tooltips.
|
|
48
|
+
*/
|
|
49
|
+
adSpec: string | ScatterSpec;
|
|
50
|
+
componentDidRender(): Promise<void>;
|
|
51
|
+
private DEFAULT_POINT_STYLE;
|
|
52
|
+
protected getViewData(data: ScatterDataItem[], spec?: ScatterSpec): Promise<{
|
|
53
|
+
$schema: string;
|
|
54
|
+
description: string;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
padding: number;
|
|
58
|
+
autosize: {
|
|
59
|
+
type: string;
|
|
60
|
+
resize: boolean;
|
|
61
|
+
};
|
|
62
|
+
signals: ({
|
|
63
|
+
name: string;
|
|
64
|
+
value: number;
|
|
65
|
+
update?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
update: string;
|
|
69
|
+
value?: undefined;
|
|
70
|
+
})[];
|
|
71
|
+
data: ({
|
|
72
|
+
name: string;
|
|
73
|
+
values: {
|
|
74
|
+
category: string;
|
|
75
|
+
xValue: number;
|
|
76
|
+
yValue: number;
|
|
77
|
+
color: string;
|
|
78
|
+
shape: "square" | "circle" | "triangle";
|
|
79
|
+
opacity: number;
|
|
80
|
+
}[];
|
|
81
|
+
source?: undefined;
|
|
82
|
+
transform?: undefined;
|
|
83
|
+
} | {
|
|
84
|
+
name: string;
|
|
85
|
+
source: string;
|
|
86
|
+
transform: ({
|
|
87
|
+
type: string;
|
|
88
|
+
expr: string;
|
|
89
|
+
} | {
|
|
90
|
+
type: string;
|
|
91
|
+
expr?: undefined;
|
|
92
|
+
})[];
|
|
93
|
+
values?: undefined;
|
|
94
|
+
})[];
|
|
95
|
+
scales: {
|
|
96
|
+
name: string;
|
|
97
|
+
type: string;
|
|
98
|
+
range: (number | {
|
|
99
|
+
signal: string;
|
|
100
|
+
})[];
|
|
101
|
+
nice: boolean;
|
|
102
|
+
domain: {
|
|
103
|
+
data: string;
|
|
104
|
+
field: string;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
axes: {
|
|
108
|
+
orient: string;
|
|
109
|
+
scale: string;
|
|
110
|
+
offset: number;
|
|
111
|
+
format: string;
|
|
112
|
+
title: string;
|
|
113
|
+
}[];
|
|
114
|
+
marks: ({
|
|
115
|
+
type: string;
|
|
116
|
+
from: {
|
|
117
|
+
data: string;
|
|
118
|
+
};
|
|
119
|
+
encode: {
|
|
120
|
+
enter: {
|
|
121
|
+
size: {
|
|
122
|
+
value: number;
|
|
123
|
+
};
|
|
124
|
+
tooltip: {
|
|
125
|
+
field: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
update: {
|
|
129
|
+
x: {
|
|
130
|
+
scale: string;
|
|
131
|
+
field: string;
|
|
132
|
+
signal?: undefined;
|
|
133
|
+
offset?: undefined;
|
|
134
|
+
};
|
|
135
|
+
y: {
|
|
136
|
+
scale: string;
|
|
137
|
+
field: string;
|
|
138
|
+
signal?: undefined;
|
|
139
|
+
offset?: undefined;
|
|
140
|
+
};
|
|
141
|
+
fill: {
|
|
142
|
+
field: string;
|
|
143
|
+
value?: undefined;
|
|
144
|
+
};
|
|
145
|
+
fillOpacity: {
|
|
146
|
+
field: string;
|
|
147
|
+
value?: undefined;
|
|
148
|
+
};
|
|
149
|
+
shape: {
|
|
150
|
+
field: string;
|
|
151
|
+
};
|
|
152
|
+
zindex: {
|
|
153
|
+
value: number;
|
|
154
|
+
};
|
|
155
|
+
text?: undefined;
|
|
156
|
+
align?: undefined;
|
|
157
|
+
baseline?: undefined;
|
|
158
|
+
fontSize?: undefined;
|
|
159
|
+
};
|
|
160
|
+
hover: {
|
|
161
|
+
fill: {
|
|
162
|
+
value: string;
|
|
163
|
+
};
|
|
164
|
+
fillOpacity: {
|
|
165
|
+
value: number;
|
|
166
|
+
};
|
|
167
|
+
zindex: {
|
|
168
|
+
value: number;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
interactive?: undefined;
|
|
173
|
+
} | {
|
|
174
|
+
type: string;
|
|
175
|
+
from: {
|
|
176
|
+
data: string;
|
|
177
|
+
};
|
|
178
|
+
encode: {
|
|
179
|
+
enter: {
|
|
180
|
+
size: {
|
|
181
|
+
value: number;
|
|
182
|
+
};
|
|
183
|
+
tooltip: {
|
|
184
|
+
field: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
update: {
|
|
188
|
+
x: {
|
|
189
|
+
scale: string;
|
|
190
|
+
field: string;
|
|
191
|
+
signal?: undefined;
|
|
192
|
+
offset?: undefined;
|
|
193
|
+
};
|
|
194
|
+
y: {
|
|
195
|
+
signal: string;
|
|
196
|
+
scale?: undefined;
|
|
197
|
+
field?: undefined;
|
|
198
|
+
offset?: undefined;
|
|
199
|
+
};
|
|
200
|
+
fill: {
|
|
201
|
+
value: string;
|
|
202
|
+
field?: undefined;
|
|
203
|
+
};
|
|
204
|
+
fillOpacity: {
|
|
205
|
+
value: number;
|
|
206
|
+
field?: undefined;
|
|
207
|
+
};
|
|
208
|
+
shape?: undefined;
|
|
209
|
+
zindex?: undefined;
|
|
210
|
+
text?: undefined;
|
|
211
|
+
align?: undefined;
|
|
212
|
+
baseline?: undefined;
|
|
213
|
+
fontSize?: undefined;
|
|
214
|
+
};
|
|
215
|
+
hover: {
|
|
216
|
+
fill: {
|
|
217
|
+
value: string;
|
|
218
|
+
};
|
|
219
|
+
fillOpacity: {
|
|
220
|
+
value: number;
|
|
221
|
+
};
|
|
222
|
+
zindex?: undefined;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
interactive?: undefined;
|
|
226
|
+
} | {
|
|
227
|
+
type: string;
|
|
228
|
+
from: {
|
|
229
|
+
data: string;
|
|
230
|
+
};
|
|
231
|
+
encode: {
|
|
232
|
+
enter: {
|
|
233
|
+
size: {
|
|
234
|
+
value: number;
|
|
235
|
+
};
|
|
236
|
+
tooltip: {
|
|
237
|
+
field: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
update: {
|
|
241
|
+
x: {
|
|
242
|
+
signal: string;
|
|
243
|
+
scale?: undefined;
|
|
244
|
+
field?: undefined;
|
|
245
|
+
offset?: undefined;
|
|
246
|
+
};
|
|
247
|
+
y: {
|
|
248
|
+
scale: string;
|
|
249
|
+
field: string;
|
|
250
|
+
signal?: undefined;
|
|
251
|
+
offset?: undefined;
|
|
252
|
+
};
|
|
253
|
+
fill: {
|
|
254
|
+
value: string;
|
|
255
|
+
field?: undefined;
|
|
256
|
+
};
|
|
257
|
+
fillOpacity: {
|
|
258
|
+
value: number;
|
|
259
|
+
field?: undefined;
|
|
260
|
+
};
|
|
261
|
+
zindex: {
|
|
262
|
+
value: number;
|
|
263
|
+
};
|
|
264
|
+
shape?: undefined;
|
|
265
|
+
text?: undefined;
|
|
266
|
+
align?: undefined;
|
|
267
|
+
baseline?: undefined;
|
|
268
|
+
fontSize?: undefined;
|
|
269
|
+
};
|
|
270
|
+
hover: {
|
|
271
|
+
fill: {
|
|
272
|
+
value: string;
|
|
273
|
+
};
|
|
274
|
+
fillOpacity: {
|
|
275
|
+
value: number;
|
|
276
|
+
};
|
|
277
|
+
zindex: {
|
|
278
|
+
value: number;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
interactive?: undefined;
|
|
283
|
+
} | {
|
|
284
|
+
type: string;
|
|
285
|
+
interactive: boolean;
|
|
286
|
+
from: {
|
|
287
|
+
data: string;
|
|
288
|
+
};
|
|
289
|
+
encode: {
|
|
290
|
+
update: {
|
|
291
|
+
x: {
|
|
292
|
+
signal: string;
|
|
293
|
+
offset: number;
|
|
294
|
+
scale?: undefined;
|
|
295
|
+
field?: undefined;
|
|
296
|
+
};
|
|
297
|
+
y: {
|
|
298
|
+
signal: string;
|
|
299
|
+
offset: number;
|
|
300
|
+
scale?: undefined;
|
|
301
|
+
field?: undefined;
|
|
302
|
+
};
|
|
303
|
+
text: {
|
|
304
|
+
signal: string;
|
|
305
|
+
};
|
|
306
|
+
align: {
|
|
307
|
+
value: string;
|
|
308
|
+
};
|
|
309
|
+
baseline: {
|
|
310
|
+
value: string;
|
|
311
|
+
};
|
|
312
|
+
fill: {
|
|
313
|
+
value: string;
|
|
314
|
+
field?: undefined;
|
|
315
|
+
};
|
|
316
|
+
fontSize: {
|
|
317
|
+
value: number;
|
|
318
|
+
};
|
|
319
|
+
fillOpacity?: undefined;
|
|
320
|
+
shape?: undefined;
|
|
321
|
+
zindex?: undefined;
|
|
322
|
+
};
|
|
323
|
+
enter?: undefined;
|
|
324
|
+
hover?: undefined;
|
|
325
|
+
};
|
|
326
|
+
})[];
|
|
327
|
+
}>;
|
|
328
|
+
render(): any;
|
|
329
|
+
}
|
|
@@ -7,8 +7,12 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { BarDataItem, BarSpec } from "./components/apollo-data-bar/apollo-data-bar";
|
|
9
9
|
import { DonutDataItem, DonutSpec } from "./components/apollo-data-donut/apollo-data-donut";
|
|
10
|
+
import { LineDataItem, LineSpec } from "./components/apollo-data-line/apollo-data-line";
|
|
11
|
+
import { ScatterDataItem, ScatterSpec } from "./components/apollo-data-scatter/apollo-data-scatter";
|
|
10
12
|
export { BarDataItem, BarSpec } from "./components/apollo-data-bar/apollo-data-bar";
|
|
11
13
|
export { DonutDataItem, DonutSpec } from "./components/apollo-data-donut/apollo-data-donut";
|
|
14
|
+
export { LineDataItem, LineSpec } from "./components/apollo-data-line/apollo-data-line";
|
|
15
|
+
export { ScatterDataItem, ScatterSpec } from "./components/apollo-data-scatter/apollo-data-scatter";
|
|
12
16
|
export namespace Components {
|
|
13
17
|
interface ApolloDataBarChart {
|
|
14
18
|
/**
|
|
@@ -38,6 +42,38 @@ export namespace Components {
|
|
|
38
42
|
*/
|
|
39
43
|
"adSpec": string | DonutSpec;
|
|
40
44
|
}
|
|
45
|
+
interface ApolloDataLineChart {
|
|
46
|
+
/**
|
|
47
|
+
* @default []
|
|
48
|
+
*/
|
|
49
|
+
"adData": string | LineDataItem[];
|
|
50
|
+
/**
|
|
51
|
+
* @default null
|
|
52
|
+
*/
|
|
53
|
+
"adSpec": string | LineSpec;
|
|
54
|
+
}
|
|
55
|
+
interface ApolloDataScatterChart {
|
|
56
|
+
/**
|
|
57
|
+
* Represents a single data point in the scatter chart.
|
|
58
|
+
* @property {string} category - Category or group name associated with the data point. This can be used for legend grouping or category-based styling.
|
|
59
|
+
* @property {number} xValue - Numeric value plotted along the X-axis.
|
|
60
|
+
* @property {number} yValue - Numeric value plotted along the Y-axis.
|
|
61
|
+
* @property {PointStyle} [pointStyle] - Optional style override for this specific data point. If provided, it takes precedence over default or category-level styles.
|
|
62
|
+
* @default []
|
|
63
|
+
*/
|
|
64
|
+
"adData": string | ScatterDataItem[];
|
|
65
|
+
/**
|
|
66
|
+
* Optional specification object for customizing the scatter chart configuration.
|
|
67
|
+
* @property {string} [yAxisTitle] - Label displayed for the Y-axis.
|
|
68
|
+
* @property {string} [xAxisTitle] - Label displayed for the X-axis.
|
|
69
|
+
* @property {PointStyle} [defaultPointStyle] - Default styling applied to all scatter points (e.g., size, color, shape, opacity).
|
|
70
|
+
* @property {PointStyle} [pointStyle] - Global point style override applied to all data points.
|
|
71
|
+
* @property {{ [categoryName: string]: PointStyle }} [categoryPointStyleMap] - A mapping object that allows custom point styles per category name. Each key represents a category, and its value defines the corresponding PointStyle.
|
|
72
|
+
* @property {'auto' | 'none'} [tooltip] - Controls tooltip behavior. 'auto' enables default tooltip rendering, while 'none' disables tooltips.
|
|
73
|
+
* @default {}
|
|
74
|
+
*/
|
|
75
|
+
"adSpec": string | ScatterSpec;
|
|
76
|
+
}
|
|
41
77
|
}
|
|
42
78
|
declare global {
|
|
43
79
|
interface HTMLApolloDataBarChartElement extends Components.ApolloDataBarChart, HTMLStencilElement {
|
|
@@ -52,9 +88,23 @@ declare global {
|
|
|
52
88
|
prototype: HTMLApolloDataDonutChartElement;
|
|
53
89
|
new (): HTMLApolloDataDonutChartElement;
|
|
54
90
|
};
|
|
91
|
+
interface HTMLApolloDataLineChartElement extends Components.ApolloDataLineChart, HTMLStencilElement {
|
|
92
|
+
}
|
|
93
|
+
var HTMLApolloDataLineChartElement: {
|
|
94
|
+
prototype: HTMLApolloDataLineChartElement;
|
|
95
|
+
new (): HTMLApolloDataLineChartElement;
|
|
96
|
+
};
|
|
97
|
+
interface HTMLApolloDataScatterChartElement extends Components.ApolloDataScatterChart, HTMLStencilElement {
|
|
98
|
+
}
|
|
99
|
+
var HTMLApolloDataScatterChartElement: {
|
|
100
|
+
prototype: HTMLApolloDataScatterChartElement;
|
|
101
|
+
new (): HTMLApolloDataScatterChartElement;
|
|
102
|
+
};
|
|
55
103
|
interface HTMLElementTagNameMap {
|
|
56
104
|
"apollo-data-bar-chart": HTMLApolloDataBarChartElement;
|
|
57
105
|
"apollo-data-donut-chart": HTMLApolloDataDonutChartElement;
|
|
106
|
+
"apollo-data-line-chart": HTMLApolloDataLineChartElement;
|
|
107
|
+
"apollo-data-scatter-chart": HTMLApolloDataScatterChartElement;
|
|
58
108
|
}
|
|
59
109
|
}
|
|
60
110
|
declare namespace LocalJSX {
|
|
@@ -86,9 +136,43 @@ declare namespace LocalJSX {
|
|
|
86
136
|
*/
|
|
87
137
|
"adSpec"?: string | DonutSpec;
|
|
88
138
|
}
|
|
139
|
+
interface ApolloDataLineChart {
|
|
140
|
+
/**
|
|
141
|
+
* @default []
|
|
142
|
+
*/
|
|
143
|
+
"adData"?: string | LineDataItem[];
|
|
144
|
+
/**
|
|
145
|
+
* @default null
|
|
146
|
+
*/
|
|
147
|
+
"adSpec"?: string | LineSpec;
|
|
148
|
+
}
|
|
149
|
+
interface ApolloDataScatterChart {
|
|
150
|
+
/**
|
|
151
|
+
* Represents a single data point in the scatter chart.
|
|
152
|
+
* @property {string} category - Category or group name associated with the data point. This can be used for legend grouping or category-based styling.
|
|
153
|
+
* @property {number} xValue - Numeric value plotted along the X-axis.
|
|
154
|
+
* @property {number} yValue - Numeric value plotted along the Y-axis.
|
|
155
|
+
* @property {PointStyle} [pointStyle] - Optional style override for this specific data point. If provided, it takes precedence over default or category-level styles.
|
|
156
|
+
* @default []
|
|
157
|
+
*/
|
|
158
|
+
"adData"?: string | ScatterDataItem[];
|
|
159
|
+
/**
|
|
160
|
+
* Optional specification object for customizing the scatter chart configuration.
|
|
161
|
+
* @property {string} [yAxisTitle] - Label displayed for the Y-axis.
|
|
162
|
+
* @property {string} [xAxisTitle] - Label displayed for the X-axis.
|
|
163
|
+
* @property {PointStyle} [defaultPointStyle] - Default styling applied to all scatter points (e.g., size, color, shape, opacity).
|
|
164
|
+
* @property {PointStyle} [pointStyle] - Global point style override applied to all data points.
|
|
165
|
+
* @property {{ [categoryName: string]: PointStyle }} [categoryPointStyleMap] - A mapping object that allows custom point styles per category name. Each key represents a category, and its value defines the corresponding PointStyle.
|
|
166
|
+
* @property {'auto' | 'none'} [tooltip] - Controls tooltip behavior. 'auto' enables default tooltip rendering, while 'none' disables tooltips.
|
|
167
|
+
* @default {}
|
|
168
|
+
*/
|
|
169
|
+
"adSpec"?: string | ScatterSpec;
|
|
170
|
+
}
|
|
89
171
|
interface IntrinsicElements {
|
|
90
172
|
"apollo-data-bar-chart": ApolloDataBarChart;
|
|
91
173
|
"apollo-data-donut-chart": ApolloDataDonutChart;
|
|
174
|
+
"apollo-data-line-chart": ApolloDataLineChart;
|
|
175
|
+
"apollo-data-scatter-chart": ApolloDataScatterChart;
|
|
92
176
|
}
|
|
93
177
|
}
|
|
94
178
|
export { LocalJSX as JSX };
|
|
@@ -97,6 +181,8 @@ declare module "@stencil/core" {
|
|
|
97
181
|
interface IntrinsicElements {
|
|
98
182
|
"apollo-data-bar-chart": LocalJSX.ApolloDataBarChart & JSXBase.HTMLAttributes<HTMLApolloDataBarChartElement>;
|
|
99
183
|
"apollo-data-donut-chart": LocalJSX.ApolloDataDonutChart & JSXBase.HTMLAttributes<HTMLApolloDataDonutChartElement>;
|
|
184
|
+
"apollo-data-line-chart": LocalJSX.ApolloDataLineChart & JSXBase.HTMLAttributes<HTMLApolloDataLineChartElement>;
|
|
185
|
+
"apollo-data-scatter-chart": LocalJSX.ApolloDataScatterChart & JSXBase.HTMLAttributes<HTMLApolloDataScatterChartElement>;
|
|
100
186
|
}
|
|
101
187
|
}
|
|
102
188
|
}
|