@ppci-mock/stacked-column-chart

1.1.20 • Public • Published

Pie Chart

Table of contents

  1. Installation
  2. Usage
  3. Properties

Installation

NPM

npm i @ppci-mock/stacked-column-chart

// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs

Usage

Javascript

import '@ppci-mock/stacked-column-chart'

Browser

<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/stacked-column-chart/builds/index.min.js" />

<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/stacked-column-chart/builds/legacy.min.js" />

<!-- Component -->
<stacked-column-chart
  .data=${Array}
  .series=${Array}
></stacked-column-chart>

Properties

Property Type Description Possible Values
*data* Array Chart data list ```html [ { name: '1', values: { social: 100, local: 100, }, }, { name: '2', values: { social: 200, local: 50, }, }, ] ```
*series* Array Serie settings ```html [ { name: 'social', label: 'Social', color: '#ffffff', }, { name: 'local', label: 'Local', color: '#ffffff', }, ] ```

Readme

Keywords

Package Sidebar

Install

npm i @ppci-mock/stacked-column-chart

Weekly Downloads

14

Version

1.1.20

License

ISC

Unpacked Size

6.47 kB

Total Files

5

Last publish

Collaborators

  • fsevenhuysen
  • borai
  • franksevenhuysen