close
The Wayback Machine - https://web.archive.org/web/20201005221916/https://github.com/apache/incubator-superset/issues/11088
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

Wrong scale in dual axis line chart? #11088

Open
lke27 opened this issue Sep 28, 2020 · 4 comments
Open

Wrong scale in dual axis line chart? #11088

lke27 opened this issue Sep 28, 2020 · 4 comments
Assignees

Comments

@lke27
Copy link

@lke27 lke27 commented Sep 28, 2020

I want to create a dual axis line chart, Y1 axis shows the actual figure(price) and Y2 axis shows the index (rebased number of price), as following:
image

However the lines are not overlapped in superset, which is misleading:
image

superset version: 0.36.0

@lke27 lke27 added the #bug label Sep 28, 2020
@issue-label-bot
Copy link

@issue-label-bot issue-label-bot bot commented Sep 28, 2020

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.79. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Sep 29, 2020

We do some basic math in superset to align the ticks on both sides. Are you saying the visualization shown is wrong or that it doesn't match your expectations of how axis/range should be set?

@lke27
Copy link
Author

@lke27 lke27 commented Sep 29, 2020

We do some basic math in superset to align the ticks on both sides. Are you saying the visualization shown is wrong or that it doesn't match your expectations of how axis/range should be set?

I would say that it is wrong because the "index" is just a rebase number of "price", so the lines should be totally overlapped.
My expectation is the two axis scale should be aligned. For example, as showing in the 2nd graph above, when I point to the green data point at "21/11/2018", the price showing in tooltip is 11.3K, but it does not align to the price (left) axis, which is at ~11.2K. It is misleading.

And if in case there are two sets of data, one is not a rebase of another, you want to compare the trend/pattern of them, the chart cannot present it accuratley because the scales are not aligned. And there is no function for us to change the scale settings of both axis.

@junlincc
Copy link

@junlincc junlincc commented Sep 29, 2020

Thanks for reporting, we will investigate this issue next week and let you know.

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.