leeoniya / uPlot

📈 A small, fast chart for time series, lines, areas, ohlc & bars
MIT License
8.51k stars 371 forks source link

Stacked bar with negative data #887

Closed dingjunweibjkanyun closed 6 months ago

dingjunweibjkanyun commented 6 months ago

Do you have an example of a stacked bar chart with negative data?

leeoniya commented 6 months ago

the way the current renderers work, it's not possible to mix positive and negative stacked bars. values in a stack have to be all positive or all negative.

you can always write your own renderer that can support both.