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

Partitioning visualizations - improvement ideas #518

Open
7 of 11 tasks
monfera opened this issue Jan 20, 2020 · 3 comments
Open
7 of 11 tasks

Partitioning visualizations - improvement ideas #518

monfera opened this issue Jan 20, 2020 · 3 comments
Labels
enhancement New feature or request meta ...meta issue :partition Partition/PieChart/Donut/Sunburst/Treemap chart related

Comments

@monfera
Copy link
Contributor

monfera commented Jan 20, 2020

This is a set of improvements for the partitioning charts introduced with #493

@monfera monfera added the enhancement New feature or request label Jan 20, 2020
@wylieconlon
Copy link

wylieconlon commented Jan 30, 2020

I have found some problems/issues as well:

@wylieconlon
Copy link

A new piece of feedback from elastic/kibana#55477:

Not reporting the percentages and only showing the values is a concern. A pie chart is about percentages. In addition, it is helpful to have the actual value but I'm afraid without percentages it loses meaning. Ideally, we show the percentage on the slices by default and show the actual number on the tooltip.

Converting to percentages is currently done by visLib, so this seems like a responsibility of elastic-charts as well.

@monfera
Copy link
Contributor Author

monfera commented Feb 17, 2020

Thanks @wylieconlon, good discussion here and in the referred Lens item.

On some of the items:

  • planning to add direct support for percentages this week (CD today) cc @markov00 -it's already possible to show percentages by specifying the table values as percentages, because ratios are additive, so the more aggregated sectors of a sunburst will still be correct (formatting needs to add the % sign) but dedicated support is better, as there's flexibility about showing both the percentage and the value in the tooltip if needed
  • missing tooltip was what I meant by item 9; it's in progress, Marco took on the more laborious part of uncoupling the tooltip from Cartesians, and likely the legends need to be uncoupled too
  • I'll check the type, which changed indeed
  • treemap labeling:
    • it's planned that the multilayer treemap gets labels in the grooves; in the meantime,
    • the non-leaf layer legends should be disabled (returning the empty string), as, especially without formatting like in the storybook items, it doesn't look good
    • as a substitute, a less optimal multirow text can be used for integration testing, ie. each leaf recapitulates the higher group names too, like some Tableau example shows (Jan 31 in the charts channel)
    • for two-layer treemaps, or generally, for one of the non-leaf layers in a multilayer treemap, the color channel is the most popular method of identifying groups (categories), it requires the legend though
  • re text centering, there are some tradeoffs, on tests it significantly limit the maximum possible font size or smallest labelable pie (we run out of our ability to place text inside at a larger slice than otherwise), while I realize it could make sense for short text and value combinations - other internal suggestions came up too, eg. rounding the treemap corners, or left-aligning multirow treemap texts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request meta ...meta issue :partition Partition/PieChart/Donut/Sunburst/Treemap chart related
Projects
None yet
Development

No branches or pull requests

3 participants