datalight-charts
v1.0.15
Published
Charts from datalight
Readme
Library for rendering graphs via Highcharts based on the data loaded from DataLight
Install
npm install --save datalight-chartsUsage
import { Chart } from 'datalight-charts';
<Chart
config={chartConfig}
highcharts={highcharts}
constructorType="stockChart"
period="1month"
metric="coinmarketcap.coin.price_usd"
type="LineChart"
coins={["ETH", "XRP", "EOS", "LTC", "BCH"]}
/>Props
| Name | PropType | Description | Default |
| --------- | ------------------------------------------------------------- | ------------------------------------------------------ | ------------------------------ |
| highcharts | Object | Highchartsinstance | undefined |
| constructorType | String | String for constructor method:chart/stockChartfor Highstock charts /mapChartfor Highmaps charts |chart |
| containerProps | Object | The props object passed to the chart container | undefined |
| config | Object | Highcharts configuration for chart see | undefined |
| metric | String | Metric of measurement | coinmarketcap.coin.price_usd |
| coins | Array of string | Measurement currency set | [BTC] |
| period | one of [1day, 7day, 1month, 3month, 1year, all] | Time period of measurements from the current day | 3month |
