Skip to content

Conversation

@olandr
Copy link

@olandr olandr commented Dec 16, 2025

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

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

There are no UI changes.

This change adds a scaling to the log-base data to convert it to a linear space for nearby series finding. If this is not present and you use a log-based chart, you end up having millions of data points within just a few pixels.

---------

Signed-off-by: Simon Olander <simon.olander@sap.com>
@jgbernalp
Copy link
Contributor

@olandr can you check the lint errors?

Resolved linting by removing redundant mathjs dep (replaced with ** operator)
@olandr
Copy link
Author

olandr commented Dec 18, 2025

Obviously using GH mobile does not auto add the DCO. So have to redo that commit after the holidays with proper DCO and lint 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

Successfully merging this pull request may close these issues.

2 participants