Feature Description
This may fit better under a "small multiples" feature, but I think it would be good to be able to connect charts individually to a shared legend.
Noticed this when using the Grid component from Evidence Labs (https://github.com/evidence-dev/labs).
In this scenario, I think I would like a shared legend which sits above the charts and uses the full width of the article to avoid so much pagination in the legend.
Colours for each series should be consistent across charts when used in this way.
It would also be nice to have easy control over which axis labels are displayed. This can be manually adjusted, but there may be a better way to do that for situations like this.
Goal of Feature
Quickly build multi-chart sections using the same dataset.
Current Solution
I believe the only solution to get the colours to be identical would be sorting according to the series column, but even that doesn't guarantee the same colours.
Alternative Ideas
A small multiples feature, which might fit best within individual charts. E.g., adding a facet prop:
<BarChart data={query}
x=date
y=sales
series=product
facet=country
/>
Feature Description
This may fit better under a "small multiples" feature, but I think it would be good to be able to connect charts individually to a shared legend.
Noticed this when using the
Gridcomponent from Evidence Labs (https://github.com/evidence-dev/labs).In this scenario, I think I would like a shared legend which sits above the charts and uses the full width of the article to avoid so much pagination in the legend.
Colours for each series should be consistent across charts when used in this way.
It would also be nice to have easy control over which axis labels are displayed. This can be manually adjusted, but there may be a better way to do that for situations like this.
Goal of Feature
Quickly build multi-chart sections using the same dataset.
Current Solution
I believe the only solution to get the colours to be identical would be sorting according to the
seriescolumn, but even that doesn't guarantee the same colours.Alternative Ideas
A small multiples feature, which might fit best within individual charts. E.g., adding a
facetprop: