1.3.0 • Published 6 years ago

liveon-charts-row v1.3.0

Weekly downloads
60
License
-
Repository
-
Last release
6 years ago

Installation

$ npm install liveon-charts-row

Usage

import LiveonPieChartsRow from 'liveon-charts-row';

...

const data = [
  {
  	title: 'Gender chart',
  	chart: [
  		{ label: 'Male', value: 50 },
  		{label: 'Female', value: 60 }
  	]
  }
];

...

<LiveonPieChartsRow data={data} height={300} />

Configuration

ParameterTypeRequiredDefaultDescription
dataarrayyesThe array of data do display on charts
colorsarrayno#FE5F55, #F0B67F, #D6D1B1, #a5cdad, #bdc4ac, #AAAAAAA list with 7 colors used on charts
onChartClickfuncnonullThe click action on each sector of charts. Signature: onChartClick(chart, info)
heightnumberno300The height of the chart
styleobjectno{}The normal HTML style tag
labelInsideboolfalsenoWheter if chart has to have labels inside or outside in charts
otherLabelstringno'Other'Chart classifies data and put the rest in a OTHER section, label this section as you want
1.3.0

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago