{{ h.label }}
- {{ item.name }}
+
+
+ {{ item.name }}
+
{{ item[h.value] }}
@@ -46,11 +49,10 @@ const props = defineProps({
default: () => ({}),
},
});
-const { aggregations, isRight } = useLegendProcess(props.config);
+const { aggregations, chartColors, isRight } = useLegendProcess(props.config);
const { source, headers } = aggregations(props.data);
+const keys = Object.keys(props.data || {}).filter(
+ (i: any) => Array.isArray(props.data[i]) && props.data[i].length
+);
+const colors = chartColors(keys);
-