react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

FlexibleXYPlot x-axis starting with negative value

Open nitishmittal1990 opened this issue 3 years ago • 1 comments

FlexibleXYPlot x-axis is starting with a negative value even though xBaseValue is set to 1.

Inside FlexibleXYPlot I am using VerticalBarSeries component, there also data which I am passing to VerticalBarSeries is [{x: 0, y: 0}, {x: 5, y: 14}, {x: 10, y: 23}, {x: 15, y: 6}, {x: 20, y: 6}].

I am expecting my x-axis to start with 0 instead of -2.

Attaching codesandbox link https://codesandbox.io/s/react-vis-bar-chart-w25hn

nitishmittal1990 avatar Jul 14 '21 11:07 nitishmittal1990

I have a similar problem. @nitishmittal1990 did you find a solution for this?

Anand

nanandn avatar Nov 23 '21 18:11 nanandn