Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlexibleXYPlot x-axis starting with negative value #1424

Open
nitishmittal1990 opened this issue Jul 14, 2021 · 1 comment
Open

FlexibleXYPlot x-axis starting with negative value #1424

nitishmittal1990 opened this issue Jul 14, 2021 · 1 comment

Comments

@nitishmittal1990
Copy link

nitishmittal1990 commented Jul 14, 2021

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 nitishmittal1990 changed the title FlexibleXYPlot x-axis starting with negative value FlexibleXYPlot x-axis starting with negative value Jul 14, 2021
@nitishmittal1990 nitishmittal1990 changed the title FlexibleXYPlot x-axis starting with negative value FlexibleXYPlot x-axis starting with negative value Jul 14, 2021
@nanandn
Copy link

nanandn commented Nov 23, 2021

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

Anand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants