github graphieros/vue-data-ui v2.3.30

latest releases: v3.1.7, v3.1.6, v3.1.5...
10 months ago

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

Don't miss a new vue-data-ui release

NewReleases is sending notifications on new releases.