@sixphere/chartjs

Web component implementation of charts elements from Chart.js library

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@sixphere/chartjs
1101.0.05 years ago5 years agoMinified + gzip package size for @sixphere/chartjs in KB

Readme

Sixphere - Chart.js Web Components
!Versionversion-badgeversion-url !Node versionnode-version-badgenode-version-url !MIT Licensemit-license-badgemit-license-url
!Downloadsdownloads-badgedownloads-url !Total downloadstotal-downloads-badgedownloads-url
!Packagephobiapackagephobia-badgepackagephobia-url !Bundlephobiabundlephobia-badgebundlephobia-url
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 Licensemit-license-url © 2019 Sixphere