Skip to content

Commit 5b37574

Browse files
committed
Update docs
1 parent 9658080 commit 5b37574

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,21 @@ customFormat: ({ seriesIndex, datapoint, series, config }) => {
171171

172172
```
173173

174+
# Data formatting
175+
176+
Data labels can be customized using the `formatter` config attribute (since v2.3.29 on all chart components):
177+
178+
```
179+
// the formatter attribute is generally placed under label or dataLabel config attribute objects
180+
181+
const config = ref({
182+
formatter: ({ value, config }) => {
183+
return `formatted ${value}`;
184+
}
185+
})
186+
187+
```
188+
174189
# Slots
175190

176191
## #svg slot

0 commit comments

Comments
 (0)