I wonder is there any way to limit number of series by default ? basically I loading data through Ajax, data might contain 50 to 80 series sometimes, I know highchart supports more than 50 series even, but it takes long time to load chart, so I have planned to show 2 series by default and remaining series I would like to give dropdown list so that user can select and can add series onclick, so far I is to have 2 data array one contains 2 series which I wanted to show by default and other array is to contain n number of series, here I am interested to send one only array through ajax and limit number of series in chart option, I don't know highchart has this option or not
Here is my example fiddle
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
$(function () {
$('#container').highcharts({
chart: {
type: 'spline'
},
legend: {
symbolWidth: 80
},
series: [{
data: [1, 3, 2, 4, 5, 4, 6, 2, 3, 5, 6],
}, {
data: [2, 4, 1, 3, 4, 2, 9, 1, 2, 3, 4, 5],
},{
data: [8, 4, 1, 6, 4, 2, 9, 1, 2, 3, 4, 5],
},{
data: [0, 6, 1, 3, 9, 2,2, 1, 2, 3, 4, 5],
},{
data: [5, 4, 8, 3, 4, 6, 9, 4, 2, 8, 3, 5],
},{
data: [9, 4, 1, 2, 4, 2, 6, 1, 2, 3, 7, 3],
}
]
});
});
Thank you