rossmann-engineering / Collibellex-Thingsboard-Widgets

Widget Library for Thingsboard
MIT License
163 stars 71 forks source link

[Feature Request]: Mosaic-Time-Series #10

Open DataScienceIsCool opened 2 years ago

DataScienceIsCool commented 2 years ago

Hello there,

at the moment I am trying to create a custom widget to display binary values of multiple categories in a TB-Timeseries-Widget. Visually I have something similar to this in mind: [https://echarts.apache.org/examples/en/editor.html?c=custom-profile]

I saw that some of your widgets are modifications of these echarts, so i tried to use your heatmap-widget as a starting point. I must say that I didn't come far, though. (I am a Software-Developer but the echart and thingsboard API combined with JS give me headaches)

I have great interest in having such a widget available. If there is similar interest on your side for such a widget, I would be interested to cooperate with you. We could co-develop in german and you could add the widget in this repository if we succeed.

Thanks either way.

rossmann-engineering commented 2 years ago

Hello, thanks for your contributions. Sure that could be interesting, do you have a dataset payload?

DataScienceIsCool commented 2 years ago

For testing I used the Thingsboard Functions and put return Math.round(Math.random()); into the code section to generate random 1 and 0's. I would want it to be compatible with the dashboard timewindow api. So for the timewindow config "Real time, last 2 minutes" I would want red and green rectangles (according to 0 and 1) to flow from right to left. I could give to you the JSON-Export of the widget with the little progress I have made, but it is really messy and might not necessarily be all that useful.