chartjs-web-components

The web components for chart.js which is built on lit-element ## Live Demo https://fsx950223.github.io/chartjs-web-components/live-demo/ ## Install ``` bash npm i chartjs-web-components ``` ## Lit-Element Usage ``` html <base-chart id="chart" typ


Keywords
web-components, html, chart.js, lit-element, typescript, react, vue, chartjs, webcomponents
License
MIT
Install
npm install chartjs-web-components@2.8.0

Documentation

Chartjs Web Components

The web components for chart.js which is built on lit-element

Live Demo

https://fsx950223.github.io/chartjs-web-components/live-demo/

Install

npm i chartjs-web-components

Lit-Element Usage

<base-chart id="chart" type="chartType" .data="${chartData}" .options="${chartOptions}"></base-chart>
import 'chartjs-web-components'

Vue Example

<base-chart id="chart" type="chartType" :data="data" :options="options"></base-chart>
import VueChartjs from 'chartjs-web-components/dist/vue.js'

React Example

import ReactChartjs from 'chartjs-web-components/dist/react.js'
<ReactChartjs data={data} type={type} options={options}/>

Demo

npm run start