Skip to content

v2.4.38

Compare
Choose a tag to compare
@graphieros graphieros released this 15 Dec 10:49
· 135 commits to master since this release

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}`
           }
         }
       }
     }
   }
})