grist-core icon indicating copy to clipboard operation
grist-core copied to clipboard

Chart Improvements

Open anaisconce opened this issue 4 years ago • 2 comments

Improve Chart UI to present more configuration options; add new chart types such as gauge, donut, radar (aka spider or web), and stacked bar chart.

anaisconce avatar Sep 10 '21 15:09 anaisconce

Request to add data labels to charts (not just on hover)

anaisconce avatar Sep 15 '21 13:09 anaisconce

Would be great to choose colors as well.

briantegridy avatar Aug 17 '22 21:08 briantegridy

Hi Grist team, it might be worth to consider integrating something like Vega Lite. Vega (Lite) is a JSON-based format to specify various graphs. It's very powerful and can output charts and graphs of a lot of types with a lot of customization options. From the code Vega generates interactive HTML graphs from that specification which should integrate well into Grist's web UI.

Integrating something like that, with access to the corresponding spreadsheet's data, would immediately give you access to all kinds of charts and features with a lot of customization options supported by Vega, without implementing them all yourself one-by-one. You would also gain integration with the other features of that ecosystem, e.g. SVG/PNG export. For the more basic features, you could still provide GUI elements, so it shouldn't be an UX downgrade, but more advanced users could code custom charts to their liking.

Eisfunke avatar Feb 01 '23 11:02 Eisfunke

@Eisfunke good idea. Reminds me a bit of this custom widget https://github.com/gristlabs/grist-widget/pull/37 to let you do arbitrary plotly charts. (The widget never got landed but a preview is available using custom widget url https://deploy-preview-37--boisterous-sunburst-a5c941.netlify.app/custom-plotly-chart). I think someone could do a Vega Lite version as a custom widget - it would have all the live data immediately, all that is needed is to render it. A full integrated feature would be even nicer, but significantly more work. Notes on how to make custom widgets are here https://support.getgrist.com/widget-custom/

paulfitz avatar Feb 01 '23 17:02 paulfitz

We now have a widget for advanced charts: https://github.com/gristlabs/custom-charts-widget/blob/main/USAGE.md 📈

anaisconce avatar Nov 06 '23 21:11 anaisconce