From 49221a32a47a2b08a83e9837e14c0c42739a169b Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Mon, 7 Feb 2022 17:22:53 +0100 Subject: [PATCH] modify label names and delete plot title --- cara/apps/calculator/static/js/report.js | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/cara/apps/calculator/static/js/report.js b/cara/apps/calculator/static/js/report.js index 2a916544..be601146 100644 --- a/cara/apps/calculator/static/js/report.js +++ b/cara/apps/calculator/static/js/report.js @@ -52,13 +52,6 @@ function draw_concentration_plot(svg_id, times, concentrations, cumulative_doses .attr('fill-opacity', '0.1'); }); - // Plot tittle. - var plotTitleEl = vis.append('svg:foreignObject') - .attr("background-color", "transparent") - .attr('height', 30) - .style('text-align', 'center') - .html('Mean concentration of virions'); - // X axis declaration. var xAxisEl = vis.append('svg:g') .attr('class', 'x axis'); @@ -92,7 +85,7 @@ function draw_concentration_plot(svg_id, times, concentrations, cumulative_doses .attr('class', 'y label') .attr('fill', 'black') .attr('text-anchor', 'middle') - .text('Mean cumulative dose (virions)'); + .text('Mean cumulative dose (infectious virus)'); // Legend for the plot elements - line and area. var legendLineIcon = vis.append('rect') @@ -236,9 +229,6 @@ function draw_concentration_plot(svg_id, times, concentrations, cumulative_doses }))); }); - // Title. - plotTitleEl.attr('width', graph_width); - // Axis. var xAxis = d3.axisBottom(xRange).tickFormat(d => time_format(d)); var yAxis = d3.axisLeft(yRange); @@ -430,15 +420,7 @@ function draw_alternative_scenarios_plot(concentration_plot_svg_id, alternative_ .attr('alignment-baseline', 'central'); } - - // Plot title. - var plotTitleEl = vis.append('svg:foreignObject') - .attr("background-color", "transparent") - .attr('height', 30) - .style('text-align', 'center') - .html('Mean concentration of virions'); - // X axis. var xAxisEl = vis.append('svg:g') .attr('class', 'x axis'); @@ -569,9 +551,6 @@ function draw_alternative_scenarios_plot(concentration_plot_svg_id, alternative_ } - // Title. - plotTitleEl.attr('width', graph_width); - // Axis. var xAxis = d3.axisBottom(xRange).tickFormat(d => time_format(d)); var yAxis = d3.axisLeft(yRange);