FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
181 stars 45 forks source link

Composite bar charts should be supported #460

Open camueller opened 8 months ago

camueller commented 8 months ago

Description

Composite bar charts (sometimes also call stacked bar charts) are charts where each bar displays multiple data points stacked in a single row or column. There are situations where no other diagram type can be used to express the intended conclusion. Also the use of 2 diagrams with identical X Axis but different Y axis would not be appropriate. Therefore composite bar charts are rellay needed!

Refer to https://www.goteachmaths.co.uk/composite-bar-charts/

To me it is not quite clear if Mermaid supports this type of diagram at the moment: https://github.com/mermaid-js/mermaid/issues/4269#issuecomment-1868982956

joepavitt commented 8 months ago

Thanks @camueller how would you expect to define the payloads in the msg for such a chart?

camueller commented 8 months ago

This doesn't really matter to me since I can use a Javascript node for any kind of data transformation.

BTW: Since mermaidcurrently has no support for composite charts I implemented it yesterday and today and created a PR for it: https://github.com/mermaid-js/mermaid/pull/5167 Looking at the other PRs I don't expect a response soon althought I would like it. If you look at this PR you can see the syntax I used for dataset of composite charts: https://github.com/mermaid-js/mermaid/pull/5167/files#diff-15b2d25f41bde2a210201a02bcfd09ba323c9e85136ae309d684aa6c4bcd4dea

I watched your Video about Dashboard 2.0 ( https://www.youtube.com/watch?v=7GTHYzRpQ9M ) and was surprised about your switch to Vue.js. Since 2018 I'm working as developer for one of (or the?) largested Vue.js projects in Europe (50+ devs) :-)

joepavitt commented 2 months ago

Requested again here: https://discourse.nodered.org/t/stacked-bar-graph/89164