@sixphere/chartjs
v1.0.0
Published
Web component implementation of charts elements from Chart.js library
Downloads
26
Readme
Sixphere - Chart.js Web Components
Web component implementation of charts elements from Chart.js library. This implementation includes the following charts:
Install
npm install '@sixphere/chartjs' --save
HTML API
Attributes
| Attribute | Values | Description | |-----------|--------------------------------------------------------|------------------------------------------------------------------| | width | [Optional] Number - default: 0 | Chart width | | height | [Optional] Number - default: 0 | Chart height | | data | [Optional] Object - default: {} | Chart data (see Chart.js reference) | | options | [Optional] Object - default: {} | Chart options (see Chart.js reference) |
How to use?
Register as a custom element
import { ChartBar, ChartLine } from '@sixphere/chartjs'
CustomElements.define(ChartBar.is, ChartBar)
CustomElements.define(ChartLine.is, ChartLine)
Author
Sixphere is not only a group of experienced professionals, that keep a huge amount of knowledge, take care about what and how they do their job. They solve their partner problems in an agile way and are aware of their customer needs through emotional intelligence connections.
Sixphere is a simpler way of understanding IT services, based on a strong and well balanced mix-ture of principles.
License
MIT License © 2019 Sixphere