How do I condition the number of series I want displayed on my Highcharts ?
That is:
- If the value% co_of% is equal to 1 that shows the following:
series: [{
name: '<span style="font-size: 65%">' + datos.fecha[0] + '</span>',
color: '#ff6600',
data: [datos[0][0], datos[0][1], datos[0][2], datos[0][3], datos[0][4]],
pointPlacement: 'off'
}]
- If the value% co_of% is equal to 2 then:
series: [{
name: '<span style="font-size: 65%">' + datos.fecha[0] + '</span>',
color: '#ff6600',
data: [datos[0][0], datos[0][1], datos[0][2], datos[0][3], datos[0][4]],
pointPlacement: 'off'
},{
name: '<span style="font-size: 65%">' + datos.fecha[1] + '</span>',
color: '#0f6600',
data: [datos[1][0], datos[1][1], datos[1][2], datos[1][3], datos[1][4]],
pointPlacement: 'off'
}]