Highcharts Multiple series one Label

Showing multiple lines for one series in Highcharts ?

$(function () { $('#container').highcharts({ title: { text: 'Sample data', x: -20 //center }, xAxis: { }, yAxis: { title: { text: ‘sample data’ }, plotLines: [{ value: 0, width: 1, color: ‘#808080’ }] }, tooltip: { valueSuffix: ‘°C’ }, legend: { layout: ‘vertical’, align: ‘right’, verticalAlign: ‘middle’, borderWidth: 0 }, series: [{ name: ‘oa: ch1’, data: [23,12,12,23,23,23,23] }, { name: ‘oa: ch2’, data: [12,32,23,23,23,23,23] }, { name: ‘oa: ch3’, data: [23,23,23,23,11,11,11] },{ name: ‘ra: ch1’, data: [12,23,12,12,23,23,23] }, { name: ‘ra: ch2’, data: [23,23,23,12,32,23,23] }, { name: ‘ra: ch3’, data: [11,11,23,23,11,23,23] }] }); }); function channelData(data, rotorSpeed,oA,rotorSpeed1,oA1){ $(‘#container’).highcharts({ title: { text: ‘Trend Graph’, x: -20 //center }, xAxis: { categories: data }, yAxis: { title: { text: ” }, plotLines: [{ value: 0, width: 1, color: ‘#808080’ }], labels : { enabled : false } }, tooltip: { valueSuffix: ‘°C’ }, legend: { layout: ‘vertical’, align: ‘left’, verticalAlign: ‘middle’, borderWidth: 0 }, series: [{ name: ‘RotorSpeed:’, data: rotorSpeed, tooltip: { valueSuffix: ‘R/S RPM’, } },{ name: ‘oa:’, data: oA, tooltip: { valueSuffix: ‘% OA’, } },{ linkedTo: ‘RotorSpeed:’, data: rotorSpeed1, tooltip: { valueSuffix: ‘R/S RPM’, } },{ linkedTo: ‘oa:’, data: oA1, tooltip: { valueSuffix: ‘% OA’, } }] }); }

One thought on “Showing multiple lines for one series in Highcharts ?

  1. Reading your site gave me a lot of interesting info , it deserves to go viral, you need some initial traffic only.
    How to get initial traffic?? Search for: masitsu’s effective method

Leave a Reply

Your email address will not be published.Required fields are marked *