Skip to content

adding percentage in tooltip#3151

Merged
offtherailz merged 5 commits intogeosolutions-it:masterfrom
baloola:tooltip_pie
Aug 10, 2018
Merged

adding percentage in tooltip#3151
offtherailz merged 5 commits intogeosolutions-it:masterfrom
baloola:tooltip_pie

Conversation

@baloola
Copy link
Copy Markdown
Contributor

@baloola baloola commented Aug 7, 2018

Description

This Pr adds a customized tooltip that also renders the percentage of the " active " pie segment

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
see #2651

What is the new behavior?
when the mouse hover the pie segment the tooltip shows the percentage

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@ghost ghost assigned baloola Aug 7, 2018
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 7, 2018

Coverage Status

Coverage increased (+0.03%) to 80.937% when pulling 3fdda29 on baloola:tooltip_pie into 59b384e on geosolutions-it:master.

Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

  • Add a unit test
  • Describe the solution in PR description

Copy link
Copy Markdown
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

This is ugly
image

I prefer something like this:
image

I'll send you a PR for this changes, please adjust tests if needed.

@baloola
Copy link
Copy Markdown
Contributor Author

baloola commented Aug 10, 2018

this change will not affect the unit test

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.

Widgets: Indicate percentage on pie charts

3 participants