diff --git a/web/static/js/main.js b/web/static/js/main.js index 0965561..9149666 100644 --- a/web/static/js/main.js +++ b/web/static/js/main.js @@ -879,7 +879,12 @@ this.plotWrapper.append('g').classed('x axis', true); this.plotWrapper.append('g').classed('y axis', true); this.yAxisText = this.plotWrapper.append("text").attr("transform", "rotate(-90)").attr("dy", "1em").style("text-anchor", "middle").text(this.title); - let y_title = this.target.name+" from "+$("input[name='input_slug']:checked").siblings(".mdl-radio__label").html(); + let y_title = '' + if ( this.target.config.type == 'input'){ + y_title = this.target.name; + } else { + y_title = this.target.name+" from "+$("input[name='input_slug']:checked").siblings(".mdl-radio__label").html(); + } this.yAxisTextTarget = this.plotWrapper.append("text").attr("transform", "rotate(-90)") .attr("dy", "1em").style("text-anchor", "middle") .style("font-style", "oblique").text(y_title); -- libgit2 0.21.2