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

StackedBarChart negative values #115

Open
beacoding opened this issue Aug 9, 2018 · 1 comment
Open

StackedBarChart negative values #115

beacoding opened this issue Aug 9, 2018 · 1 comment

Comments

@beacoding
Copy link

react-dom.development.js:2912 Error: <rect> attribute height: A negative value is not valid. ("-3.8790836274461924")

Cannot seem to have y values that are negative in bar charts. Is this expected? I was hoping to be able to do something like this https://www.highcharts.com/demo/column-negative

@williaster
Copy link
Owner

hey @biancasubion, this should definitely be supported I agree.

I think this will require some refactoring to use vx's Stack shape instead of BarStack, which exposes a offset="diverging" hook for this purpose.

PRs are welcome, otherwise I can probably get to it in the next week or so.

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

No branches or pull requests

2 participants