| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| } | ||
| ] | ||
| ]; | ||
| }, [0, []]); |
There was a problem hiding this comment.
Should we apply something like this to donut utilization as well?
Sorry, something went wrong.
There was a problem hiding this comment.
I almost did but thought it was probably outside of the scope of this PR.
Sorry, something went wrong.
There was a problem hiding this comment.
We could probably pull out the utilization/threshold data formatting function into a single util function. The logic is very similar, we just need to handle the difference between a single utilization data point and multiple threshold data points.
Sorry, something went wrong.
There was a problem hiding this comment.
Let's keep them separate. The code is complex and not easy to understand what's happening.
Sorry, something went wrong.
|
PatternFly-React preview: https://2270-pr-patternfly-react-patternfly.surge.sh |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #2270 +/- ##
==========================================
- Coverage 79.89% 79.86% -0.03%
==========================================
Files 669 669
Lines 8529 8524 -5
Branches 734 734
==========================================
- Hits 6814 6808 -6
- Misses 1362 1363 +1
Partials 353 353
Continue to review full report at Codecov.
|
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #2270 +/- ##
==========================================
+ Coverage 80.62% 80.66% +0.04%
==========================================
Files 666 666
Lines 8427 8415 -12
Branches 711 704 -7
==========================================
- Hits 6794 6788 -6
+ Misses 1280 1274 -6
Partials 353 353
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
PatternFly-React preview: https://2270-pr-patternfly-react-patternfly.surge.sh |
Sorry, something went wrong.
…by default. Pie chart tooltips display the x value of each slice as a tooltip label by default. Because we are doing our own calculations on the data and manually setting the x-value, this can lead to tooltips displaying array index values. Also, fix a bug where ChartDonutThreshold accessors were being used for child ChartDonutUtilization data prop.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Pie chart tooltips display the x value of each slice as a tooltip label by default. Because we are
doing calculations to mutate the data, this can lead to array indices being displayed as slice labels. Change defaults so that no slice labels are displayed for the static threshold donut. Also, fix a bug where ChartDonutThreshold accessors were being used to format child ChartDonutUtilization data.
Fixes #2258
Fixes #2259