v2.4.38
VueUiGauge
Add config attributes to further control labels:
config.style.chart.layout.markers.show: boolean; // default: true
config.style.chart.layout.markers.prefix: string; // default: ""
config.style.chart.layout.markers.suffix: string; // default: ""
config.style.chart.layout.markers.formatter: Function | null ; // default: null
config.style.chart.legend.show: boolean; // default: true
Reminder on how to use the formatter:
const config = ref({
style: {
chart: {
layout: {
markers: {
formatter: ({ value }) => {
return `my string ${value}`
}
}
}
}
}
})