@@ -224,7 +224,6 @@ const dataTooltipSlot = ref(null);
224224
225225function useTooltip (datapoint , seriesIndex , x , y ) {
226226 selectedClone .value = { x, y };
227- console .log (datapoint)
228227 const { value , yAxisName , xAxisName , id } = datapoint;
229228 hoveredCell .value = id;
230229 hoveredValue .value = value;
@@ -514,7 +513,7 @@ defineExpose({
514513 >
515514 {{ Number(minValue.toFixed(FINAL_CONFIG.style.legend.roundingValue)).toLocaleString() }}
516515 </text >
517- <line v-if =" hoveredValue !== null" :stroke =" FINAL_CONFIG.style.backgroundColor " stroke-width =" 2" :x1 =" drawingArea.right + 36" :x2 =" drawingArea.right + 72" :y1 =" sideLegendIndicatorY" :y2 =" sideLegendIndicatorY" />
516+ <line v-if =" hoveredValue !== null" :stroke =" adaptColorToBackground(dataTooltipSlot.datapoint.color) " stroke-width =" 2" :x1 =" drawingArea.right + 36" :x2 =" drawingArea.right + 72" :y1 =" sideLegendIndicatorY" :y2 =" sideLegendIndicatorY" />
518517 <path v-if =" hoveredValue !== null" :fill =" FINAL_CONFIG.style.color" stroke =" none" :d =" `M ${drawingArea.right + 36},${sideLegendIndicatorY} ${drawingArea.right + 26},${sideLegendIndicatorY - 8} ${drawingArea.right + 26},${sideLegendIndicatorY + 8}z`" />
519518 </g >
520519
@@ -552,7 +551,7 @@ defineExpose({
552551 >
553552 {{ Number(maxValue.toFixed(FINAL_CONFIG.style.legend.roundingValue)).toLocaleString() }}
554553 </text >
555- <line v-if =" hoveredValue !== null" :stroke =" FINAL_CONFIG.style.backgroundColor " stroke-width =" 2" :x1 =" bottomLegendIndicatorX" :x2 =" bottomLegendIndicatorX" :y1 =" drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height" :y2 =" drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height * 2" />
554+ <line v-if =" hoveredValue !== null" :stroke =" adaptColorToBackground(dataTooltipSlot.datapoint.color) " stroke-width =" 2" :x1 =" bottomLegendIndicatorX" :x2 =" bottomLegendIndicatorX" :y1 =" drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height" :y2 =" drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height * 2" />
556555 <path v-if =" hoveredValue !== null" :fill =" FINAL_CONFIG.style.color" stroke =" none" :d =" `M ${bottomLegendIndicatorX},${drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height} ${bottomLegendIndicatorX - 12},${drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height - 20} ${bottomLegendIndicatorX + 12},${drawingArea.bottom + FINAL_CONFIG.style.layout.cells.height - 20}z`" />
557556 </g >
558557
0 commit comments