@@ -734,18 +734,18 @@ defineExpose({
734
734
<circle :cx =" bar.fill.sidePointer.x + 20" :cy =" bar.fill.sidePointer.y" :r =" 2" :fill =" bar.color" :stroke =" FINAL_CONFIG.style.chart.backgroundColor" v-if =" !bar.fill.miniDonut || !!selectedSerie" />
735
735
<foreignObject :x =" bar.fill.sidePointer.x + 30" :y =" bar.fill.sidePointer.y - FINAL_CONFIG.style.chart.legend.fontSize" :width =" svg.absoluteWidth / 2 - 12" :height =" FINAL_CONFIG.style.chart.legend.fontSize * 2" style =" overflow : visible ; position : relative " >
736
736
<div v-if =" FINAL_CONFIG.style.chart.legend.showDefault" :style =" `height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color}`" >
737
- {{ bar.name }}: {{ dataLabel({v: bar.proportion * 100, s: '%', r: FINAL_CONFIG.style.chart.legend.roundingPercentage}) }} ({{ applyDataLabel(
737
+ {{ applyDataLabel(
738
738
FINAL_CONFIG.style.chart.dataLabel.formatter,
739
739
bar.value,
740
- dataLabel({
740
+ `${bar.name}: ${dataLabel({v: bar.proportion * 100, s: '%', r: FINAL_CONFIG.style.chart.legend.roundingPercentage})} (${ dataLabel({
741
741
p: FINAL_CONFIG.style.chart.legend.prefix,
742
742
v: bar.value,
743
743
s: FINAL_CONFIG.style.chart.legend.suffix,
744
744
r: FINAL_CONFIG.style.chart.legend.roundingValue
745
- }),
746
- { datapoint: bar, seriesIndex: i }
745
+ })})` ,
746
+ { datapoint: bar, seriesIndex: i, type: 'barDatapoint' }
747
747
)
748
- }})
748
+ }}
749
749
</div >
750
750
<slot name =" legend" v-bind =" { datapoint: bar, config: FINAL_CONFIG, dataset: stack}" />
751
751
</foreignObject >
@@ -797,17 +797,17 @@ defineExpose({
797
797
:fill =" FINAL_CONFIG.style.chart.legend.color"
798
798
:font-size =" FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
799
799
>
800
- {{ displayArcPercentage(arc, bar.fill.donut) }} ({{ applyDataLabel(
800
+ {{ applyDataLabel(
801
801
FINAL_CONFIG.style.chart.dataLabel.formatter,
802
802
arc.value,
803
- dataLabel({
803
+ `${displayArcPercentage(arc, bar.fill.donut)} (${ dataLabel({
804
804
p: FINAL_CONFIG.style.chart.legend.prefix,
805
805
v: arc.value,
806
806
s: FINAL_CONFIG.style.chart.legend.suffix,
807
807
r: FINAL_CONFIG.style.chart.legend.roundingValue
808
- }),
809
- { datapoint: arc, seriesIndex: i }
810
- )}})
808
+ })})` ,
809
+ { datapoint: arc, seriesIndex: i, type: 'donutDatapoint' }
810
+ )}}
811
811
</text >
812
812
<text
813
813
:text-anchor =" calcMarkerOffsetX(arc).anchor"
@@ -876,17 +876,17 @@ defineExpose({
876
876
<circle :cx =" bar.fill.sidePointer.x + 20" :cy =" bar.fill.sidePointer.y" :r =" 2" :fill =" bar.color" :stroke =" FINAL_CONFIG.style.chart.backgroundColor" v-if =" !bar.fill.miniDonut || !!selectedSerie" />
877
877
<foreignObject :x =" bar.fill.sidePointer.x + 30" :y =" bar.fill.sidePointer.y - FINAL_CONFIG.style.chart.legend.fontSize" :width =" svg.absoluteWidth / 2 - 12" :height =" FINAL_CONFIG.style.chart.legend.fontSize * 2" style =" overflow : visible ; position : relative " >
878
878
<div v-if =" FINAL_CONFIG.style.chart.legend.showDefault" :style =" `height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${FINAL_CONFIG.style.chart.legend.fontSize}px; text-align:left; line-height: ${FINAL_CONFIG.style.chart.legend.fontSize}px; color:${FINAL_CONFIG.style.chart.legend.color}`" >
879
- {{ bar.name }}: {{ dataLabel({v: bar.proportion * 100, s: '%', r: FINAL_CONFIG.style.chart.legend.roundingPercentage}) }} ({{ applyDataLabel(
879
+ {{ applyDataLabel(
880
880
FINAL_CONFIG.style.chart.dataLabel.formatter,
881
881
bar.value,
882
- dataLabel({
882
+ `${bar.name}: ${dataLabel({v: bar.proportion * 100, s: '%', r: FINAL_CONFIG.style.chart.legend.roundingPercentage})} (${ dataLabel({
883
883
p: FINAL_CONFIG.style.chart.legend.prefix,
884
884
v: bar.value,
885
885
s: FINAL_CONFIG.style.chart.legend.suffix,
886
886
r: FINAL_CONFIG.style.chart.legend.roundingValue
887
- }),
888
- { datapoint: bar, seriesIndex: i }
889
- )}})
887
+ })})` ,
888
+ { datapoint: bar, seriesIndex: i, type: 'barDatapoint' }
889
+ )}}
890
890
</div >
891
891
<slot name =" legend" v-bind =" { datapoint: bar, config: FINAL_CONFIG, dataset: stack}" />
892
892
</foreignObject >
@@ -938,17 +938,17 @@ defineExpose({
938
938
:fill =" FINAL_CONFIG.style.chart.legend.color"
939
939
:font-size =" FINAL_CONFIG.style.chart.legend.fontSize / 1.5"
940
940
>
941
- {{ displayArcPercentage(arc, bar.fill.donut) }} ({{ applyDataLabel(
941
+ {{ applyDataLabel(
942
942
FINAL_CONFIG.style.chart.dataLabel.formatter,
943
943
arc.value,
944
- dataLabel({
944
+ `${displayArcPercentage(arc, bar.fill.donut)} (${ dataLabel({
945
945
p: FINAL_CONFIG.style.chart.legend.prefix,
946
946
v: arc.value,
947
947
s: FINAL_CONFIG.style.chart.legend.suffix,
948
948
r: FINAL_CONFIG.style.chart.legend.roundingValue
949
- }),
950
- { datapoint: arc, seriesIndex: i }
951
- )}})
949
+ })})` ,
950
+ { datapoint: arc, seriesIndex: i, type: 'donutDatapoint' }
951
+ )}}
952
952
</text >
953
953
<text
954
954
:text-anchor =" calcMarkerOffsetX(arc).anchor"
0 commit comments