Skip to content

Commit ce90ec8

Browse files
committed
Improvement - VueUiXyCanvas - Add bold config options for labels
1 parent 10b14c8 commit ce90ec8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/vue-ui-xy-canvas.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ function drawYAxisSelectedDatapoints() {
850850
getYandValueAtIndex(ds).y,
851851
{
852852
align: 'right',
853-
font: `${Math.round(w.value / 40 * FINAL_CONFIG.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${FINAL_CONFIG.value.style.fontFamily}`,
853+
font: `${FINAL_CONFIG.value.style.chart.grid.y.axisLabels.bold ? 'bold ' : ''}${Math.round(w.value / 40 * FINAL_CONFIG.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${FINAL_CONFIG.value.style.fontFamily}`,
854854
color: ds.color
855855
}
856856
)
@@ -937,8 +937,6 @@ function drawDataLabels(ds) {
937937
align: 'center',
938938
font: `${FINAL_CONFIG.value.style.chart.dataLabels.bold ? 'bold ' : ''}${Math.round(w.value / 40 * FINAL_CONFIG.value.style.chart.dataLabels.fontSizeRatio)}px ${FINAL_CONFIG.value.style.fontFamily}`,
939939
color: FINAL_CONFIG.value.style.chart.dataLabels.useSerieColor ? ds.color : FINAL_CONFIG.value.style.chart.dataLabels.color,
940-
strokeColor: FINAL_CONFIG.value.style.chart.backgroundColor,
941-
lineWidth: 0.8
942940
}
943941
);
944942
}

0 commit comments

Comments
 (0)