Skip to content

Commit

Permalink
Added customFormat config option for customizable tooltip contents
Browse files Browse the repository at this point in the history
  • Loading branch information
graphieros committed Mar 7, 2024
1 parent f37391d commit a9f7024
Show file tree
Hide file tree
Showing 19 changed files with 974 additions and 416 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ Types are available in the 'vue-data-ui.d.ts' file under the types directory of
## Nuxt
[This repo contains a boilerplate implementation of the vue-data-ui package in Nuxt](https://github.com/graphieros/vue-data-ui-nuxt)

# Customizable tooltips
Charts with tooltips have a config option to customize tooltip contents:

```
customFormat: ({ seriesIndex, datapoint, series, config }) => {
return `<div>${ ... }</div>`;
}
```

# Slots
Most Vue Data UI chart components include a #svg slot you can use to introduce customized svg elements (shapes, text, etc).

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-data-ui",
"private": false,
"version": "2.0.4",
"version": "2.0.5",
"type": "module",
"description": "A user-empowering data visualization Vue components library",
"keywords": [
Expand Down
Loading

0 comments on commit a9f7024

Please sign in to comment.