lana-k / sqliteviz

Instant offline SQL-powered data visualisation in your browser
https://sqliteviz.com
Apache License 2.0
2.12k stars 115 forks source link

Filtered values influence axis range if Split transformation is active #76

Closed oliver closed 3 years ago

oliver commented 3 years ago

If I have a Filter transformation and also a Split transformation, the filtered (ie. invisible) values will still influence the automatic range of the graph axis. Looks like this doesn't affect all graph types, though (it happens with Scatter graphs, but apparently not with Bar graphs).

Here's an example:

Not sure which of these behaviours is "correct". Personally I'd prefer if hidden points would never influence the axis range.

Tested with sqliteviz version 0.15.2.

lana-k commented 3 years ago

The chart editor is a third-party component react-chart-editor based on plotly.js. So, you should create that kind of issue there.

oliver commented 3 years ago

Thanks! I will try to report it for react-chart-editor or plotly.js. I guess you can close the issue here (but please don't delete it, or I'll have to recreate the how-to-repeat steps :)