@@ -305,9 +305,17 @@ const table = computed(() => {
305305
306306 const body = tableData .map (td => {
307307 return [td .category , td .name , td .x , td .y , td .sideName || td .quadrantSide ]
308- });
308+ });
309309
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 };
311319});
312320
313321const legend = computed (() => {
@@ -797,12 +805,12 @@ defineExpose({
797805 >
798806 <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;`" >
799807 <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" >
801809 <Shape
802810 :plot =" { x: 10, y: 10}"
803811 :shape =" legendItem.shape"
804812 :color =" legendItem.color"
805- :radius =" 9 "
813+ :radius =" 8 "
806814 :stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
807815 :strokeWidth =" quadrantConfig.style.chart.layout.plots.outlineWidth"
808816 />
@@ -817,12 +825,12 @@ defineExpose({
817825 <!-- LEGEND AS DIV -->
818826 <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' : ''}`" >
819827 <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" >
821829 <Shape
822830 :plot =" { x: 10, y: 10}"
823831 :shape =" legendItem.shape"
824832 :color =" legendItem.color"
825- :radius =" 9 "
833+ :radius =" 8 "
826834 :stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
827835 :strokeWidth =" quadrantConfig.style.chart.layout.plots.outlineWidth"
828836 />
@@ -839,12 +847,12 @@ defineExpose({
839847 :parent =" quadrantChart"
840848 :content =" tooltipContent"
841849 >
842- <svg height =" 12 " width =" 12 " viewBox =" 0 0 20 20" >
850+ <svg height =" 14 " width =" 14 " viewBox =" 0 0 20 20" >
843851 <Shape
844852 :plot =" { x: 10, y: 10 }"
845853 :shape =" hoveredPlot.shape"
846854 :color =" hoveredPlot.color"
847- :radius =" 9 "
855+ :radius =" 8 "
848856 :stroke =" quadrantConfig.style.chart.layout.plots.outline ? quadrantConfig.style.chart.layout.plots.outlineColor : 'none'"
849857 :stroke-width =" quadrantConfig.style.chart.layout.plots.outlineWidth"
850858 />
@@ -872,8 +880,18 @@ defineExpose({
872880 </tr >
873881 </thead >
874882 <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 >
877895 {{ isNaN(td) ? td : td.toFixed(quadrantConfig.table.td.roundingValue) }}
878896 </td >
879897 </tr >
0 commit comments