node-red-dashboard icon indicating copy to clipboard operation
node-red-dashboard copied to clipboard

Chart node improvement for stacked bars

Open A380Coding opened this issue 1 year ago • 1 comments

Description

Using chart node with stacked bars, there is no sum value of all bars added up. There is also no possibility to visualize the sum, as sending the sum value to the chart node would add another stack ontop, rather then showing as a sum bar.

Example: Bar 1: 10, Bar 2: 15, Bar 3: 20 The sum is 10+15+20=45

Image

Possible improvement options: A: Add the sum value in the mouse over/hover popup B: Add a small bar next to the existing stacked bars to indicate the total sum and add the sum to the mouse over/hover popup Example look (with green showing the sum of all values)

Image

C: ??

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

A380Coding avatar Jan 31 '25 16:01 A380Coding

@A380Coding Yes indeed that should be implemented some day...

There are a number of other ui-chart related issues still open here. But issue 782 is a bit of a party stopper. Because it is a lot of work to replace the ChartJs library by Echarts. And if all those other chart related tickets would be implemented first, the migration to Echarts even becomes more difficult (because all that extra code needs to be refactored also). Echarts is not a simple drop-in replacement for ChartJs...

I have now in my local development environment a ui-chart node running on top of Echarts, but there is still a LOT of work involved to finalize that migration. And as long as nobody else from our community is willing to contribute to this dashboard repo, I am stuck with fixing other issues. Which means I won't have time to finalize the Echarts migration. That is the way how open-source works ...

bartbutenaers avatar Jan 31 '25 22:01 bartbutenaers