JSPM

@sixphere/chartjs

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q43550F
  • License MIT

Web component implementation of charts elements from Chart.js library

Package Exports

  • @sixphere/chartjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sixphere/chartjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sixphere - Chart.js Web Components

Version Node version MIT License

Downloads Total downloads

Packagephobia Bundlephobia


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