Hello…I am trying that the background of an image change (filling) depending on the metric value (level or percentage for instance). i.e an thermometer that filled when the temperature is inceasing, or a tank that show his filling.
I tried with SVG plugin, but until i cant achieve it.
Thanks @mzazm and @gretamosa . I had used flowcharting, but not to this purpose, and I tried SVg panel, making an image with Inkscape and copy it in the plugin…but in both panels (Flowcharting and SVG), i dont know how to achieve that image change…i have to use different images whit differents levels overlapping each other ??..If you can give a hint, or show me an example, i will be very grateful
Ok, now I understand better your use-case. Have you tried disable_sanitize_html parameter, and code some javascript code for changing SVG images according with certain custom situations?
No, I havent…I will try that…but where do i put the javascript code ???, In the Events section of the svg plugin ( onHandleMetric and/or onInit)??.. Thanks
For the SVG panel plugin this is an useful video I found online when I wanted to do some coloring of the svg elements. I believe you can change a property of the svg according to the result of the query thus changing the size of the colored area, but I am not an expert.
I have to say that there have not been many commits lately. So if I were you I would spend my time on FlowCharting as gretamosa is suggesting.