rawgraphs / rawgraphs-app

A web interface to create custom vector-based visualizations on top of RAWGraphs core
https://rawgraphs.io
Apache License 2.0
8.68k stars 1.84k forks source link

Display the count of items which determines the size, e.g. in Circle Packing #308

Closed GilShalit closed 3 years ago

GilShalit commented 3 years ago

I want to display the relative size of various combinations of attributes. So for example if I have a table with people's names, genders and professions. And I'm placing gender as the first dimension, professions as the second, and the same in labels. I'm using genders for color and leaving Size empty. I then get a nice hierarchy of circles for the different combinations.

It would be extremely helpful to have the count used for each circle to be also printed out. So for the circle labeled 'Female / Politian' I would also get Count=732.

Does this make sense? Am I missing something?

mikima commented 3 years ago

the label can only be displayed if a dimension is dragged onto the visual variable "labels".

the most simple solution is to add to your dataset a column filled with 1 values so you can use it as label.

See the attached .rawgraph project: circle-packing-amounts.rawgraphs.zip

GilShalit commented 3 years ago

Cool, thanks!