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

Horizontal stacked bar chart #5

Open
imbibinebe opened this issue Jun 12, 2014 · 3 comments
Open

Horizontal stacked bar chart #5

imbibinebe opened this issue Jun 12, 2014 · 3 comments

Comments

@imbibinebe
Copy link

Id like to display the same as your default Stacked bar chart appart that stacks would be horizontal instead of vertical.
Do you know if it would be a pain or not to modify your code in order to do this (i'd like to do it) ?
Best

@datalas
Copy link
Owner

datalas commented Jun 12, 2014

If you mean that you'd like the bars to appear horizontally (as in rotated 90 degrees) then it shouldn't be too difficult.

There are a couple of options which immediately come to mind. some a bit less "hacky" than others, you could add a flag to the basic chart (and barchart) classes which denote their orientation and swap X / Y axis accordingly.

The very hacky way of doing it would be to rotate the entire paper by 90 degrees once you've finished drawing it, but I suspect that wouldn't look very nice.

When I get a moment, I'll have a play at redrawing the graphs and see how much work is involved.

In the meantime, if you want to ask me anything please feel free to do so.

@imbibinebe
Copy link
Author

Hi. thank you for your quick answer !
Rotating the entire paper doesn't seem to work at all ;)
I think that doing it the right way, for example with a "flipAxis" option, would involve quite a lot of work because labels and grid would have to be transformed as well in order to be at the right place. But i'm not sure, since i didn't have the time to look further into this yet.

@imbibinebe
Copy link
Author

And to be more accurate about what i need exactly, you can find an example here: http://www.highcharts.com/demo/bar-stacked

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

No branches or pull requests

2 participants