Are line chart fills always supposed to fill down and right?

I have this question up with more detail on stackoverflow at: http://stackoverflow.com/questions/34161616/chart-js-line-graphs-fill-area-above-line-as-opposed-to-below-and-to-the-right?noredirect=1#comment56075183_34161616

I have a chart.js which displays two different lines, on which will always be positive and one which will always be negative.

I want to visualize the area between both lines and a value of 0 on the y axis and therefore want to fill in below the the positive line and above the negative line both ending at 0. Chart.js however always fills in the line to the bottom right of a given line as far as I cant tell.

Correct Behaviour: (from chartist.js)
old_graph

Incorrect Behaviour: (from chart.js)
new_graph

Is there a way to configure a point which fills should fill to? Am I just doing something wrong?

Author: Fantashit

1 thought on “Are line chart fills always supposed to fill down and right?

Comments are closed.