victory icon indicating copy to clipboard operation
victory copied to clipboard

layout problems for stacked area charts with mixed negative and positive values

Open boygirl opened this issue 10 years ago • 7 comments

From @boygirl on March 2, 2016 1:20

When stacked area charts have a mix of negative and positive data, the resulting charts look broken.

screen shot 2016-03-01 at 4 49 35 pm

Copied from original issue: FormidableLabs/victory-chart#132

boygirl avatar Sep 16 '16 00:09 boygirl

:+1:

stepek avatar May 16 '17 14:05 stepek

Seems this hasn't been solved yet, yes?

swittk avatar May 11 '19 09:05 swittk

True. In fact I'm not sure what the solution should be. Do you have thoughts on how charts like this should look, @swittk?

boygirl avatar May 13 '19 04:05 boygirl

I think it would be great if one could set y0 property similar as area to stacked areas as well. This would solve at least my use case regarding this issue: image (https://github.com/salmituukka/victory/commit/122744e089c4d7c0764794ec264965d1865250e0)

salmituukka avatar May 14 '19 05:05 salmituukka

@salmituukka oh cool, I see what you're saying. Yeah!

boygirl avatar May 14 '19 16:05 boygirl

Oh, actually. That wouldn't address the scenario where say, the middle stack has a negative value in it

boygirl avatar May 14 '19 16:05 boygirl

@salmituukka I created a new issue for your suggestion

boygirl avatar May 14 '19 17:05 boygirl