-
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
Make sure innerRadius is not NaN value #2631
base: master
Are you sure you want to change the base?
Conversation
Error: attribute dx: Expected length, "NaNpx". Replication: Happens every time lost focus from/to browser tab when gauge chart is dynamically generated. Investigation: w = config.gauge_width is has assigned value 10 $$.innerRadiusRatio is -Infinity $$.innerRadius is NaN
Codecov Report
@@ Coverage Diff @@
## master #2631 +/- ##
==========================================
+ Coverage 80.15% 80.16% +<.01%
==========================================
Files 57 57
Lines 4516 4517 +1
==========================================
+ Hits 3620 3621 +1
Misses 896 896
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #2631 +/- ##
==========================================
+ Coverage 80.15% 80.16% +<.01%
==========================================
Files 57 57
Lines 4516 4517 +1
==========================================
+ Hits 3620 3621 +1
Misses 896 896
Continue to review full report at Codecov.
|
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.
Thank you for looking into this! one comment.
@@ -492,7 +492,8 @@ ChartInternal.prototype.redrawArc = function (duration, durationForExit, withTra | |||
backgroundArc | |||
.exit() | |||
.remove(); | |||
|
|||
|
|||
$$.innerRadius = $$.innerRadius || 0; |
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.
I think this is not a right place to do this. How about checking this in updateRadius
?
Error: attribute dx: Expected length, "NaNpx".
Replication:
Happens every time lost focus from/to browser tab when gauge chart is dynamically generated.
Investigation:
w = config.gauge_width is has assigned value 10
$$.innerRadiusRatio is -Infinity
$$.innerRadius is NaN