vico icon indicating copy to clipboard operation
vico copied to clipboard

Mix of positive and negative values in Barchart?

Open parrotcar00 opened this issue 3 years ago • 4 comments

Does Vico support a mix of positive and negative integer values in a Barchart? I tried a simple bar chart with a mix of positive and negative y-axis values and the resulting bar chart was strange. Before I try any further, wanted to confirm if this is indeed a supported usecase?

parrotcar00 avatar Oct 15 '22 17:10 parrotcar00

Hello @parrotcar00, Unfortunately, it’s not supported yet, but it’s a feature we will implement soon.

Gowsky avatar Oct 15 '22 18:10 Gowsky

While I was trying to figure out how to best create a chart to display a collection of positive and negative values, I came across this chart: Horizontal bar chart

Seems to me if positive and negative values come into play in a bar chart, then horizontal bar charts become easier to read? Just sharing some food for thought. Thanks for your work!

parrotcar00 avatar Oct 15 '22 18:10 parrotcar00

This is a different type of column chart that we didn’t plan to implement yet. Our goal is to achieve something like below.

image

Gowsky avatar Oct 15 '22 18:10 Gowsky

I only shared it as something I thought about, maybe good as a future enhancement idea?

Your above solution absolutely works :)

parrotcar00 avatar Oct 15 '22 18:10 parrotcar00

Hello! Vico 1.5.1 is now available, and it introduces the improvement in question.

ghost avatar Oct 25 '22 19:10 ghost