Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70745

Highchart ionic 3 update xAxis label

$
0
0

@nocture wrote:

i using ionic 3 import * as HighCharts from ‘highcharts’;
i can display chart by the below code

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]
}]
});
}

i need to update xAxis category update without reloading chart again

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>