Skip to content

Commit

Permalink
0.0.3
Browse files Browse the repository at this point in the history
- fixes tooltip displaying the correct value for coverage
  • Loading branch information
gabrielcsapo committed Sep 15, 2017
1 parent d6b66d3 commit ed7cea8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.3

- fixes tooltip displaying the correct value for coverage

# 0.0.2

- renders tooltips in the correct place
Expand Down
2 changes: 1 addition & 1 deletion dist/build.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lib/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ module.exports = {
}
}];

if(repo)
options.unshift({ $match: { "git.remotes.url": repo} });
if(repo) {
options.unshift({ $match: { "git.remotes.url": repo} });
}

Coverage.aggregate(options, (err, docs) => {
if(err) { return reject(err); }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lcov-server",
"version": "0.0.2",
"version": "0.0.3",
"description": "🎯 A simple lcov server & cli parser",
"main": "index.js",
"homepage": "https://github.com/gabrielcsapo/lcov-server#readme",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/chart/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ class LineChart extends React.Component {
}, 300);
}
showTooltip(point, dataSetIndex, index) {
const { data } = this.props;
console.log(point, dataSetIndex, index, data[dataSetIndex][index]);
this.setState({
updating: false,
tooltip: true,
value: point[2],
value: data[dataSetIndex][index],
dataSet: dataSetIndex,
index: index,
x: point[0],
Expand Down

0 comments on commit ed7cea8

Please sign in to comment.