Alternative scenarios plot with D3
Code integration with D3.js library.
The plot "Mean concentration of virions" for the Alternative Scenarios
is now a svg
component of the /calculator/report
page.
The report.js
file has all the logic behind this plot construction.
The plot considers the data that comes from the model - times
and alternative_scenarios
. The x axis
has a transformation to display the time of day in H:M
format.
The performance is better.
Before (master):
[I 210825 09:21:44 web:2239] 200 GET /calculator/baseline-model/result (::1) 1843.90ms
[I 210825 09:21:45 web:2239] 200 GET /calculator/baseline-model/result (::1) 695.12ms
After:
[I 210825 09:22:20 web:2239] 200 GET /calculator/baseline-model/result (::1) 1609.14ms
[I 210825 09:22:22 web:2239] 200 GET /calculator/baseline-model/result (::1) 634.70ms