How to use data_generator with donut? #886
henriknordgren
started this conversation in
General
Replies: 1 comment
-
FInally I managed to display a donut
Just like I suspected, the time component is not used, but still needs to be included. The real bummer is that I need to create one serie for each slice in the donut. I render the chart dynamicaly, so sometimes there is one value, sometimes 8 values. Any clue on how to solve that? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since I had little luck with getting this chart to display yearly data properly (separate post), I put together a node red flow that generated correct data for me, and put it in a csv format in an input_text. The data is correct, and now I just want to generate a very simple donut chart with no labels, no titles and no tooltips. I can't even get this to work properly. What is wrong with me? I tried this simple example:
Result:
I have tried many different variants of this code. I dont get why I need the time component in a donut chart, but I added some dummy values just for fun as it is like this in the example readme file. I also tried a more logical approach by just returning the different values [12,12,12,43] for a single entity, but no joy.
So, the million dollar question, what is the proper data_generator return data format for a donut chart?
Beta Was this translation helpful? Give feedback.
All reactions