-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
indicator
: several improvements/fixes
#4029
Conversation
Added one in 68c2aef |
Codepen has been updated to use bundle built off commit b942832: https://codepen.io/antoinerg/pen/bPQEPr?editors=0010 |
simplify opts passed in indicator plot
@antoinerg are you planning on addressing
as mentioned in #4029 (comment) ? Is That said, this is a small detail, I'd be ok punting this for later. The fixes here in this PR are fantastic! |
Yes the blank is not working. |
Thanks @archmoj ! Don't push directly on this branch as I will need to test it thoroughly before accepting the change. |
By defaulting First demo using modified version of '.3s' format - I noticed the cc: @nicolaskruchten @alexcjohnson @jonmmease |
Generally speaking, I prefer "blank as the default" rather than 3-decimals. |
But I don't think the default for negative values should be red + triangle-down + parens + minus-sign. that feels like overkill squared :) |
@nicolaskruchten Which one should we ship as a default? A minus sign or parentheses? |
Minus sign, no parens plz |
What about default formatting for |
|
Great! I also think so. |
- use ax.setScale and Axes.calcTicks with mocked range [0, 1.5 * value] or the gauge.axis one to make that work. - fixup jasmine tests and baselines
... so that we don't get console warnings
@antoinerg feel free to merge this PR 💃 for me! |
This PR attempts to fix a few visual issues that can occur on animation:
delta
is not consistent with the currently displayed value (ce3f2d1)Drawing.bBox
call (1e7f21d)number
ordelta
) can jump around if the text size changes a lot from the start value to end value. We solve this by aligning the numbers using the minimum X offset seen up to this point (2c378e0).Additional bug fix:
valueformat
for bothnumber
anddelta
if an empty string is specified (4d2ad95)null
valuehttps://codepen.io/antoinerg/pen/bPQEPr?editors=0010