https://github.com/jop-software/hx-chart
HTMX extension to use chart.js
https://github.com/jop-software/hx-chart
htmx htmx-extension
Last synced: 9 months ago
JSON representation
HTMX extension to use chart.js
- Host: GitHub
- URL: https://github.com/jop-software/hx-chart
- Owner: jop-software
- License: mit
- Created: 2023-12-28T18:21:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T11:17:28.000Z (about 2 years ago)
- Last Synced: 2025-03-16T16:06:19.437Z (10 months ago)
- Topics: htmx, htmx-extension
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@jop-software/hx-chart
- Size: 37.1 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@jop-software/hx-chart - chart.js as an htmx.org plugin
> Use [chart.js](https://www.chartjs.org/) as an extension in HTMX.
## Installation
```console
# npm
npm install @jop-software/hx-chart
# pnpm
pnpm add @jop-software/hx-chart
```
Make sure to include `chart.js` as well as `htmx.org` separately.
## Usage
```javascript
import "@jop-software/hx-chart";
```
```html
```
> [!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
Professional support, as well as enterprise licenses are available. Please contact [support@jop-software.de](mailto:support@jop-software.de) for more information.