Commit 6d22631
authored
[FEATURE] updates nearby-series to support logarithmic scaled data (#11)
* [FEATURE] updates nearby-series to support logarithmic scaled data
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>
* Update nearby-series.ts
Resolved linting by removing redundant mathjs dep (replaced with ** operator)
Signed-off-by: Simon Olander <simon.olander@sap.com>
---------
Signed-off-by: Simon Olander <simon.olander@sap.com>1 parent 29f8802 commit 6d22631
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
| |||
336 | 335 | | |
337 | 336 | | |
338 | 337 | | |
339 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
340 | 352 | | |
341 | 353 | | |
342 | 354 | | |
| |||
439 | 451 | | |
440 | 452 | | |
441 | 453 | | |
442 | | - | |
443 | 454 | | |
444 | 455 | | |
445 | 456 | | |
| |||
448 | 459 | | |
449 | 460 | | |
450 | 461 | | |
451 | | - | |
452 | 462 | | |
453 | 463 | | |
454 | 464 | | |
0 commit comments