Reputation: 1
Im working with highcharts(highstock) + angularJS(without highchart-ng), and I'm having an issue to enable/disable horizontal scrollbar when series data is updated.
Is there some way to dynamically enable or disable the scrollbar according with length of the series, without using chart.destroy()??
Upvotes: 0
Views: 1647
Reputation: 3070
Could you be more specific about your problem? In this demo: https://jsfiddle.net/pano907p/6/, chart rescales after adding or updating series.
$('#btn1').bind('click', function() {
var chart = $('#container').highcharts();
chart.addSeries({
name: 'second',
data: [6, 7, 8, 9]
});
});
You can also look at this topic: Is it possible to hide the navigator in highcharts at runtime? to see hiding navigator funcionality.
Upvotes: 4