Forum Replies Created by netpresent

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: Conditional area color? #19923

    Not really. I cannot invent A new date between two adjacent dates can I? And even if I could, it would be even more clumsy. Should be an standard feature I think. Is it easier if I use bars instead of splines?

    Cheers,
    JH

    in reply to: Conditional area color? #19886

    Thanks for the fast answer! That’s an interesting trick, but a bit clumsy, and the results are unusable in most situations: look at the gaps when the points around the pos/neg flips are not close to zero:

    http://jsfiddle.net/pxj4ab9y/

    Beats the purpose of a spline. I have many situations where just 1 or 2 data points are below zero (and the x axis has dates), so I cannot just invent some x values with y=0 around those points.

    I think a commercial product like CanvasJS should have a built-in solution for a trivial use case like this.

    • This reply was modified 6 years, 1 month ago by netpresent.
Viewing 2 posts - 1 through 2 (of 2 total)