Hi im trying to display the static data using the High charts and i am getting error 13 and i placed this
<div id="container" style="display: block;" ></div>
in html file and below is the data i am using to display chart
import * as HighCharts from 'highcharts';
ionViewDidLoad(){
var myChart = HighCharts.chart('container', {
chart: {
type: 'bar'
},
title: {
text: 'Fruit Consumption'
},
xAxis: {
categories: ['Apples', 'Bananas', 'Oranges']
},
yAxis: {
title: {
text: 'Fruit eaten'
}
},
series: [{
name: 'Jane',
data: [1, 0, 4]
}, {
name: 'John',
data: [5, 7, 3]
}]
});
}
Is there any better charting library for ionic for displaying the charts other that chart.js