[FEATURE] updates nearby-series to support logarithmic scaled data #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a precondition for supporting perses/perses#3434. If a user has selected a log-base for their render, this will perform a base-change to convert the log-base vector space to a linear space for the logic handling nearby series finding.
Example
For instance If this is not present and you use a log-based chart, you end up with a "nearby-search interval" of just a few pixels. That is, if you have multiple series in the realm of ~1e4, using a log scale we would have y-values of ~4. The search interval would then be <4. But as the chart coordinates still are very large ~1e4 it would be impossible to get precise enough to hover/select a particular series.
Screenshots
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes
There are no UI changes.