-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add chart.width() and chart.height() API. Closes #1752 #1753
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: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1753 +/- ##
==========================================
+ Coverage 77.12% 77.33% +0.21%
==========================================
Files 51 51
Lines 4131 4143 +12
==========================================
+ Hits 3186 3204 +18
+ Misses 945 939 -6
Continue to review full report at Codecov.
|
|
How to use for resize chart? |
|
@PashaShulga width() and height() are both setters and getters |
If data is grouped: - the tooltip will keep the same ordering as the stacked values If data is not grouped: - the tooltip will use the data_order option to sort the values Also adds an optional 'tooltip_order' option. If set, it will override the data_order option.
|
This would be extremely helpful 👍 |
|
@missingdays I'd argue that maybe a size() getter/setter that takes For the a lib that is already struggling with performance reason, providing an API that allows updating width and height at the same time and do a single flush may be better. What do you think? |
|
@panthony there is already API for resizing using both width and height Separate width and height API makes it easier to change one property without getting the other. So instead of you could just write |
|
@missingdays And in this case |
|
@missingdays You're right, what I had in mind would change the current behavior which is not good. Well, if you could just update the documentation to add The documentation site is now part of this repository. |
|
Added docs for width and height to reference.html.haml |
Add new chart.width() and chart.height() API methods for making resize easier.
This closes #1752