1.0.15 • Published 5 years ago
datalight-charts v1.0.15
Library for rendering graphs via Highcharts based on the data loaded from DataLight
Install
npm install --save datalight-charts
Usage
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 | Highcharts` instance | undefined | |
constructorType | String | String for constructor method: chart / stockChart for Highstock charts / mapChart for 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 |