I tried doing the
scrollbar: {
enabled: true
}
But it didnt work.
I tried using the highcharts.js that comes with highstocks.. that did not work either. Am I doing something wrong?
Re: How to make highcharts scrollable vertically in column rjs file and in its place put highstock. js file. To enable scrollbars for xAxis, put the code responsible for that inside xAxis. Also, set max parameter to 10.
Exactly Highstock is much better for big data sets than Highcharts. It's because it was designed for this purpose. It has built-in data grouping facility, data is blazingly fast grouped into optional groups, which fastens the process a lot. Feel free to ask any further questions!
Since Highcharts 5.0 you can create responsive charts much the same way you work with responsive web pages. A top-level option, responsive, exists in the configuration. One of the most handy options is chart. className that can be used to control the style of all other elements in Highcharts styled mode.
If your code still doesn't work, you could try changing this :
<script type="text/javascript" src="js/highcharts.js"></script>
with this :
<script type="text/javascript" src="https://code.highcharts.com/stock/highstock.js"></script>
and you can add this :
scrollbar: {
enabled: true
},
finally, you can add this for how many data points you want to view at a time, example " min: 6 " :
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
min: 6 <!-- LOOK at this -->
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With