-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Experimental] Add support for y/y2 log scale #2678
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2678 +/- ##
==========================================
+ Coverage 80.29% 80.47% +0.18%
==========================================
Files 59 59
Lines 4537 4595 +58
==========================================
+ Hits 3643 3698 +55
- Misses 894 897 +3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #2678 +/- ##
==========================================
+ Coverage 81.01% 81.18% +0.17%
==========================================
Files 59 59
Lines 4640 4699 +59
==========================================
+ Hits 3759 3815 +56
- Misses 881 884 +3
Continue to review full report at Codecov.
|
It's easier to reason with 'type', 'domain' then 'range' as the domain is the 'input' of the scale whereas the range is the 'output'.
6558455
to
bdfbc2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice feature to have! Thank you for the contribution!
LGTM
* add 'log' support for Y axis type * add documentation for Y axis type * rename var * add API to update y Axis type * add documentation for axis.types() API * add very basic tests * correct linter issue * remove unused 'padding' variable * use same scale as yAxis when converting pixels to axis values * swap range/domain as parameter for getY It's easier to reason with 'type', 'domain' then 'range' as the domain is the 'input' of the scale whereas the range is the 'output'. * add jsdoc for getY method
Hello there,
I'm reintroducing this PR that I did a while ago, this is kind of experimental and will probably have shortcomings with some combinaisons (stacked charts, etc..)
But it works for simple cases and may be enough for most of people.
May be enough to closes #1360