-
Notifications
You must be signed in to change notification settings - Fork 3
[FEATURE] updates nearby-series to support logarithmic scaled data #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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>
55450e1 to
2233570
Compare
|
@olandr can you check the lint errors? |
|
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. |
c575cfd to
424b00a
Compare
424b00a to
b994aeb
Compare
Done! @jgbernalp |
Resolved linting by removing redundant mathjs dep (replaced with ** operator) Signed-off-by: Simon Olander <simon.olander@sap.com>
b994aeb to
bcf1287
Compare
|
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. |
|
thank you for the changes @olandr. @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 |
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.