Skip to content
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

fix(graphHelpers,chartArea): issues/92 tooltip labels #113

Merged
merged 2 commits into from
Oct 17, 2019

Conversation

cdcabrera
Copy link
Member

@cdcabrera cdcabrera commented Oct 16, 2019

What's included

  • fix(graphHelpers,chartArea): issues/92 tooltip labels
    • graphHelpers, fix the label display, added No Data
    • chartArea, fix tooltip positioning
    • locales, add in No Data
  • fix(rhelGraphCard,graphHelpers): correct y axis ticks
    • y axis ticks were being rounded incorrectly instead of abbreviated
    • updated package and unit test to confirm abbreviation continues

How to test

Proxy run check

  1. update the NPM packages with $ yarn
  2. make sure Docker is running, plus on network, then
  3. $ yarn start:proxy
  4. hover over the graph to see the improved tooltips

Example

Oct-16-2019 19-11-57

Oct-17-2019 11-39-26

Updates issue/story

closes #92

@cdcabrera cdcabrera requested a review from bclarhk October 16, 2019 23:12
@cdcabrera cdcabrera changed the title WIP fix(graphHelpers,chartArea): issues/92 tooltip labels fix(graphHelpers,chartArea): issues/92 tooltip labels Oct 16, 2019
cdcabrera added a commit to cdcabrera/curiosity-frontend that referenced this pull request Oct 16, 2019
…#113)

* graphHelpers, fix the label display, added No Data
* chartArea, fix tooltip positioning
* locales, add in No Data
Copy link
Member Author

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears the y-axis range is coming across messed up, repeating increments/ticks. Need to fix before this can be merged

@cdcabrera
Copy link
Member Author

Correction for y axis ticks applied, should now appear as

Screen Shot 2019-10-17 at 2 22 39 PM

@codecov-io
Copy link

codecov-io commented Oct 17, 2019

Codecov Report

Merging #113 into ci will decrease coverage by 0.03%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##               ci     #113      +/-   ##
==========================================
- Coverage   91.32%   91.28%   -0.04%     
==========================================
  Files          27       27              
  Lines         553      562       +9     
  Branches      145      148       +3     
==========================================
+ Hits          505      513       +8     
- Misses         38       39       +1     
  Partials       10       10
Impacted Files Coverage Δ
src/components/rhelGraphCard/rhelGraphCard.js 67.74% <0%> (ø) ⬆️
src/components/chartArea/chartArea.js 95% <0%> (-0.96%) ⬇️
src/common/graphHelpers.js 98% <100%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0031dfd...8041601. Read the comment docs.

…#113)

* graphHelpers, fix the label display, added No Data
* chartArea, fix tooltip positioning
* locales, add in No data
* y axis ticks were being rounded incorrectly instead of abbreviated
* updated package and unit test to confirm abbreviation continues
@cdcabrera
Copy link
Member Author

Updated tooltip, and expanded testing scenarios for when there isn't reporting data but there IS capacity/threshold

Oct-17-2019 15-31-45

@cdcabrera cdcabrera merged commit 351e264 into RedHatInsights:ci Oct 17, 2019
cdcabrera added a commit that referenced this pull request Oct 17, 2019
* graphHelpers, fix the label display, added No Data
* chartArea, fix tooltip positioning
* locales, add in No data
cdcabrera added a commit that referenced this pull request Oct 23, 2019
* graphHelpers, fix the label display, added No Data
* chartArea, fix tooltip positioning
* locales, add in No data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants