Merge branch 'feature/correct_plot_labels' into 'master'

modify label names and delete plot title

See merge request cara/cara!327
This commit is contained in:
Andre Henriques 2022-02-08 11:26:07 +01:00
commit 9dc8237987

View file

@ -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('<b>Mean concentration of virions</b>');
// 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('<b>Mean concentration of virions</b>');
// 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);