react-native-highcharts-wrapper
Easy to use wrapper to utilise Highcharts within react-native applications.
Getting Started
npm install react-native-highcharts-wrapper
or
yarn add react-native-highcharts-wrapper
Example
; { const Highcharts = 'Highcharts'; const conf = chart: type: 'spline' animation: Highchartssvg marginRight: 10 events: { const series = thisseries0; ; } title: text: 'Live Bitcoin Price' xAxis: type: 'datetime' tickPixelInterval: 150 yAxis: title: text: 'Price USD' plotLines: value: 0 width: 1 color: '#CCC' tooltip: { return '<b>' + thisseriesname + '</b><br/>' + Highcharts + '<br/>' + Highcharts ; } exporting: enabled: false series: name: 'BTC' data: { // generate an array of random data const data = ; const time = ; for let i = -19; i <= 0; i += 1 data; return data; } ; const options = global: useUTC: false lang: decimalPoint: ',' thousandsSep: '.' ; return <ChartView style= height: 350 config=conf options=options />;}
Props
Prop | Required | Description |
---|---|---|
config | true | Highcharts configuration See the docs.>> |
stock | false | Use Highstock instead of Highcharts - Default false |
style | false | Style object to be passed into the WebView |
heatMap | false | Use HeatMap - Default false |
options | false | Pass global and lang options into Highcharts |
enableRadiusPie | false | Import radius pie library from highcharts - Default false |
more | false | Import highstock-more library - Default false |
guage | false | Import gauge library from highcharts - Default false |