From 9fdb483541752429ba38c25a4dd5185f099008a0 Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Fri, 13 Dec 2019 05:47:36 +0100 Subject: [PATCH] Update the homepage plot. --- content.yml | 2 +- flaskr/templates/home.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content.yml b/content.yml index cc58aab..fc4f23a 100644 --- a/content.yml +++ b/content.yml @@ -215,7 +215,7 @@ models: # Please keep this lowercased, letters-only (or I will breathe fire) file: travel_emission_lerp_fit # Color MUST be in the hex form, without alpha - color: "#3399ff" + color: "#333333" # Whether this model is selected by default in the list. selected: true # The configuration that will be fed to the model. diff --git a/flaskr/templates/home.html b/flaskr/templates/home.html index 19d983b..f8fe31c 100755 --- a/flaskr/templates/home.html +++ b/flaskr/templates/home.html @@ -150,7 +150,7 @@ jQuery(document).ready(function($){ // Add Y axis var y = d3.scaleLinear() - .domain([0, 4000]) + .domain([0, 8000]) .range([height, 0]); svg.append("g") .call(d3.axisLeft(y)); @@ -217,8 +217,8 @@ jQuery(document).ready(function($){ // Title svg.append("g") .append('text') - .attr("transform", "translate(" + (-180 + width / 2.0) + "," + (height + 50) + ")") - .text("CO\u2082 emissions (kg) as a function of travelling distance (km)."); + .attr("transform", "translate(" + (-290 + width / 2.0) + "," + (height + 50) + ")") + .text("CO\u2082 equivalent emissions (kg) as a function of distance (km) flown in one continuous leg."); // Legend svg.append("g") -- libgit2 0.21.2