Replies: 3 comments 2 replies
-
I was working on the above chart (adjustments to the radar chart) in the last days and could almost finish it. I read that it is possible to register point elements, I've seen it in tests but I couldn't yet figure out how to do it properly. So my question: How to register new elements (line, point, etc.) from within a plugin, so that all the features (like interactions or tooltip) of an element can be used? Thanks for the answer! |
Beta Was this translation helpful? Give feedback.
-
Is there nobody that already came across this situation or knows how to register your own elements, instead of just drawing unconnected stuff? |
Beta Was this translation helpful? Give feedback.
-
Hi @J4L0 - did you have any joy with the background colours, as shown in your example? If so, can you please share your code? I need to do the same thing (represent traffic lights with red in the middle, then amber, and green around the outside). Thank you |
Beta Was this translation helpful? Give feedback.
-
For a poc I am looking for a charting lib. that allows me to create to following kind of radar chart:
It appears to me, that chartjs is delivering most of the pieces out of the box, but the missing piece is the coloured background.
As visible, depending on the radius a different background colour is being used , which characterize scores in my case.
As of what I found so far, the property backgroundColor is based on dataset and does therefore not come in handy.
My current guess is, writing a plugin based on the following example from canvas background which alters the colour of the whole canvas:
Another idea I had, is pre-drawing the grid with a certain fill colour, but not sure how that could be done.
As a js and chartjs newbie I am open for suggestions, ideas and a lil bit of support.
Thanks already!
Beta Was this translation helpful? Give feedback.
All reactions