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

Aggregate values in BarChart and LineChart #999

Open
rolyp opened this issue May 31, 2024 · 1 comment
Open

Aggregate values in BarChart and LineChart #999

rolyp opened this issue May 31, 2024 · 1 comment

Comments

@rolyp
Copy link
Collaborator

rolyp commented May 31, 2024

This is an idea for a “hardcoded” generalisation of bar charts and line charts to support aggregate values (initially just sums, but potentially averages as well). Perhaps just for the y axis initially, allow a data value (currently a number) to instead be a list of numbers paired with an operation (e.g. sum). Then when visualising BarChart, we can choose to render the aggregate value (total) as the “primary” height of the bar, with the total of the selected values shown as a “secondary” bar on top. For LineChart we could do something similar. While there are potentially ways of understanding this in terms of program transformation or data provenance, these are outside of the scope of the current project and this goal here is more to motivate the feature, rather than provide a general-purpose solution.

Aggregate would have a constructor for the “singleton” aggregate that just contains a single value; aggregates would perhaps also nest (so that you can have an aggregate of aggregates). For explorable-viz/fluid-examples#20, we also want to “deaggregate”: split out a BarChart or LineChart which contains (non-singleton) aggregates into an aggregate of bar or line charts with one less dimension of aggregation (something like a distributive law). Think of this as a kind of automatic faceting feature.

@rolyp rolyp added this to Fluid May 31, 2024
@rolyp rolyp converted this from a draft issue May 31, 2024
@rolyp rolyp added this to the v0.7.3 ICCS Summer School milestone May 31, 2024
@rolyp rolyp changed the title Support Aggregate values in BarChart and LineChart Aggregate values in BarChart and LineChart May 31, 2024
@rolyp rolyp moved this from Planned to Proposed in Fluid Aug 14, 2024
@rolyp rolyp removed this from the v0.7.5 Summer Internships 2024 milestone Aug 14, 2024
@rolyp
Copy link
Collaborator Author

rolyp commented Aug 14, 2024

Dropped to Proposed

@rolyp rolyp changed the title Aggregate values in BarChart and LineChart Aggregate values in BarChart and LineChart Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Proposed
Development

No branches or pull requests

1 participant