Highstock set different colors for different markers
- by user1651804
I am tryting to develop a chart in Highstock where each marker got an individual color.
When i push my Data in an Array like this :
series.data.push([
parseInt(Math.round(myDate.getTime())),
parseInt(Math.round(myDate.getHours()))
]);
The Data is shown correctly, but when i try to set the color within each data-object like this, it doesn't work to show points.
series.data.push([ {
x: parseInt(Math.round(myDate.getTime())),
y: parseInt(Math.round(myDate.getHours())),
marker:{fillColor: 'red'}} ]);
What am i missing?
Update: When i inspect it with firebug i can see that the series is set correctly within the chart object. so why does it now show up? :/