Nivo: Y Axis in Responsive Line incorrect.

Created on 9 Jul 2019  路  3Comments  路  Source: plouc/nivo

I've been using ResponsiveLine and noticed a peculiar issue. The Y axis range on the left does not coincide with the values on the values on the graph.

image

As you can see on the image the example also has the same issue. The value on Y is 104 but the scale is at a higher range. Anyone else had this issue?

Most helpful comment

This happens if you set yScale={{ stacked: true }}, which looks to be the case in the above image as none of the lines cross.

All 3 comments

This happens if you set yScale={{ stacked: true }}, which looks to be the case in the above image as none of the lines cross.

@wyze thanks for the reply. My bad. Since the stacking was set to true, the range on the Y Axis and the graph lines do not align. But i got it to work by setting it to false.

@wyze you know, if you wanted to make your code cleaner, it also works if you just take out stacked: true all together (no need to set it to false) :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

p45mark picture p45mark  路  3Comments

stahlmanDesign picture stahlmanDesign  路  4Comments

tj picture tj  路  4Comments

barnapisti1994 picture barnapisti1994  路  3Comments

ellipticaldoor picture ellipticaldoor  路  4Comments