@kiwibit/chart 1.0.4 → 1.0.9
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 +8 -11
- package/esm2020/lib/chart.component.mjs +116 -78
- package/esm2020/lib/constants/chart.constants.mjs +3 -3
- package/esm2020/lib/models/chart.models.mjs +1 -6
- package/fesm2015/kiwibit-chart.mjs +121 -88
- package/fesm2015/kiwibit-chart.mjs.map +1 -1
- package/fesm2020/kiwibit-chart.mjs +117 -84
- package/fesm2020/kiwibit-chart.mjs.map +1 -1
- package/lib/chart.component.d.ts +52 -2
- package/lib/constants/chart.constants.d.ts +2 -2
- package/lib/models/chart.models.d.ts +93 -7
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ import { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DataZ
|
|
|
9
9
|
import { LineChart, ScatterChart } from 'echarts/charts';
|
|
10
10
|
import { CanvasRenderer } from 'echarts/renderers';
|
|
11
11
|
|
|
12
|
-
const ADD_POINT_IMG_OFF = "image://data:image/png;base64,
|
|
13
|
-
const ADD_POINT_IMG_ON = "image://data:image/png;base64,
|
|
12
|
+
const ADD_POINT_IMG_OFF = "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAADgElEQVR4nO2bTUsbURSG3zMmkWLoThetboq46AdI7b+woLYQrGNdRjDSTW0tXbkralctEWN34kQY2hJB6J+oxYK0lOhK2y7iSpSiyeR0ESe5M34sJs4cP+ZZ3TlzhrznZe5J5uYOEHK1odNOmqYZKxxYfQD3gHAfQCuApmCkeWYPwBYY31hDriUSySUSiYOTkk804H02+1hjTAG45YfKoCBgg8EvU7r++YTzTkzTbCiUSpNgPPdfXpDw20I+Pz4xMVFWo5o77XIWDwA01tzR8eZIVD04vO0/unL2Ac6wpmX/FYtrL4aG9nzVWSfT8/NN16LRu7BYJ0ISQKN6ngh9IwMDueqxPTBNM1Yoln5CnfOE35aldT972v89AO1nTtowOkG0DMbNWpTWm6MNd+zGWJ0ClW7vaHj7F7l4AEjp+iqYHwLYr0W5fbtY7LGPlB7APXDAmYtcvE1K11cB+qDGGHSMAYQuNUkDDN/VBQSx5a7lgT1QvwVuqBnlaPSHn6KChGOxNVeo2hNUA+JqRiqR2PVTVJAcU0u11iO/A64aEakPnllc7OYyzwGwiLXhkcH+LxI6xO4ALvMsKn2njamckdIhOQValXGblIgr3wNCA6QFSBMaIC1AmtAAaQHShAZIC5AmNEBagDShAdICpPG8HjCzuNjNzBnnkrN30kaWPV66Rawlva4neL4DuMyzZ1V8nbTWs55w5aeAZwOItSSArTPU4pVNVP4C84TnHnA45zyv5LjnfEofOHWvgl+EU0BagDShAdICpAkNkBYgTWiAtABpQgOkBUgTGiAtQJrQAMHPVh+lN6VEiBmgrCfU9TxfL2J7hOpdTzgrwh6gjB176dKmGccl4d3CwnVXaMceqAb8UTO0YvG2n6KCJAK4a/lrD2oGMFbUDItp0F9ZwcHUoLtCX+1B1QDWkFMziJBMG0anz9p8J20YnQx2fsswVWutGtASieQI2FDSGkG0fJFNsF+YICBWi9J6ZG9nqXrkuuARQJ/UGAMHBJojtgyOxdbO+ybqtGnGuVS6R0wDDE46iwcY3Duq68cbAABpw5gGaCwIsUHDoMlR/ckrNXb0rbF8fpwY08HJCgjC1Hb+1+uj4ROYyWZ7mWka4HZ/lfkNrTPKY+pt7zh72qWZTCZqxeO9h+/YdKGywfm8/0DaReUZYwVMucjeztLw8HBRWlTIeeU/aykWi4H+qgIAAAAASUVORK5CYII=";
|
|
13
|
+
const ADD_POINT_IMG_ON = "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAADjUlEQVR4nO2by08TURTGvzNAK49oDCsRNqbFxPogtsQ/AhNAowsxLksTlxIxrtwZwJUJsa07E1wQNSUh8X+wrQFDNSklMQGVjRgMj7TIHBcww50WWEyZO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IK0AWGAgS0CKaXki2x/ZkBblcVj5D1vBAfS1aXiGAAAAAElFTkSuQmCC";
|
|
14
14
|
|
|
15
15
|
var TraceType;
|
|
16
16
|
(function (TraceType) {
|
|
@@ -34,91 +34,71 @@ var TraceStyle;
|
|
|
34
34
|
var AxisType;
|
|
35
35
|
(function (AxisType) {
|
|
36
36
|
AxisType["VALUE"] = "value";
|
|
37
|
-
AxisType["CATEGORY"] = "category";
|
|
38
|
-
AxisType["TIME"] = "time";
|
|
39
|
-
AxisType["LOG"] = "log";
|
|
40
37
|
})(AxisType || (AxisType = {}));
|
|
41
38
|
var ShapeVariant;
|
|
42
39
|
(function (ShapeVariant) {
|
|
43
40
|
ShapeVariant[ShapeVariant["TRACE"] = 0] = "TRACE";
|
|
44
|
-
ShapeVariant[ShapeVariant["POLYGON"] = 1] = "POLYGON";
|
|
45
|
-
ShapeVariant[ShapeVariant["CIRCLE"] = 2] = "CIRCLE";
|
|
46
41
|
})(ShapeVariant || (ShapeVariant = {}));
|
|
47
42
|
|
|
48
43
|
class KiwiChartComponent {
|
|
49
44
|
constructor() {
|
|
45
|
+
/**
|
|
46
|
+
* The Chart Object rendered by the canvas. For all the available options refer
|
|
47
|
+
* to Chart interface in the models folder.
|
|
48
|
+
*
|
|
49
|
+
* @type {(Chart | null)}
|
|
50
|
+
* @memberof KiwiChartComponent
|
|
51
|
+
*/
|
|
50
52
|
this.chart = null;
|
|
53
|
+
/**
|
|
54
|
+
* Width and Height of the chart area. The dimensions refer to the father component
|
|
55
|
+
* into which the kiwi-chart is inserted. For example in an empty page the width/height
|
|
56
|
+
* of the chart can take the whole available space in the page.
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof KiwiChartComponent
|
|
60
|
+
*/
|
|
51
61
|
this.width = '100%';
|
|
52
62
|
this.height = '480px';
|
|
63
|
+
/**
|
|
64
|
+
* This property simply activates or not the dark theme of the chart
|
|
65
|
+
* defined by the Echarts library. In addition the background color can be custom
|
|
66
|
+
* so that the chart can match the background of the application in which it's used.
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof KiwiChartComponent
|
|
70
|
+
*/
|
|
71
|
+
this.darkTheme = false;
|
|
72
|
+
/**
|
|
73
|
+
* Output event used to emit to the father component the coordinates
|
|
74
|
+
* of the point clicked in the chart area. This functionality to be used must
|
|
75
|
+
* have the property "clickToAddPoint" in the Chart object set to true.
|
|
76
|
+
*
|
|
77
|
+
* @type {EventEmitter<BasePoint>}
|
|
78
|
+
* @memberof KiwiChartComponent
|
|
79
|
+
*/
|
|
53
80
|
this.addPoint = new EventEmitter();
|
|
54
|
-
|
|
81
|
+
/**
|
|
82
|
+
* The object used by echarts to initially create the Chart.
|
|
83
|
+
*
|
|
84
|
+
* @type {EChartsOption}
|
|
85
|
+
* @memberof KiwiChartComponent
|
|
86
|
+
*/
|
|
87
|
+
this.chartOption = {};
|
|
88
|
+
/**
|
|
89
|
+
* The instance of the Chart.
|
|
90
|
+
*
|
|
91
|
+
* @type {(ECharts | null)}
|
|
92
|
+
* @memberof KiwiChartComponent
|
|
93
|
+
*/
|
|
55
94
|
this.echartsInstance = null;
|
|
95
|
+
/**
|
|
96
|
+
* Used to perform actions (as point addition based on the cursor position) on the chart.
|
|
97
|
+
*
|
|
98
|
+
* @type {(zrender.ZRenderType | null)}
|
|
99
|
+
* @memberof KiwiChartComponent
|
|
100
|
+
*/
|
|
56
101
|
this.zr = null;
|
|
57
|
-
this.chartOption = {
|
|
58
|
-
title: {
|
|
59
|
-
text: "Chart",
|
|
60
|
-
},
|
|
61
|
-
tooltip: {
|
|
62
|
-
axisPointer: {
|
|
63
|
-
type: 'cross',
|
|
64
|
-
crossStyle: {
|
|
65
|
-
color: '#bebebe'
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
toolbox: {
|
|
70
|
-
orient: 'horizontal',
|
|
71
|
-
feature: {
|
|
72
|
-
dataZoom: {
|
|
73
|
-
brushStyle: {
|
|
74
|
-
borderColor: '#000',
|
|
75
|
-
borderWidth: 1,
|
|
76
|
-
borderType: 'dashed'
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
saveAsImage: {}
|
|
80
|
-
},
|
|
81
|
-
left: 'center'
|
|
82
|
-
},
|
|
83
|
-
dataZoom: [
|
|
84
|
-
{
|
|
85
|
-
type: 'inside',
|
|
86
|
-
xAxisIndex: [0],
|
|
87
|
-
throttle: 0,
|
|
88
|
-
filterMode: 'none'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
type: 'inside',
|
|
92
|
-
yAxisIndex: [0],
|
|
93
|
-
throttle: 0,
|
|
94
|
-
filterMode: 'none'
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
xAxis: {
|
|
98
|
-
type: "value",
|
|
99
|
-
name: "X",
|
|
100
|
-
nameLocation: 'middle',
|
|
101
|
-
nameGap: 30,
|
|
102
|
-
splitLine: {
|
|
103
|
-
lineStyle: {
|
|
104
|
-
color: '#ccc'
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
yAxis: {
|
|
109
|
-
type: "value",
|
|
110
|
-
name: "Y",
|
|
111
|
-
nameLocation: 'middle',
|
|
112
|
-
nameGap: 50,
|
|
113
|
-
splitLine: {
|
|
114
|
-
lineStyle: {
|
|
115
|
-
color: '#ccc'
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
series: [],
|
|
120
|
-
animation: false
|
|
121
|
-
};
|
|
122
102
|
}
|
|
123
103
|
onChartInit(ec) {
|
|
124
104
|
this.echartsInstance = ec;
|
|
@@ -126,6 +106,10 @@ class KiwiChartComponent {
|
|
|
126
106
|
}
|
|
127
107
|
setupZrEventHandler(ec) {
|
|
128
108
|
this.zr = ec.getZr();
|
|
109
|
+
/**
|
|
110
|
+
* Intercepts the click event on the chart (if the clickToAddPoint property is set to true)
|
|
111
|
+
* and emits the point coordinates to the father component.
|
|
112
|
+
*/
|
|
129
113
|
this.zr.on('click', params => {
|
|
130
114
|
let option = ec.getOption();
|
|
131
115
|
let active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;
|
|
@@ -141,6 +125,10 @@ class KiwiChartComponent {
|
|
|
141
125
|
}
|
|
142
126
|
}
|
|
143
127
|
});
|
|
128
|
+
/**
|
|
129
|
+
* This is used to change the cursor's icon when the selected action is
|
|
130
|
+
* click to add point and viceversa back to default icon when it's not selected.
|
|
131
|
+
*/
|
|
144
132
|
this.zr.on('mousemove', params => {
|
|
145
133
|
const pointInPixel = [params.offsetX, params.offsetY];
|
|
146
134
|
const option = ec.getOption();
|
|
@@ -153,12 +141,31 @@ class KiwiChartComponent {
|
|
|
153
141
|
ngOnChanges(changes) {
|
|
154
142
|
let chart = changes['chart']?.currentValue;
|
|
155
143
|
if (chart) {
|
|
156
|
-
this.
|
|
144
|
+
this.chartOption = {
|
|
157
145
|
title: {
|
|
158
146
|
text: chart.title,
|
|
159
147
|
},
|
|
148
|
+
backgroundColor: this.darkTheme ? this.darkThemeBackground ?? '#303030' : 'transparent', tooltip: {
|
|
149
|
+
axisPointer: {
|
|
150
|
+
type: 'cross',
|
|
151
|
+
crossStyle: {
|
|
152
|
+
color: '#bebebe'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
160
156
|
toolbox: {
|
|
157
|
+
orient: 'horizontal',
|
|
158
|
+
left: 'center',
|
|
161
159
|
feature: {
|
|
160
|
+
dataZoom: {
|
|
161
|
+
brushStyle: {
|
|
162
|
+
borderColor: '#000',
|
|
163
|
+
borderWidth: 1,
|
|
164
|
+
borderType: 'dashed'
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
saveAsImage: {},
|
|
168
|
+
restore: {},
|
|
162
169
|
myAddPoint: {
|
|
163
170
|
show: chart.clickToAddPoint ?? false,
|
|
164
171
|
title: chart.addPointCustomName ?? 'Add Point',
|
|
@@ -182,8 +189,20 @@ class KiwiChartComponent {
|
|
|
182
189
|
},
|
|
183
190
|
},
|
|
184
191
|
dataZoom: [
|
|
185
|
-
{
|
|
186
|
-
|
|
192
|
+
{
|
|
193
|
+
type: 'inside',
|
|
194
|
+
xAxisIndex: [0],
|
|
195
|
+
throttle: 0,
|
|
196
|
+
filterMode: 'none',
|
|
197
|
+
disabled: !chart.scrollToZoom ?? true
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
type: 'inside',
|
|
201
|
+
yAxisIndex: [0],
|
|
202
|
+
throttle: 0,
|
|
203
|
+
filterMode: 'none',
|
|
204
|
+
disabled: !chart.scrollToZoom ?? true
|
|
205
|
+
},
|
|
187
206
|
],
|
|
188
207
|
legend: {
|
|
189
208
|
data: chart.shapes.map((shape) => ({
|
|
@@ -205,16 +224,26 @@ class KiwiChartComponent {
|
|
|
205
224
|
xAxis: {
|
|
206
225
|
type: chart.xAxisType,
|
|
207
226
|
name: chart.xAxisUom ? `${chart.xAxisName} [ ${chart.xAxisUom} ]` : chart.xAxisName,
|
|
227
|
+
nameLocation: 'middle',
|
|
228
|
+
nameGap: 30,
|
|
208
229
|
splitLine: {
|
|
209
|
-
show: chart.showGrid ?? true
|
|
230
|
+
show: chart.showGrid ?? true,
|
|
231
|
+
lineStyle: {
|
|
232
|
+
color: this.darkTheme ? '#595959' : '#ccc'
|
|
233
|
+
}
|
|
210
234
|
}
|
|
211
235
|
},
|
|
212
236
|
yAxis: {
|
|
213
237
|
type: chart.yAxisType,
|
|
214
238
|
name: chart.yAxisUom ? `${chart.yAxisName} [ ${chart.yAxisUom} ]` : chart.yAxisName,
|
|
239
|
+
nameLocation: 'middle',
|
|
240
|
+
nameGap: 50,
|
|
215
241
|
splitLine: {
|
|
216
|
-
show: chart.showGrid ?? true
|
|
217
|
-
|
|
242
|
+
show: chart.showGrid ?? true,
|
|
243
|
+
lineStyle: {
|
|
244
|
+
color: this.darkTheme ? '#595959' : '#ccc'
|
|
245
|
+
}
|
|
246
|
+
},
|
|
218
247
|
},
|
|
219
248
|
series: this.createSeries(chart.shapes),
|
|
220
249
|
animation: chart.hasAnimations,
|
|
@@ -255,13 +284,13 @@ class KiwiChartComponent {
|
|
|
255
284
|
align: 'left',
|
|
256
285
|
verticalAlign: 'bottom',
|
|
257
286
|
formatter: () => `${point.name ?? ''}`,
|
|
258
|
-
color: '#000',
|
|
259
287
|
fontSize: 13,
|
|
260
288
|
padding: [0, 0, 0, 10],
|
|
261
289
|
width: 100,
|
|
262
290
|
overflow: 'truncate',
|
|
263
291
|
ellipsis: '...',
|
|
264
|
-
fontWeight: 'bold'
|
|
292
|
+
fontWeight: 'bold',
|
|
293
|
+
color: this.darkTheme ? '#fff' : '#000'
|
|
265
294
|
},
|
|
266
295
|
tooltip: {
|
|
267
296
|
formatter: ({ value }) => `
|
|
@@ -281,16 +310,16 @@ class KiwiChartComponent {
|
|
|
281
310
|
}
|
|
282
311
|
}
|
|
283
312
|
KiwiChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: KiwiChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
284
|
-
KiwiChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: KiwiChartComponent, selector: "kiwi-chart", inputs: { chart: "chart", width: "width", height: "height" }, outputs: { addPoint: "addPoint" }, usesOnChanges: true, ngImport: i0, template: `
|
|
313
|
+
KiwiChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: KiwiChartComponent, selector: "kiwi-chart", inputs: { chart: "chart", width: "width", height: "height", darkTheme: "darkTheme", darkThemeBackground: "darkThemeBackground" }, outputs: { addPoint: "addPoint" }, usesOnChanges: true, ngImport: i0, template: `
|
|
285
314
|
<div
|
|
286
315
|
echarts
|
|
287
316
|
[options]="chartOption"
|
|
288
|
-
[merge]="updateOption"
|
|
289
317
|
[ngStyle]="{
|
|
290
318
|
'width': width,
|
|
291
319
|
'height': height
|
|
292
320
|
}"
|
|
293
321
|
(chartInit)="onChartInit($event)"
|
|
322
|
+
[theme]="darkTheme ? 'dark' : ''"
|
|
294
323
|
></div>
|
|
295
324
|
`, isInline: true, styles: [""], directives: [{ type: i1.NgxEchartsDirective, selector: "echarts, [echarts]", inputs: ["options", "theme", "loading", "initOpts", "merge", "autoResize", "loadingType", "loadingOpts"], outputs: ["chartInit", "optionsError", "chartClick", "chartDblClick", "chartMouseDown", "chartMouseMove", "chartMouseUp", "chartMouseOver", "chartMouseOut", "chartGlobalOut", "chartContextMenu", "chartLegendSelectChanged", "chartLegendSelected", "chartLegendUnselected", "chartLegendScroll", "chartDataZoom", "chartDataRangeSelected", "chartTimelineChanged", "chartTimelinePlayChanged", "chartRestore", "chartDataViewChanged", "chartMagicTypeChanged", "chartPieSelectChanged", "chartPieSelected", "chartPieUnselected", "chartMapSelectChanged", "chartMapSelected", "chartMapUnselected", "chartAxisAreaSelected", "chartFocusNodeAdjacency", "chartUnfocusNodeAdjacency", "chartBrush", "chartBrushEnd", "chartBrushSelected", "chartRendered", "chartFinished"], exportAs: ["echarts"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
296
325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: KiwiChartComponent, decorators: [{
|
|
@@ -301,12 +330,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
301
330
|
<div
|
|
302
331
|
echarts
|
|
303
332
|
[options]="chartOption"
|
|
304
|
-
[merge]="updateOption"
|
|
305
333
|
[ngStyle]="{
|
|
306
334
|
'width': width,
|
|
307
335
|
'height': height
|
|
308
336
|
}"
|
|
309
337
|
(chartInit)="onChartInit($event)"
|
|
338
|
+
[theme]="darkTheme ? 'dark' : ''"
|
|
310
339
|
></div>
|
|
311
340
|
`,
|
|
312
341
|
styles: [`
|
|
@@ -318,6 +347,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
318
347
|
type: Input
|
|
319
348
|
}], height: [{
|
|
320
349
|
type: Input
|
|
350
|
+
}], darkTheme: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], darkThemeBackground: [{
|
|
353
|
+
type: Input
|
|
321
354
|
}], addPoint: [{
|
|
322
355
|
type: Output
|
|
323
356
|
}] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kiwibit-chart.mjs","sources":["../../../../projects/kiwibit/chart/src/lib/constants/chart.constants.ts","../../../../projects/kiwibit/chart/src/lib/models/chart.models.ts","../../../../projects/kiwibit/chart/src/lib/chart.component.ts","../../../../projects/kiwibit/chart/src/lib/chart.module.ts","../../../../projects/kiwibit/chart/src/public-api.ts","../../../../projects/kiwibit/chart/src/kiwibit-chart.ts"],"sourcesContent":["export const ADD_POINT_IMG_OFF = \"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAEZklEQVRYhcWXX2xTVRzHP797t+FgSAkmpCskkGCYmcP23nZBmpiZYUKyIBIdUR80JiYmSnzQGPDBGNRoYsAXQ0wwvvgCYRqGgUj4o4txiRu9ZQUGqCNogm0lsNXVSGHt+flQumxlZR24+X1qz/n2+/2ec27v7/zgf4bMhNza2royn8+vF5HVwAPAfCAjIkljTKK+vv54b29v9j8N0NLSsriurm4r8DTwCHAd+F1ErqjqCLAUWAb4gTxwQlW/jMfj+wG96wBtbW33ZbPZrcDbgFHVfarabVnWD57njZXzW1tblxhjOlR1M7ARGDDGbDt16tSJGQcIhUKNItItIs3Ap8BHnuf9Nd1qSnBdtwl4D+gUkT0NDQ2v9fT05KsKEIlEIsaYg8AwsMnzvIvVGpcjHA4/p6pfqGpPbW3ts319faPlHGviF8dxVhljjohIoqamZt29mAPEYrG9xpjHRCQ0Nja2r7Oz0y7njA9Eo9GFhULhGHAN2HDy5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n50wEAugHo9lfknwcw/krXr4j2qBHfVKf2NrXNFaFMRL8d/havSspHwEsFtYHVUwlgDzq3A5pGRs0IgA6fuwU4aYz5KlHXktBMNQJEUk3uqT/5GFAF8sm9/WX8BkTUGN4A8vquLvoyFcPZkYGjBnWnEruuoSsTYt+D9PRnZdbduzaiKfXUBcvi7bdWBSoKdqdiPp5WN3TNnKWD3wErVWJrAj7PiGd/bFdcF3pPhR2gX2dnXXznQFlZbLLJPTXtS7EcrcCjKuapgC+/e3RMwrngzk00AV0q5s1EG++rajWF2eEtIuwALmNFN3S8VvRbotDkk1Fj6Ak7Rg3CWlT3q2UaH5l7IXi/G/E2tc21b6eVIrINyAH2mFhkm7+y+GayPePOhkV14Y2IfnhnLryi8IPAOVXtE7gmItmKLgXJBbyAgrTaJvZB8PXCX8bzT3k69taEl9sWzyl2iSA5wAJgFnAduAD0qHIo3aQfmcgY9w8YoaK2AOtXYQAAAABJRU5ErkJggg==\";","export interface Chart {\n title: string;\n showLegend?: boolean;\n xAxisType: AxisType;\n xAxisName: string;\n xAxisUom?: string;\n yAxisType: AxisType;\n yAxisName: string;\n yAxisUom?: string;\n hasAnimations?: boolean;//If the chart should have rendering animations\n shapes: Shape[];\n clickToAddPoint?: boolean;//If the chart should add a point when clicking in the grid area\n addPointCustomName?: string;//We can also choose a custom name for the Add Point button\n scrollToZoom?: boolean;//Use the scroll to zoom in/out of the chart\n showGrid?: boolean;//Whether to show the chart grid lines or not\n}\n\nexport type Shape = Trace;\n\nexport interface Trace {\n name?: string;\n variant: ShapeVariant;\n color?: string;\n type: TraceType;\n width?: number;\n points: Point[];\n smooth?: boolean;\n style?: TraceStyle;\n selectedByDefault?: boolean;\n}\n\nexport interface Point extends BasePoint {\n name?: string;\n symbol?: PointSymbol;\n symbolSize?: number;\n color?: string;\n}\n\nexport interface BasePoint {\n x: number;\n y: number\n}\n\nexport enum TraceType {\n LINE = \"line\",\n SCATTER = \"scatter\"\n}\n\nexport enum PointSymbol {\n NONE = \"none\",\n CIRCLE = \"circle\",\n TRIANGLE = \"triangle\",\n PIN = \"pin\",\n DIAMOND = \"diamond\"\n}\n\nexport enum TraceStyle {\n SOLID = \"solid\",\n DASHED = \"dashed\",\n DOTTED = \"dotted\"\n}\n\nexport enum AxisType {\n VALUE = \"value\",\n CATEGORY = \"category\",\n TIME = \"time\",\n LOG = \"log\"\n}\n\nexport enum ShapeVariant {\n TRACE,\n POLYGON,\n CIRCLE\n}","import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';\nimport { CustomSeriesOption, ECharts, EChartsOption, LineSeriesOption, ScatterSeriesOption, zrender } from 'echarts';\nimport { ADD_POINT_IMG_OFF, ADD_POINT_IMG_ON } from './constants/chart.constants';\nimport { Chart, Shape, ShapeVariant, Trace, Point, BasePoint } from './models/chart.models';\n\n@Component({\n selector: 'kiwi-chart',\n template: `\n <div \n echarts \n [options]=\"chartOption\" \n [merge]=\"updateOption\"\n [ngStyle]=\"{\n 'width': width,\n 'height': height\n }\"\n (chartInit)=\"onChartInit($event)\"\n ></div> \n `,\n styles: [`\n `]\n})\nexport class KiwiChartComponent implements OnChanges {\n\n @Input() chart: Chart | null = null;\n\n @Input() width: string = '100%';\n\n @Input() height: string = '480px';\n\n @Output() addPoint: EventEmitter<BasePoint> = new EventEmitter<BasePoint>();\n\n chartOption: EChartsOption;\n\n updateOption: EChartsOption = {};\n\n echartsInstance: ECharts | null = null;\n\n zr: zrender.ZRenderType | null = null;\n\n constructor() {\n this.chartOption = {\n title: {\n text: \"Chart\",\n },\n tooltip: {\n axisPointer: {\n type: 'cross',\n crossStyle: {\n color: '#bebebe'\n }\n }\n },\n toolbox: {\n orient: 'horizontal',\n feature: {\n dataZoom: {\n brushStyle: {\n borderColor: '#000',\n borderWidth: 1,\n borderType: 'dashed'\n },\n },\n saveAsImage: {}\n },\n left: 'center'\n },\n dataZoom: [\n {\n type: 'inside',\n xAxisIndex: [0],\n throttle: 0,\n filterMode: 'none'\n },\n {\n type: 'inside',\n yAxisIndex: [0],\n throttle: 0,\n filterMode: 'none'\n }\n ],\n xAxis: {\n type: \"value\",\n name: \"X\",\n nameLocation: 'middle',\n nameGap: 30,\n splitLine: {\n lineStyle: {\n color: '#ccc'\n }\n }\n },\n yAxis: {\n type: \"value\",\n name: \"Y\",\n nameLocation: 'middle',\n nameGap: 50,\n splitLine: {\n lineStyle: {\n color: '#ccc'\n }\n }\n },\n series: [],\n animation: false\n };\n }\n\n onChartInit(ec: ECharts) {\n this.echartsInstance = ec;\n this.setupZrEventHandler(ec);\n }\n\n setupZrEventHandler(ec: ECharts) {\n this.zr = ec.getZr();\n this.zr.on('click', params => {\n let option: any = ec.getOption();\n let active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;\n if (active && this.chart?.clickToAddPoint) {\n const pointInPixel = [params.offsetX, params.offsetY];\n const pointInGrid = ec.convertFromPixel('grid', pointInPixel);\n if (ec.containPixel('grid', pointInPixel) && pointInGrid) {\n let newPoint: { x: number, y: number } = {\n x: +pointInGrid[0].toFixed(3),\n y: +pointInGrid[1].toFixed(3)\n };\n this.addPoint.emit(newPoint);\n }\n }\n });\n this.zr.on('mousemove', params => {\n const pointInPixel = [params.offsetX, params.offsetY];\n const option: any = ec.getOption();\n const active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;\n if (active) {\n this.zr?.setCursorStyle(\n ec.containPixel('grid', pointInPixel) ? 'copy' : 'default'\n );\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n let chart: Chart = changes['chart']?.currentValue;\n if (chart) {\n this.updateOption = {\n title: {\n text: chart.title,\n },\n toolbox: {\n feature: {\n myAddPoint: {\n show: chart.clickToAddPoint ?? false,\n title: chart.addPointCustomName ?? 'Add Point',\n icon: ADD_POINT_IMG_OFF,\n iconStatus: false,\n onclick: () => {\n let option: any = this.echartsInstance?.getOption();\n let status = option.toolbox[0].feature.myAddPoint.iconStatus;\n this.echartsInstance?.setOption({\n toolbox: {\n feature: {\n myAddPoint: {\n iconStatus: !status,\n icon: !status ? ADD_POINT_IMG_ON : ADD_POINT_IMG_OFF\n }\n }\n }\n })\n }\n }\n },\n },\n dataZoom: [\n { disabled: !chart.scrollToZoom ?? true },\n { disabled: !chart.scrollToZoom ?? true },\n ],\n legend: {\n data: chart.shapes.map(\n (shape: Shape) => ({\n name: shape.name,\n icon: 'circle'\n })\n ),\n selected: chart.shapes.reduce((accumulator, shape: Shape) => ({ ...accumulator, [shape.name as string]: shape.selectedByDefault ?? true }), {}),\n show: chart.showLegend ?? false,\n orient: 'vertical',\n left: 'right',\n padding: [60, 20],\n type: 'scroll',\n textStyle: {\n width: 100,\n fontWeight: 'bold',\n overflow: 'break'\n }\n },\n xAxis: {\n type: chart.xAxisType,\n name: chart.xAxisUom ? `${chart.xAxisName} [ ${chart.xAxisUom} ]` : chart.xAxisName,\n splitLine: {\n show: chart.showGrid ?? true\n }\n },\n yAxis: {\n type: chart.yAxisType,\n name: chart.yAxisUom ? `${chart.yAxisName} [ ${chart.yAxisUom} ]` : chart.yAxisName,\n splitLine: {\n show: chart.showGrid ?? true\n }\n },\n series: this.createSeries(chart.shapes),\n animation: chart.hasAnimations,\n };\n }\n }\n\n createSeries(shapes: Shape[]): Array<LineSeriesOption | CustomSeriesOption | ScatterSeriesOption> {\n let series: Array<LineSeriesOption | CustomSeriesOption | ScatterSeriesOption> = [];\n shapes.forEach(\n (shape: Shape) => {\n switch (shape.variant) {\n case ShapeVariant.TRACE:\n series.push(this.createTrace(shape as Trace))\n break;\n default:\n break;\n }\n }\n );\n return series;\n }\n\n createTrace(trace: Trace): LineSeriesOption | ScatterSeriesOption {\n return {\n type: trace.type,\n name: trace.name,\n data: trace.points.map(\n (point: Point) => ({\n value: [point.x, point.y],\n symbol: point.symbol ?? 'circle',\n name: point.name,\n symbolSize: point.symbolSize ?? 2,\n itemStyle: {\n color: point.color\n },\n emphasis: {\n disabled: true\n },\n label: {\n show: true,\n position: 'bottom',\n align: 'left',\n verticalAlign: 'bottom',\n formatter: () => `${point.name ?? ''}`,\n color: '#000',\n fontSize: 13,\n padding: [0, 0, 0, 10],\n width: 100,\n overflow: 'truncate',\n ellipsis: '...',\n fontWeight: 'bold'\n },\n tooltip: {\n formatter: ({ value }: { value: number[] }) => `\n <strong>${this.chart?.xAxisName}:</strong> ${value[0].toFixed(3).replace(/[.,]000$/, \"\")}\n <br>\n <strong>${this.chart?.yAxisName}:</strong> ${value[1].toFixed(3).replace(/[.,]000$/, \"\")}\n `\n }\n })\n ),\n color: trace.color,\n lineStyle: {\n width: trace.width,\n type: trace.style\n },\n smooth: trace.smooth ?? false\n };\n }\n\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { KiwiChartComponent } from './chart.component';\nimport { NgxEchartsModule } from 'ngx-echarts';\nimport * as echarts from 'echarts/core';\nimport { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DataZoomComponent, ToolboxComponent } from 'echarts/components';\nimport { LineChart, ScatterChart } from 'echarts/charts';\nimport { CanvasRenderer } from 'echarts/renderers';\necharts.use([\n TitleComponent,\n TooltipComponent,\n GridComponent,\n LineChart,\n CanvasRenderer,\n LegendComponent,\n DataZoomComponent,\n ToolboxComponent,\n ScatterChart\n]);\n\n\n@NgModule({\n declarations: [\n KiwiChartComponent\n ],\n imports: [\n CommonModule,\n NgxEchartsModule.forRoot({ echarts })\n ],\n exports: [\n KiwiChartComponent\n ]\n})\nexport class KiwiChartModule { }\n","/*\n * Public API Surface of chart\n */\n\nexport * from './lib/chart.component';\nexport * from './lib/chart.module';\nexport * from './lib/models/chart.models';\nexport * from './lib/constants/chart.constants';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAO,MAAM,iBAAiB,GAAG,qmDAAqmD;AAC/nD,MAAM,gBAAgB,GAAG;;IC0CpB,UAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,M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A,IAAA,EAAA,eAAe,EARjB,OAAA,EAAA,CAAA;YACP,YAAY;AACZ,YAAA,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;AACtC,SAAA,CAAA,EAAA,CAAA,CAAA;2FAKU,eAAe,EAAA,UAAA,EAAA,CAAA;kBAZ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACZ,wBAAA,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;AACtC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"kiwibit-chart.mjs","sources":["../../../../projects/kiwibit/chart/src/lib/constants/chart.constants.ts","../../../../projects/kiwibit/chart/src/lib/models/chart.models.ts","../../../../projects/kiwibit/chart/src/lib/chart.component.ts","../../../../projects/kiwibit/chart/src/lib/chart.module.ts","../../../../projects/kiwibit/chart/src/public-api.ts","../../../../projects/kiwibit/chart/src/kiwibit-chart.ts"],"sourcesContent":["export const ADD_POINT_IMG_OFF = \"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAADgElEQVR4nO2bTUsbURSG3zMmkWLoThetboq46AdI7b+woLYQrGNdRjDSTW0tXbkralctEWN34kQY2hJB6J+oxYK0lOhK2y7iSpSiyeR0ESe5M34sJs4cP+ZZ3TlzhrznZe5J5uYOEHK1odNOmqYZKxxYfQD3gHAfQCuApmCkeWYPwBYY31hDriUSySUSiYOTkk804H02+1hjTAG45YfKoCBgg8EvU7r++YTzTkzTbCiUSpNgPPdfXpDw20I+Pz4xMVFWo5o77XIWDwA01tzR8eZIVD04vO0/unL2Ac6wpmX/FYtrL4aG9nzVWSfT8/NN16LRu7BYJ0ISQKN6ngh9IwMDueqxPTBNM1Yoln5CnfOE35aldT972v89AO1nTtowOkG0DMbNWpTWm6MNd+zGWJ0ClW7vaHj7F7l4AEjp+iqYHwLYr0W5fbtY7LGPlB7APXDAmYtcvE1K11cB+qDGGHSMAYQuNUkDDN/VBQSx5a7lgT1QvwVuqBnlaPSHn6KChGOxNVeo2hNUA+JqRiqR2PVTVJAcU0u11iO/A64aEakPnllc7OYyzwGwiLXhkcH+LxI6xO4ALvMsKn2njamckdIhOQValXGblIgr3wNCA6QFSBMaIC1AmtAAaQHShAZIC5AmNEBagDShAdICpPG8HjCzuNjNzBnnkrN30kaWPV66Rawlva4neL4DuMyzZ1V8nbTWs55w5aeAZwOItSSArTPU4pVNVP4C84TnHnA45zyv5LjnfEofOHWvgl+EU0BagDShAdICpAkNkBYgTWiAtABpQgOkBUgTGiAtQJrQAMHPVh+lN6VEiBmgrCfU9TxfL2J7hOpdTzgrwh6gjB176dKmGccl4d3CwnVXaMceqAb8UTO0YvG2n6KCJAK4a/lrD2oGMFbUDItp0F9ZwcHUoLtCX+1B1QDWkFMziJBMG0anz9p8J20YnQx2fsswVWutGtASieQI2FDSGkG0fJFNsF+YICBWi9J6ZG9nqXrkuuARQJ/UGAMHBJojtgyOxdbO+ybqtGnGuVS6R0wDDE46iwcY3Duq68cbAABpw5gGaCwIsUHDoMlR/ckrNXb0rbF8fpwY08HJCgjC1Hb+1+uj4ROYyWZ7mWka4HZ/lfkNrTPKY+pt7zh72qWZTCZqxeO9h+/YdKGywfm8/0DaReUZYwVMucjeztLw8HBRWlTIeeU/aykWi4H+qgIAAAAASUVORK5CYII=\";\r\nexport const ADD_POINT_IMG_ON = \"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAADjUlEQVR4nO2by08TURTGvzNAK49oDCsRNqbFxPogtsQ/AhNAowsxLksTlxIxrtwZwJ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PQQeASPgrDKHIRTAGFAve2v3PoQTmTrgTA8Y3QSEsbXB+bA/IK0AWGAgS0CKaXki2x/ZkBblcVj5D1vBAfS1aXiGAAAAAElFTkSuQmCC\";","/**\n * Interface to define the Chart model.\n *\n * @export\n * @interface Chart\n */\nexport interface Chart {\n title: string;\n showLegend?: boolean;\n xAxisType: AxisType;\n xAxisName: string;\n xAxisUom?: string;\n yAxisType: AxisType;\n yAxisName: string;\n yAxisUom?: string;\n /**\n * If the chart should have rendering animations.\n *\n * @type {boolean}\n * @memberof Chart\n */\n hasAnimations?: boolean;\n /**\n * The list of Shapes that the chart must render.\n * Each Shape corrisponds to a single chart component.\n *\n * @type {Shape[]}\n * @memberof Chart\n */\n shapes: Shape[];\n /**\n * Adds interaction with the chart, so that when clicking\n * everywhere in the chart area a point gets added and it's coordinate are \n * emitted with an event to the parent component.\n *\n * @type {boolean}\n * @memberof Chart\n */\n clickToAddPoint?: boolean;\n /**\n * Custom name for the \"clickToAddPoint\" event related button. \n *\n * @type {string}\n * @memberof Chart\n */\n addPointCustomName?: string;\n /**\n * Adds the possibility to use the scroll \n * to zoom in/out the chart area.\n *\n * @type {boolean}\n * @memberof Chart\n */\n scrollToZoom?: boolean;\n /**\n * Tells the chart to render or not the grid lines.\n *\n * @type {boolean}\n * @memberof Chart\n */\n showGrid?: boolean;\n}\n\nexport type Shape = Trace;\n\nexport interface Trace {\n name?: string;\n /**\n * The variant of the Shape, must be of type Trace.\n *\n * @type {ShapeVariant}\n * @memberof Trace\n */\n variant: ShapeVariant;\n color?: string;\n /**\n * The type of the Trace drawn by the chart.\n * Can be a line or a scatter. \n *\n * @type {TraceType}\n * @memberof Trace\n */\n type: TraceType;\n width?: number;\n /**\n * The list of points that define the Trace.\n *\n * @type {Point[]}\n * @memberof Trace\n */\n points: Point[];\n /**\n * Whether to show a smooth curve or a segmented curve.\n *\n * @type {boolean}\n * @memberof Trace\n */\n smooth?: boolean;\n /**\n * The style of the Trace.\n * Can be solid, dashed or dotted.\n *\n * @type {TraceStyle}\n * @memberof Trace\n */\n style?: TraceStyle;\n /**\n * Option to make the Trace selected/deselected by default.\n * A deselected Trace is obscured from the chart and can be toggled from the legend. \n *\n * @type {boolean}\n * @memberof Trace\n */\n selectedByDefault?: boolean;\n}\n\nexport interface Point extends BasePoint {\n name?: string;\n /**\n * Symbol used to represent the point in the chart.\n *\n * @type {PointSymbol}\n * @memberof Point\n */\n symbol?: PointSymbol;\n symbolSize?: number;\n color?: string;\n}\n\nexport interface BasePoint {\n x: number;\n y: number\n}\n\nexport enum TraceType {\n LINE = \"line\",\n SCATTER = \"scatter\"\n}\n\nexport enum PointSymbol {\n NONE = \"none\",\n CIRCLE = \"circle\",\n TRIANGLE = \"triangle\",\n PIN = \"pin\",\n DIAMOND = \"diamond\"\n}\n\nexport enum TraceStyle {\n SOLID = \"solid\",\n DASHED = \"dashed\",\n DOTTED = \"dotted\"\n}\n\nexport enum AxisType {\n VALUE = \"value\"\n}\n\nexport enum ShapeVariant {\n TRACE\n}","import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';\nimport { CustomSeriesOption, ECharts, EChartsOption, LineSeriesOption, ScatterSeriesOption, zrender } from 'echarts';\nimport { ADD_POINT_IMG_OFF, ADD_POINT_IMG_ON } from './constants/chart.constants';\nimport { Chart, Shape, ShapeVariant, Trace, Point, BasePoint } from './models/chart.models';\n@Component({\n selector: 'kiwi-chart',\n template: `\n <div \n echarts \n [options]=\"chartOption\" \n [ngStyle]=\"{\n 'width': width,\n 'height': height\n }\"\n (chartInit)=\"onChartInit($event)\"\n [theme]=\"darkTheme ? 'dark' : ''\"\n ></div> \n `,\n styles: [`\n `]\n})\nexport class KiwiChartComponent implements OnChanges {\n\n /**\n * The Chart Object rendered by the canvas. For all the available options refer \n * to Chart interface in the models folder.\n *\n * @type {(Chart | null)}\n * @memberof KiwiChartComponent\n */\n @Input() chart: Chart | null = null;\n\n /**\n * Width and Height of the chart area. The dimensions refer to the father component \n * into which the kiwi-chart is inserted. For example in an empty page the width/height \n * of the chart can take the whole available space in the page.\n *\n * @type {string}\n * @memberof KiwiChartComponent\n */\n @Input() width: string = '100%';\n @Input() height: string = '480px';\n\n /**\n * This property simply activates or not the dark theme of the chart\n * defined by the Echarts library. In addition the background color can be custom\n * so that the chart can match the background of the application in which it's used.\n *\n * @type {boolean}\n * @memberof KiwiChartComponent\n */\n @Input() darkTheme: boolean = false;\n @Input() darkThemeBackground?: string;\n\n /**\n * Output event used to emit to the father component the coordinates\n * of the point clicked in the chart area. This functionality to be used must\n * have the property \"clickToAddPoint\" in the Chart object set to true.\n *\n * @type {EventEmitter<BasePoint>}\n * @memberof KiwiChartComponent\n */\n @Output() addPoint: EventEmitter<BasePoint> = new EventEmitter<BasePoint>();\n\n /**\n * The object used by echarts to initially create the Chart.\n *\n * @type {EChartsOption}\n * @memberof KiwiChartComponent\n */\n chartOption: EChartsOption = {};\n\n /**\n * The instance of the Chart.\n *\n * @type {(ECharts | null)}\n * @memberof KiwiChartComponent\n */\n echartsInstance: ECharts | null = null;\n\n /**\n * Used to perform actions (as point addition based on the cursor position) on the chart.\n *\n * @type {(zrender.ZRenderType | null)}\n * @memberof KiwiChartComponent\n */\n zr: zrender.ZRenderType | null = null;\n\n constructor() { }\n\n onChartInit(ec: ECharts) {\n this.echartsInstance = ec;\n this.setupZrEventHandler(ec);\n }\n\n setupZrEventHandler(ec: ECharts) {\n this.zr = ec.getZr();\n\n /** \n * Intercepts the click event on the chart (if the clickToAddPoint property is set to true)\n * and emits the point coordinates to the father component.\n */\n this.zr.on('click', params => {\n let option: any = ec.getOption();\n let active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;\n if (active && this.chart?.clickToAddPoint) {\n const pointInPixel = [params.offsetX, params.offsetY];\n const pointInGrid = ec.convertFromPixel('grid', pointInPixel);\n if (ec.containPixel('grid', pointInPixel) && pointInGrid) {\n let newPoint: { x: number, y: number } = {\n x: +pointInGrid[0].toFixed(3),\n y: +pointInGrid[1].toFixed(3)\n };\n this.addPoint.emit(newPoint);\n }\n }\n });\n\n /** \n * This is used to change the cursor's icon when the selected action is\n * click to add point and viceversa back to default icon when it's not selected.\n */\n this.zr.on('mousemove', params => {\n const pointInPixel = [params.offsetX, params.offsetY];\n const option: any = ec.getOption();\n const active = option?.toolbox?.[0]?.feature?.myAddPoint?.iconStatus;\n if (active) {\n this.zr?.setCursorStyle(\n ec.containPixel('grid', pointInPixel) ? 'copy' : 'default'\n );\n }\n });\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n let chart: Chart = changes['chart']?.currentValue;\n if (chart) {\n this.chartOption = {\n title: {\n text: chart.title,\n },\n backgroundColor: this.darkTheme ? this.darkThemeBackground ?? '#303030' : 'transparent', tooltip: {\n axisPointer: {\n type: 'cross',\n crossStyle: {\n color: '#bebebe'\n }\n }\n },\n toolbox: {\n orient: 'horizontal',\n left: 'center',\n feature: {\n dataZoom: {\n brushStyle: {\n borderColor: '#000',\n borderWidth: 1,\n borderType: 'dashed'\n },\n },\n saveAsImage: {},\n restore: {},\n myAddPoint: {\n show: chart.clickToAddPoint ?? false,\n title: chart.addPointCustomName ?? 'Add Point',\n icon: ADD_POINT_IMG_OFF,\n iconStatus: false,\n onclick: () => {\n let option: any = this.echartsInstance?.getOption();\n let status = option.toolbox[0].feature.myAddPoint.iconStatus;\n this.echartsInstance?.setOption({\n toolbox: {\n feature: {\n myAddPoint: {\n iconStatus: !status,\n icon: !status ? ADD_POINT_IMG_ON : ADD_POINT_IMG_OFF\n }\n }\n }\n });\n }\n }\n },\n },\n dataZoom: [\n {\n type: 'inside',\n xAxisIndex: [0],\n throttle: 0,\n filterMode: 'none',\n disabled: !chart.scrollToZoom ?? true\n },\n {\n type: 'inside',\n yAxisIndex: [0],\n throttle: 0,\n filterMode: 'none',\n disabled: !chart.scrollToZoom ?? true\n },\n ],\n legend: {\n data: chart.shapes.map(\n (shape: Shape) => ({\n name: shape.name,\n icon: 'circle'\n })\n ),\n selected: chart.shapes.reduce((accumulator, shape: Shape) => ({ ...accumulator, [shape.name as string]: shape.selectedByDefault ?? true }), {}),\n show: chart.showLegend ?? false,\n orient: 'vertical',\n left: 'right',\n padding: [60, 20],\n type: 'scroll',\n textStyle: {\n width: 100,\n fontWeight: 'bold',\n overflow: 'break'\n }\n },\n xAxis: {\n type: chart.xAxisType,\n name: chart.xAxisUom ? `${chart.xAxisName} [ ${chart.xAxisUom} ]` : chart.xAxisName,\n nameLocation: 'middle',\n nameGap: 30,\n splitLine: {\n show: chart.showGrid ?? true,\n lineStyle: {\n color: this.darkTheme ? '#595959' : '#ccc'\n }\n }\n },\n yAxis: {\n type: chart.yAxisType,\n name: chart.yAxisUom ? `${chart.yAxisName} [ ${chart.yAxisUom} ]` : chart.yAxisName,\n nameLocation: 'middle',\n nameGap: 50,\n splitLine: {\n show: chart.showGrid ?? true,\n lineStyle: {\n color: this.darkTheme ? '#595959' : '#ccc'\n }\n },\n },\n series: this.createSeries(chart.shapes),\n animation: chart.hasAnimations,\n };\n }\n }\n\n createSeries(shapes: Shape[]): Array<LineSeriesOption | CustomSeriesOption | ScatterSeriesOption> {\n let series: Array<LineSeriesOption | CustomSeriesOption | ScatterSeriesOption> = [];\n shapes.forEach(\n (shape: Shape) => {\n switch (shape.variant) {\n case ShapeVariant.TRACE:\n series.push(this.createTrace(shape as Trace))\n break;\n default:\n break;\n }\n }\n );\n return series;\n }\n\n createTrace(trace: Trace): LineSeriesOption | ScatterSeriesOption {\n return {\n type: trace.type,\n name: trace.name,\n data: trace.points.map(\n (point: Point) => ({\n value: [point.x, point.y],\n symbol: point.symbol ?? 'circle',\n name: point.name,\n symbolSize: point.symbolSize ?? 2,\n itemStyle: {\n color: point.color\n },\n emphasis: {\n disabled: true\n },\n label: {\n show: true,\n position: 'bottom',\n align: 'left',\n verticalAlign: 'bottom',\n formatter: () => `${point.name ?? ''}`,\n fontSize: 13,\n padding: [0, 0, 0, 10],\n width: 100,\n overflow: 'truncate',\n ellipsis: '...',\n fontWeight: 'bold',\n color: this.darkTheme ? '#fff' : '#000'\n },\n tooltip: {\n formatter: ({ value }: { value: number[] }) => `\n <strong>${this.chart?.xAxisName}:</strong> ${value[0].toFixed(3).replace(/[.,]000$/, \"\")}\n <br>\n <strong>${this.chart?.yAxisName}:</strong> ${value[1].toFixed(3).replace(/[.,]000$/, \"\")}\n `\n }\n })\n ),\n color: trace.color,\n lineStyle: {\n width: trace.width,\n type: trace.style\n },\n smooth: trace.smooth ?? false\n };\n }\n\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { KiwiChartComponent } from './chart.component';\nimport { NgxEchartsModule } from 'ngx-echarts';\nimport * as echarts from 'echarts/core';\nimport { TitleComponent, TooltipComponent, GridComponent, LegendComponent, DataZoomComponent, ToolboxComponent } from 'echarts/components';\nimport { LineChart, ScatterChart } from 'echarts/charts';\nimport { CanvasRenderer } from 'echarts/renderers';\necharts.use([\n TitleComponent,\n TooltipComponent,\n GridComponent,\n LineChart,\n CanvasRenderer,\n LegendComponent,\n DataZoomComponent,\n ToolboxComponent,\n ScatterChart\n]);\n\n\n@NgModule({\n declarations: [\n KiwiChartComponent\n ],\n imports: [\n CommonModule,\n NgxEchartsModule.forRoot({ echarts })\n ],\n exports: [\n KiwiChartComponent\n ]\n})\nexport class KiwiChartModule { }\n","/*\n * Public API Surface of chart\n */\n\nexport * from './lib/chart.component';\nexport * from './lib/chart.module';\nexport * from './lib/models/chart.models';\nexport * from './lib/constants/chart.constants';","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAO,MAAM,iBAAiB,GAAG,izCAAizC;AAC30C,MAAM,gBAAgB,GAAG;;ICqIpB,UAGX;AAHD,CAAA,UAAY,SAAS,EAAA;AACjB,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,SAAA,CAAA,GAAA,SAAmB,CAAA;AACvB,CAAC,EAHW,SAAS,KAAT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AAE;wBACP,kBAAkB;AACnB,qBAAA;AACF,iBAAA,CAAA;;;AChCD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/lib/chart.component.d.ts
CHANGED
|
@@ -3,13 +3,63 @@ import { CustomSeriesOption, ECharts, EChartsOption, LineSeriesOption, ScatterSe
|
|
|
3
3
|
import { Chart, Shape, Trace, BasePoint } from './models/chart.models';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class KiwiChartComponent implements OnChanges {
|
|
6
|
+
/**
|
|
7
|
+
* The Chart Object rendered by the canvas. For all the available options refer
|
|
8
|
+
* to Chart interface in the models folder.
|
|
9
|
+
*
|
|
10
|
+
* @type {(Chart | null)}
|
|
11
|
+
* @memberof KiwiChartComponent
|
|
12
|
+
*/
|
|
6
13
|
chart: Chart | null;
|
|
14
|
+
/**
|
|
15
|
+
* Width and Height of the chart area. The dimensions refer to the father component
|
|
16
|
+
* into which the kiwi-chart is inserted. For example in an empty page the width/height
|
|
17
|
+
* of the chart can take the whole available space in the page.
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof KiwiChartComponent
|
|
21
|
+
*/
|
|
7
22
|
width: string;
|
|
8
23
|
height: string;
|
|
24
|
+
/**
|
|
25
|
+
* This property simply activates or not the dark theme of the chart
|
|
26
|
+
* defined by the Echarts library. In addition the background color can be custom
|
|
27
|
+
* so that the chart can match the background of the application in which it's used.
|
|
28
|
+
*
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
* @memberof KiwiChartComponent
|
|
31
|
+
*/
|
|
32
|
+
darkTheme: boolean;
|
|
33
|
+
darkThemeBackground?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Output event used to emit to the father component the coordinates
|
|
36
|
+
* of the point clicked in the chart area. This functionality to be used must
|
|
37
|
+
* have the property "clickToAddPoint" in the Chart object set to true.
|
|
38
|
+
*
|
|
39
|
+
* @type {EventEmitter<BasePoint>}
|
|
40
|
+
* @memberof KiwiChartComponent
|
|
41
|
+
*/
|
|
9
42
|
addPoint: EventEmitter<BasePoint>;
|
|
43
|
+
/**
|
|
44
|
+
* The object used by echarts to initially create the Chart.
|
|
45
|
+
*
|
|
46
|
+
* @type {EChartsOption}
|
|
47
|
+
* @memberof KiwiChartComponent
|
|
48
|
+
*/
|
|
10
49
|
chartOption: EChartsOption;
|
|
11
|
-
|
|
50
|
+
/**
|
|
51
|
+
* The instance of the Chart.
|
|
52
|
+
*
|
|
53
|
+
* @type {(ECharts | null)}
|
|
54
|
+
* @memberof KiwiChartComponent
|
|
55
|
+
*/
|
|
12
56
|
echartsInstance: ECharts | null;
|
|
57
|
+
/**
|
|
58
|
+
* Used to perform actions (as point addition based on the cursor position) on the chart.
|
|
59
|
+
*
|
|
60
|
+
* @type {(zrender.ZRenderType | null)}
|
|
61
|
+
* @memberof KiwiChartComponent
|
|
62
|
+
*/
|
|
13
63
|
zr: zrender.ZRenderType | null;
|
|
14
64
|
constructor();
|
|
15
65
|
onChartInit(ec: ECharts): void;
|
|
@@ -18,5 +68,5 @@ export declare class KiwiChartComponent implements OnChanges {
|
|
|
18
68
|
createSeries(shapes: Shape[]): Array<LineSeriesOption | CustomSeriesOption | ScatterSeriesOption>;
|
|
19
69
|
createTrace(trace: Trace): LineSeriesOption | ScatterSeriesOption;
|
|
20
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<KiwiChartComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KiwiChartComponent, "kiwi-chart", never, { "chart": "chart"; "width": "width"; "height": "height"; }, { "addPoint": "addPoint"; }, never, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KiwiChartComponent, "kiwi-chart", never, { "chart": "chart"; "width": "width"; "height": "height"; "darkTheme": "darkTheme"; "darkThemeBackground": "darkThemeBackground"; }, { "addPoint": "addPoint"; }, never, never>;
|
|
22
72
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ADD_POINT_IMG_OFF = "image://data:image/png;base64,
|
|
2
|
-
export declare const ADD_POINT_IMG_ON = "image://data:image/png;base64,
|
|
1
|
+
export declare const ADD_POINT_IMG_OFF = "image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAADgElEQVR4nO2bTUsbURSG3zMmkWLoThetboq46AdI7b+woLYQrGNdRjDSTW0tXbkralctEWN34kQY2hJB6J+oxYK0lOhK2y7iSpSiyeR0ESe5M34sJs4cP+ZZ3TlzhrznZe5J5uYOEHK1odNOmqYZKxxYfQD3gHAfQCuApmCkeWYPwBYY31hDriUSySUSiYOTkk804H02+1hjTAG45YfKoCBgg8EvU7r++YTzTkzTbCiUSpNgPPdfXpDw20I+Pz4xMVFWo5o77XIWDwA01tzR8eZIVD04vO0/unL2Ac6wpmX/FYtrL4aG9nzVWSfT8/NN16LRu7BYJ0ISQKN6ngh9IwMDueqxPTBNM1Yoln5CnfOE35aldT972v89AO1nTtowOkG0DMbNWpTWm6MNd+zGWJ0ClW7vaHj7F7l4AEjp+iqYHwLYr0W5fbtY7LGPlB7APXDAmYtcvE1K11cB+qDGGHSMAYQuNUkDDN/VBQSx5a7lgT1QvwVuqBnlaPSHn6KChGOxNVeo2hNUA+JqRiqR2PVTVJAcU0u11iO/A64aEakPnllc7OYyzwGwiLXhkcH+LxI6xO4ALvMsKn2njamckdIhOQValXGblIgr3wNCA6QFSBMaIC1AmtAAaQHShAZIC5AmNEBagDShAdICpPG8HjCzuNjNzBnnkrN30kaWPV66Rawlva4neL4DuMyzZ1V8nbTWs55w5aeAZwOItSSArTPU4pVNVP4C84TnHnA45zyv5LjnfEofOHWvgl+EU0BagDShAdICpAkNkBYgTWiAtABpQgOkBUgTGiAtQJrQAMHPVh+lN6VEiBmgrCfU9TxfL2J7hOpdTzgrwh6gjB176dKmGccl4d3CwnVXaMceqAb8UTO0YvG2n6KCJAK4a/lrD2oGMFbUDItp0F9ZwcHUoLtCX+1B1QDWkFMzi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