I generate data on the x-axis and y-axis dynamically and displaying tall charts, but the chart becomes erratic when the range on the x-axis is high at small intervals.
How to make graphical charts for a normal horizontal scrollable chart?
Here is what I am using now:

<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div> //CODE FOR HIGHCHARTS JS function makeChart() { $('#container').highcharts({ chart: { type: 'line', marginRight: 130, marginBottom: 100 }, title: { text: 'Banana', x: -20 //center }, subtitle: { text: 'Source: banana.com', x: -20 }, xAxis: { categories: xlist }, yAxis: { title: { text: 'No. of C' }, plotLines: [{ value: 0, width: 1, color: '#808080' }] }, tooltip: { valueSuffix: 'C' }, legend: { layout: 'vertical', align: 'right', verticalAlign: 'top', x: -10, y: 100, borderWidth: 0 }, series: [{ name: $("#repoSelector option:selected").text(), data: ylist }] }); }
source share