Commit 9fdb483541752429ba38c25a4dd5185f099008a0

Authored by Antoine Goutenoir
1 parent 84d9ee6c
Exists in master

Update the homepage plot.

Showing 2 changed files with 4 additions and 4 deletions   Show diff stats
content.yml
... ... @@ -215,7 +215,7 @@ models:
215 215 # Please keep this lowercased, letters-only (or I will breathe fire)
216 216 file: travel_emission_lerp_fit
217 217 # Color MUST be in the hex form, without alpha
218   - color: "#3399ff"
  218 + color: "#333333"
219 219 # Whether this model is selected by default in the list.
220 220 selected: true
221 221 # The configuration that will be fed to the model.
... ...
flaskr/templates/home.html
... ... @@ -150,7 +150,7 @@ jQuery(document).ready(function($){
150 150  
151 151 // Add Y axis
152 152 var y = d3.scaleLinear()
153   - .domain([0, 4000])
  153 + .domain([0, 8000])
154 154 .range([height, 0]);
155 155 svg.append("g")
156 156 .call(d3.axisLeft(y));
... ... @@ -217,8 +217,8 @@ jQuery(document).ready(function($){
217 217 // Title
218 218 svg.append("g")
219 219 .append('text')
220   - .attr("transform", "translate(" + (-180 + width / 2.0) + "," + (height + 50) + ")")
221   - .text("CO\u2082 emissions (kg) as a function of travelling distance (km).");
  220 + .attr("transform", "translate(" + (-290 + width / 2.0) + "," + (height + 50) + ")")
  221 + .text("CO\u2082 equivalent emissions (kg) as a function of distance (km) flown in one continuous leg.");
222 222  
223 223 // Legend
224 224 svg.append("g")
... ...