You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing an issue with stack charts with a single key with negative values. I am using d3.stackOffsetDiverging. If my single key data has all negative values, they all appear above the x axis. If it has some negative values, the negative stack do not show up. If they are all positive it appears as it should. To calculate the stack data, I am running a function that looks like this:
I am experiencing an issue with stack charts with a single key with negative values. I am using
d3.stackOffsetDiverging
. If my single key data has all negative values, they all appear above the x axis. If it has some negative values, the negative stack do not show up. If they are all positive it appears as it should. To calculate the stack data, I am running a function that looks like this:See below for the results I am getting with various inputs for data
For
getStackedData(data, keys)
returnsWhich looks like
However, if I add another item to keys and run
getStackedData(data, ["dogs", ""])
the x and y values switch. See below.This makes the chart look correct except for the extra key in the legend. See below
I am using d3-shape version
1.2.0
. Let me know if you can fix this issue!The text was updated successfully, but these errors were encountered: