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?

@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.

@olandr olandr force-pushed the feat/logarithmic-support-3434 branch from c575cfd to 424b00a Compare January 6, 2026 06:39
@olandr olandr requested a review from a team as a code owner January 6, 2026 06:39
@olandr olandr force-pushed the feat/logarithmic-support-3434 branch from 424b00a to b994aeb Compare January 6, 2026 06:39
@olandr
Copy link
Author

olandr commented Jan 6, 2026

@olandr can you check the lint errors?

Done! @jgbernalp

Resolved linting by removing redundant mathjs dep (replaced with ** operator)

Signed-off-by: Simon Olander <simon.olander@sap.com>
@olandr olandr force-pushed the feat/logarithmic-support-3434 branch from b994aeb to bcf1287 Compare January 6, 2026 10:01
@olandr
Copy link
Author

olandr commented Jan 6, 2026

Is it just to merge it or should something else happen first? The contribution.md mentions squashing, but seems to me that this is not an option here.

@Nexucis
Copy link
Member

Nexucis commented Jan 6, 2026

thank you for the changes @olandr.
Yeah I think we are good to merge.

@jgbernalp I am planning a new release for perses/perses. I believe this change should be part of it also. So I guess I should release the shared package as well

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.

3 participants