Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Stacked up axes #5895

Closed
SheepRock opened this issue Dec 6, 2018 · 3 comments · Fixed by #9364
Closed

[FEATURE] Stacked up axes #5895

SheepRock opened this issue Dec 6, 2018 · 3 comments · Fixed by #9364

Comments

@SheepRock
Copy link

SheepRock commented Dec 6, 2018

Expected Behavior

If multiple axes are used, there should be an option to pille them up

stackedupmultiple axes

Current Behavior

Currently, when you create a multiple axes chart, there is only the option to put them side-by-side

Possible Solution

OxyPlot (C#) have this feature, where you can set the offset of an axis

Context

I need to compare some data that may have different scales, but I don't want them to stay one on top of another. Some data are binary, value is 0 or 1, like the red and blue charts on the image above, and two graphs may overlap each other, making it harder to visualize.

@cdbelyeu
Copy link

I'm interested in this as well, but on a bar chart.
In my use case, I want to create a bar chart with server response times. Something like this:
image
Where slow response times (blue) are scaled up significantly over fast response times (green).
However, a stacked bar chart with two y axes (with different scales) means that the contents of the first axis are painted over the second,

A possible solution for my use case would be for dataset.stack option for stacked bar charts to work across multiple axes. In that case, I could
data: { datasets: [{ ... yAxisID: 'y-axis-one', stack: '1' },{ ... yAxisID: 'y-axis-two', stack: '1' }] };

And there would be no data overlap.

@kurkle
Copy link
Member

kurkle commented Jan 31, 2019

Where slow response times (blue) are scaled up significantly over fast response times (green).

Why don't you do the scaling to data and use same axis for both?

@cdbelyeu
Copy link

That's probably what I'll do for now, but it feels like kind of a hack to me.
It'll also mean having to create a custom tooltip to scale the values back down, and I won't be able to have a second scale on the right for the blue dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants