diff --git a/extensions/chart/src/chartLayout.vue b/extensions/chart/src/chartLayout.vue index 28d3d76..461949e 100644 --- a/extensions/chart/src/chartLayout.vue +++ b/extensions/chart/src/chartLayout.vue @@ -152,7 +152,7 @@ watchEffect(() => { data.value.datasets.forEach((dataset) => { dataset.data.forEach((dataUnit, index) => { - if (!DataUtil.indexNumber(dataUnit) && data.value.labels && (data.value.labels[index] as DateTime).isValid) { + if (!dataUnit.index && data.value.labels && (data.value.labels[index] as DateTime).isValid) { dataUnit.index = data.value.labels[index] as DateTime } }) diff --git a/test/src/App.vue b/test/src/App.vue index a1e6732..ec11880 100644 --- a/test/src/App.vue +++ b/test/src/App.vue @@ -44,19 +44,17 @@ onMounted(() => { )" > - - + + - + +