First of all, let me thank you for providing an amazing plugin.
Since i am no expert in scripting or SVG.js hence would like to seek some help when using this plugin for providing live metrics for the element in the SVG code.
This is a part of my SVG code where a pump needs to be changing color based on the value ctrl.series metrics pushed.
I did figured that under linearGradient = "red" does changes the color of the SVG however i need this to be based on the conditionals
var s = Snap(svgnode);
console.log(ctrl.series[15].stats.current.toFixed(2));
var p1 = s.select("#domElemG");
var colors = ["#008000", "#FF6600", "#FF0000"];
var color = colors[1];
if (ctrl.series[15].stats.current.toFixed(2) > 7)
{
p1.attr ({"fill" : color})
}
Hi,
First of all, let me thank you for providing an amazing plugin. Since i am no expert in scripting or SVG.js hence would like to seek some help when using this plugin for providing live metrics for the element in the SVG code. This is a part of my SVG code where a pump needs to be changing color based on the value ctrl.series metrics pushed. I did figured that under linearGradient = "red" does changes the color of the SVG however i need this to be based on the conditionals
My Events code