Home Forums Chart Support Show a colored region in a scatter chart

Show a colored region in a scatter chart

Viewing 2 posts - 16 through 17 (of 17 total)
  • #41922

    @adithya-menon, the approach of manually configuring y-values doesn’t seem very intuitive and robust to me. I observed that on most places the second y-value was 0.4, but in few places it was changed like you said. In real world scenario I’ll get these values via an api which will return me an array of x,y values, which is suitable for area chart, like I’ve mentioned before. How will this approach work in real world scenario? That would require me to manually change values I’ll be getting from the api. Doesn’t seem practical to me. Is there any other way?

    #41965

    @eshan_23,

    You can dynamically create two Range Area Chart dataseries to fill the region by splitting the datapoints from the datapoint’s value to an arbitrary point. Kindly take a look at this updated JSFiddle for an example with complete code.


    Adithya Menon
    Team CanvasJS

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.