Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
corradio committed Feb 7, 2017
1 parent 0bce860 commit f1c7124
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 4 additions & 0 deletions web/app/linegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion web/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}

Expand Down

0 comments on commit f1c7124

Please sign in to comment.