evui 3.4.151 → 3.4.153
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/evui.common.js +453 -134
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +453 -134
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/Chart.vue +68 -64
- package/src/components/chart/chart.core.js +25 -19
- package/src/components/chart/plugins/plugins.interaction.js +5 -2
- package/src/components/chart/plugins/plugins.legend.js +44 -8
- package/src/components/chart/plugins/plugins.scrollbar.js +2 -9
- package/src/components/chart/scale/scale.linear.js +156 -25
- package/src/components/chart/scale/scale.time.js +94 -0
- package/src/components/chart/uses.js +7 -0
|
@@ -248,6 +248,9 @@ const DEFAULT_OPTIONS = {
|
|
|
248
248
|
},
|
|
249
249
|
seriesReverse: false,
|
|
250
250
|
coordinateDedupe: true,
|
|
251
|
+
eventBehavior: {
|
|
252
|
+
legendClick: 'update',
|
|
253
|
+
},
|
|
251
254
|
};
|
|
252
255
|
|
|
253
256
|
const DEFAULT_DATA = {
|
|
@@ -402,6 +405,10 @@ export const useModel = (injectGroupSelectedLabel, injectGroupHoveredLabel) => {
|
|
|
402
405
|
injectGroupHoveredLabel.value.label = null;
|
|
403
406
|
}
|
|
404
407
|
},
|
|
408
|
+
'click-legend': async (e) => {
|
|
409
|
+
await nextTick();
|
|
410
|
+
emit('click-legend', e);
|
|
411
|
+
},
|
|
405
412
|
};
|
|
406
413
|
|
|
407
414
|
return {
|