New tooltip in 4.1.0+ is inappropriately combines series on mixed chart with two y-axes #30136
Closed
3 tasks done
Labels
viz:charts:tooltip
Related to tooltips in charts
Bug description
I am trying out the new tooltip introduced in #27950 and loving it! However I notice nonsensical results on mixed charts that have two y-axes. For instance:
![image](https://private-user-images.githubusercontent.com/7569808/364064317-9fc047db-d902-4340-84ce-6f8c1b3d076c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTgyMjAsIm5iZiI6MTczOTI5NzkyMCwicGF0aCI6Ii83NTY5ODA4LzM2NDA2NDMxNy05ZmMwNDdkYi1kOTAyLTQzNDAtODRjZS02ZjhjMWIzZDA3NmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTgxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzYzMWQ3OTk5NzliMTU1YzQyYWY5ZGI3MzI0MGExMTZjMGFjNzc4M2M2ZDEwZGZjMDdjYzQwYjIxZWUwODJmZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.hUjl7LlJ4ewJQ46-JvrROGyoYjuthAWR-DTUSNilC-Q)
This chart shows volume of workorders and the % that meet some criteria. Those things are getting combined, leading to a confusing tooltip as N = 163 and 46% cannot be summed to get 16,346%.
For charts with two axes, the old tooltip behavior should be retained -- this from 4.0.2:
![image](https://private-user-images.githubusercontent.com/7569808/364065581-b3c4ea3f-6aac-4946-83fa-45d5fde379be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTgyMjAsIm5iZiI6MTczOTI5NzkyMCwicGF0aCI6Ii83NTY5ODA4LzM2NDA2NTU4MS1iM2M0ZWEzZi02YWFjLTQ5NDYtODNmYS00NWQ1ZmRlMzc5YmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTFUMTgxODQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGU5NjI2MmI3Zjg5ZmI0MjU2YmU5NWUzNWE0MDk1ZGZiZDkzOWJjZDM0NDlmZjIwOWQ1MWZhZDFmNGI0MWFjYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.hvAJIse8Sy4DFiqlQlZs6fsdf7zstmZUHMjvTaIMlAA)
How to reproduce the bug
Create a mixed chart
Set up two different y-axes
Mouse over a value
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
I don't know
Node version
I don't know
Browser
Firefox
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: