I guess this post is more about what kind of approach should I take rather than straight code. So I’ve made this dynamic dashboard which can have multiple kinds of basic charts (line, bar etc.) with linked brushing i.e. if you select points in one graph, it highlights them in all the other graphs. For some charts where you can’t directly select points such as a pie chart, it just makes a new pie chart with only the selected points. All the graphs are made from a single dataframe.
Now, I did this my maintaining a central dcc.Store which just store the point indexes of whatever’s highlighted. This works pretty well if the data is used as is e.g. “col1, col2, col3”. But what I generally need to do is handle aggregated data, meaning I’ll usually be dealing aggregated measures e.g. “col1, max(col2), min(col3)”. And each chart can have different basic aggregations (min,max,sum,avg,count). So I want to know how should I go about handling this kind of problem. What should it even look like?