rawgraphs / rawgraphs-charts

A curated selection of charts provided through RAWGraphs interface
https://rawgraphs.io/
Apache License 2.0
92 stars 43 forks source link

stacked bar chart doesn't support negative values #133

Closed declann closed 1 year ago

declann commented 1 year ago

In which chart does the bug happen?

RAWGraphs Version 2.0 beta: https://app.rawgraphs.io/

Steps to reproduce this

Aiming to reproduce the stacked bar chart @ https://observablehq.com/@declann/some-cashflows?collection=@declann/calculang which is created with vega-lite. There are negative values, but we can see that this works neatly in the vega-lite visualisation.

To attempt to reproduce the visual, I did:

But it results in an error message "Values cannot be negative".

It would be useful to support negative values, as in vega-lite.

declann commented 1 year ago

The vega-lite stacked chart (includes a line overlay which we do not need):

v(2)

Moeinmn commented 1 year ago

I would love to work on this issue @giorgiouboldi

mikima commented 1 year ago

Hi @Moeinmn! do you still plan to work on this issue?