Menu

Dealing with null values on a Spline Graph

pwillemann
2013-04-09
2013-04-10
  • pwillemann

    pwillemann - 2013-04-09

    I am using GWT Highcharts 1.5.0 with my GWT project. I have successfully been able to show spline graphs with null data. In other words, there are the expected gaps in the graph if no data is available for a particular time.

    Now I have been asked to change this functionality if possible. Instead of a void, I have been asked to "fill-in" the line with a different color or different line-style to signify a gap.

    I know when I have a null value, so I tried to change the color of the line right before the null point is plotted, but this did not work. Is this functionality even possible?

    Thanks in advance

    Phil

     
  • Shawn Quinn

    Shawn Quinn - 2013-04-10

    I don't believe there's any official way within the Highcharts API to support this (other than you can create a second series that has a different color, which would appear to fill in the gaps in the first series). If you're willing to go lower level though, Highcharts does allow you to override the line drawing functions, which you could get at via JSNI.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.