@@ -305,9 +305,17 @@ const table = computed(() => {
305
305
306
306
const body = tableData .map (td => {
307
307
return [td .category , td .name , td .x , td .y , td .sideName || td .quadrantSide ]
308
- });
308
+ });
309
309
310
- return { head, body };
310
+ const itsShapes = tableData .map (td => {
311
+ return {
312
+ shape: td .shape ,
313
+ color: td .color
314
+ }
315
+ });
316
+ console .log ({itsShapes});
317
+ ;
318
+ return { head, body, itsShapes };
311
319
});
312
320
313
321
const legend = computed (() => {
@@ -797,12 +805,12 @@ defineExpose({
797
805
>
798
806
<div class =" vue-ui-quadrant-legend" :style =" `font-weight:${quadrantConfig.style.chart.legend.bold ? 'bold' : ''};color:${quadrantConfig.style.chart.legend.color};font-size:${quadrantConfig.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${quadrantConfig.style.chart.legend.bold ? 'bold' : ''};height: 100%;width:100%;display: flex;align-items:center;flex-wrap: wrap;justify-content:center;column-gap: 18px;`" >
799
807
<div v-for =" (legendItem, i) in legend" :data-cy =" `quadrant-foreignObject-legend-item-${i}`" class =" vue-ui-quadrant-legend-item" @click =" segregate(legendItem.id)" :style =" `opacity:${segregated.includes(legendItem.id) ? 0.5 : 1};display: flex;align-items:center;justify-content: center;gap: 6px;cursor: pointer;height: 24px;`" >
800
- <svg height =" 12 " width =" 12 " viewBox =" 0 0 20 20" >
808
+ <svg height =" 14 " width =" 14 " viewBox =" 0 0 20 20" >
801
809
<Shape
802
810
:plot =" { x: 10, y: 10}"
803
811
:shape =" legendItem.shape"
804
812
:color =" legendItem.color"
805
- :radius =" 9 "
813
+ :radius =" 8 "
806
814
:stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
807
815
:strokeWidth =" quadrantConfig.style.chart.layout.plots.outlineWidth"
808
816
/>
@@ -817,12 +825,12 @@ defineExpose({
817
825
<!-- LEGEND AS DIV -->
818
826
<div v-if =" quadrantConfig.style.chart.legend.show && (!mutableConfig.inside || isPrinting)" class =" vue-ui-quadrant-legend" :style =" `font-weight:${quadrantConfig.style.chart.legend.bold ? 'bold' : ''};background:${quadrantConfig.style.chart.legend.backgroundColor};color:${quadrantConfig.style.chart.legend.color};font-size:${quadrantConfig.style.chart.legend.fontSize}px;padding-bottom:12px;font-weight:${quadrantConfig.style.chart.legend.bold ? 'bold' : ''}`" >
819
827
<div v-for =" (legendItem, i) in legend" :data-cy =" `quadrant-div-legend-item-${i}`" class =" vue-ui-quadrant-legend-item" @click =" segregate(legendItem.id)" :style =" `opacity:${segregated.includes(legendItem.id) ? 0.5 : 1}`" >
820
- <svg height =" 12 " width =" 12 " viewBox =" 0 0 20 20" >
828
+ <svg height =" 14 " width =" 14 " viewBox =" 0 0 20 20" >
821
829
<Shape
822
830
:plot =" { x: 10, y: 10}"
823
831
:shape =" legendItem.shape"
824
832
:color =" legendItem.color"
825
- :radius =" 9 "
833
+ :radius =" 8 "
826
834
:stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
827
835
:strokeWidth =" quadrantConfig.style.chart.layout.plots.outlineWidth"
828
836
/>
@@ -839,12 +847,12 @@ defineExpose({
839
847
:parent =" quadrantChart"
840
848
:content =" tooltipContent"
841
849
>
842
- <svg height =" 12 " width =" 12 " viewBox =" 0 0 20 20" >
850
+ <svg height =" 14 " width =" 14 " viewBox =" 0 0 20 20" >
843
851
<Shape
844
852
:plot =" { x: 10, y: 10 }"
845
853
:shape =" hoveredPlot.shape"
846
854
:color =" hoveredPlot.color"
847
- :radius =" 9 "
855
+ :radius =" 8 "
848
856
:stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
849
857
:stroke-width =" quadrantConfig.style.chart.layout.plots.outlineWidth"
850
858
/>
@@ -872,8 +880,18 @@ defineExpose({
872
880
</tr >
873
881
</thead >
874
882
<tbody >
875
- <tr v-for =" tr in table.body" >
876
- <td v-for =" td in tr" :style =" `background:${quadrantConfig.table.td.backgroundColor};color:${quadrantConfig.table.td.color};outline:${quadrantConfig.table.td.outline}`" >
883
+ <tr v-for =" (tr, i) in table.body" >
884
+ <td v-for =" (td, j) in tr" :style =" `background:${quadrantConfig.table.td.backgroundColor};color:${quadrantConfig.table.td.color};outline:${quadrantConfig.table.td.outline}`" >
885
+ <svg v-if =" j === 0" height =" 14" width =" 14" viewBox =" 0 0 20 20" >
886
+ <Shape
887
+ :plot =" { x: 10, y: 10 }"
888
+ :color =" table.itsShapes[i].color"
889
+ :shape =" table.itsShapes[i].shape"
890
+ :radius =" 8"
891
+ :stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
892
+ :strokeWidth =" quadrantConfig.style.chart.layout.plots.outlineWidth"
893
+ />
894
+ </svg >
877
895
{{ isNaN(td) ? td : td.toFixed(quadrantConfig.table.td.roundingValue) }}
878
896
</td >
879
897
</tr >
0 commit comments