From f1c7124db8ba843297a2b7a8ebdb04d6c0f8b123 Mon Sep 17 00:00:00 2001 From: Olivier Corradi Date: Tue, 7 Feb 2017 13:03:19 +0100 Subject: [PATCH] Bugfixes --- README.md | 2 +- web/app/linegraph.js | 4 ++++ web/app/main.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6b43d503bb..84c895efc3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # electricitymap [![Slack Status](http://slack.tmrow.co/badge.svg)](http://slack.tmrow.co) -A real-time visualisation of the GHG and CO2 footprint of electricity generation built with [d3.js](https://d3js.org/), optimized for Google Chrome. Try it out at [http://electricitymap.tmrow.co](http://electricitymap.tmrow.co). +A real-time visualisation of the GHG and CO2 footprint of electricity generation built with [d3.js](https://d3js.org/), optimized for Google Chrome. Try it out at [http://www.electricitymap.org](http://www.electricitymap.org). ![image](https://cloud.githubusercontent.com/assets/1655848/20340757/5ada5cf6-abe3-11e6-97c4-e68929b8a135.png) diff --git a/web/app/linegraph.js b/web/app/linegraph.js index f1ea7ebc46..4cbff22e20 100644 --- a/web/app/linegraph.js +++ b/web/app/linegraph.js @@ -134,10 +134,14 @@ LineGraph.prototype.render = function () { that.verticalLine.style('display', 'none'); if (that.definedAccessor(data[data.length - 1])) { that.markerElement + .style('display', 'block') .attr('cx', x(datetimes[datetimes.length - 1])) .attr('cy', y(that.yAccessor(data[data.length - 1]))) .style('fill', that.yColorScale( that.yAccessor(data[data.length - 1]))); + } else { + that.markerElement + .style('display', 'none'); } if (that.mouseOutHandler) that.mouseOutHandler.call(this); diff --git a/web/app/main.js b/web/app/main.js index 9e3f6b7391..cac4619ee1 100644 --- a/web/app/main.js +++ b/web/app/main.js @@ -109,7 +109,7 @@ function catchError(e) { if (!isLocalhost) { if(typeof _opbeat !== 'undefined') _opbeat('captureException', e); - trackAnalyticsEvent('error', {name: e.name, stack: e.stack}); + trackAnalyticsEvent('error', {name: e.name, stack: e.stack, bundleHash: bundleHash}); } }