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

Bar chart xaxis/yaxis confusion #87

Closed
JCQuintas opened this issue Sep 12, 2018 · 4 comments
Closed

Bar chart xaxis/yaxis confusion #87

JCQuintas opened this issue Sep 12, 2018 · 4 comments

Comments

@JCQuintas
Copy link
Contributor

When you use the "bar" chart, the xaxis and yaxis are inverted. And that causes a bit of confusion doesn't it?

Could we have it so xaxis controls the real xaxis and yaxis controls the real yaxis?

@junedchhipa
Copy link
Contributor

You cannot imagine the amount of confusion I had while building the horizontal bar charts. I had to turn my head 90 degrees everytime I had to deal with x-axis/y-axis of bar-charts ;)

But the thing is, it is actually the correct way to deal with it as I have researched other charts as well before developing the configurations for it.

See Highcharts horizontal bar chart: https://www.highcharts.com/demo/bar-stacked
as well as I saw a similar example for d3 too.

So, let's stick to the standards.

@JCQuintas
Copy link
Contributor Author

Well, thats very confusing. Probably a leftover from some "hack" or something. But thanks for the info. :)

@junedchhipa
Copy link
Contributor

junedchhipa commented Sep 12, 2018

Well, I think - what I wrote may not be a standard way.
Looking at chart.js example and it seems - it is not the opposite!

I will keep an eye on how it can be done in better ways.

@srweal
Copy link

srweal commented Jan 31, 2019

I like your library - great job. I was going to report this bug myself, but saw this closed issue.

I think this issue should be reopened as I believe it is a non-standard implementation. The example you provide from Highcharts puts a title on the 'real y-axis', which then gets shown on the rotated bar chart (i.e. on the bottom axis). The current ApexChart version applies this incorrectly and results in x-axis settings being applied to the rotated y-axis.

There are also some options that only apply logically to the x-axis data (e.g. date formatting, trimming of labels). Hopefully it is an easy bug fix.

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

3 participants