Skip to content

Commit

Permalink
docs: add notice about data- prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Dec 29, 2023
1 parent 1664152 commit dc56506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ import "@jop-software/hx-chart";
```html
<canvas
hx-ext="hx-chart"
hx-chart
hx-chart="true"
hx-chart-type="pie"
hx-chart-labels='["40%", "60%"]'
hx-chart-datasets='[{"data": ["40","60"], "backgroundColor": ["#dc3545", "#28a745"]}]'
></canvas>
```

> [!NOTE]
> All attributes can be prefixed with `data-`, so you can use `data-hx-chart-type` instead of `hx-chart-type`.
## Professional support and Enterprise Licensing

Expand Down

0 comments on commit dc56506

Please sign in to comment.