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

Pie chart / stacking #65

Open
1 of 4 tasks
luucvanderzee opened this issue Mar 4, 2019 · 0 comments
Open
1 of 4 tasks

Pie chart / stacking #65

luucvanderzee opened this issue Mar 4, 2019 · 0 comments
Assignees
Labels
chart High-level chart types scale/position Anything related to scales and positioners statistics Statistical transformations and aggregations

Comments

@luucvanderzee
Copy link
Collaborator

luucvanderzee commented Mar 4, 2019

To stay true to the 'tidy data' principles, and the '1 row -> 1 mark' philosophy, I suggest we use implement pie charts as 'one slice of the pie per row', with one column representing the size of the slice, and one column representing the category of the slice. Stacked bars would work according to the same principle, since a pie chart is essentially a stacked bar chart in a polar coordinate system.

However, to stack bars we need to have some sort of cumulative sum data transformation, which we could use in combination with the nextRow/prevRow that is available in the vgg-map's default slot scope. So I guess our to do list here is

  • Finish the categorical color scale issue (Categorical color scale #61)
  • Add a cumsum data transformation
  • Create a high-level pie chart component
  • Create a high-level stacked bar chart component?
@luucvanderzee luucvanderzee added chart High-level chart types component Features or graph components scale/position Anything related to scales and positioners statistics Statistical transformations and aggregations and removed component Features or graph components labels Mar 4, 2019
@bianchi-dy bianchi-dy self-assigned this Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart High-level chart types scale/position Anything related to scales and positioners statistics Statistical transformations and aggregations
Projects
None yet
Development

No branches or pull requests

2 participants