Line 149: | Line 149: | ||
if (this.id === "start") { | if (this.id === "start") { | ||
addNewLine("switchoff", "Switch OFF", data); | addNewLine("switchoff", "Switch OFF", data); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + -10 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "blue") | ||
+ | .text("GFP"); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + 70 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "green") | ||
+ | .text("gON"); | ||
+ | |||
+ | svg.append("text") | ||
+ | .attr("transform", "translate(" + (x(data[0].gfp) + 20) + "," + 350 + ")") | ||
+ | .attr("dy", ".35em") | ||
+ | .attr("text-anchor", "start") | ||
+ | .style("fill", "red") | ||
+ | .text("gOFF"); | ||
} | } | ||
Revision as of 00:58, 18 October 2018