Highstock set different colors for different markers

Posted by user1651804 on Stack Overflow See other posts from Stack Overflow or by user1651804
Published on 2012-11-24T20:47:54Z Indexed on 2012/11/26 5:04 UTC
Read the original article Hit count: 351

Filed under:
|
|

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? :/

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about highcharts