This release adds the new formatter
config attribute to all charts with data labels, to give you more control on their formatting.
const config = ref({
// The formatter attribute is generally located in labels or dataLabels attributes, you can find them in the docs
formatter: ({ value, config }) => {
// the config param gives additional data you may require in some cases
return `my format: ${value.toLocaleString('de-DE')}`;
}
});
The following charts have the formatter located in the dataset, and not the config:
. VueUiSparkbar
. VueUiRadar