Skip to content

Commit a9f7024

Browse files
committed
Added customFormat config option for customizable tooltip contents
1 parent f37391d commit a9f7024

19 files changed

+974
-416
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ Types are available in the 'vue-data-ui.d.ts' file under the types directory of
108108
## Nuxt
109109
[This repo contains a boilerplate implementation of the vue-data-ui package in Nuxt](https://github.com/graphieros/vue-data-ui-nuxt)
110110

111+
# Customizable tooltips
112+
Charts with tooltips have a config option to customize tooltip contents:
113+
114+
```
115+
116+
customFormat: ({ seriesIndex, datapoint, series, config }) => {
117+
return `<div>${ ... }</div>`;
118+
}
119+
120+
```
121+
111122
# Slots
112123
Most Vue Data UI chart components include a #svg slot you can use to introduce customized svg elements (shapes, text, etc).
113124

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.0.4",
4+
"version": "2.0.5",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

0 commit comments

Comments
 (0)