Skip to content

Commit ed7cea8

Browse files
committed
0.0.3
- fixes tooltip displaying the correct value for coverage
1 parent d6b66d3 commit ed7cea8

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.0.3
2+
3+
- fixes tooltip displaying the correct value for coverage
4+
15
# 0.0.2
26

37
- renders tooltips in the correct place

dist/build.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/coverage.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ module.exports = {
138138
}
139139
}];
140140

141-
if(repo)
142-
options.unshift({ $match: { "git.remotes.url": repo} });
141+
if(repo) {
142+
options.unshift({ $match: { "git.remotes.url": repo} });
143+
}
143144

144145
Coverage.aggregate(options, (err, docs) => {
145146
if(err) { return reject(err); }

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lcov-server",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "🎯 A simple lcov server & cli parser",
55
"main": "index.js",
66
"homepage": "https://github.com/gabrielcsapo/lcov-server#readme",

src/lib/chart/line.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ class LineChart extends React.Component {
3131
}, 300);
3232
}
3333
showTooltip(point, dataSetIndex, index) {
34+
const { data } = this.props;
35+
console.log(point, dataSetIndex, index, data[dataSetIndex][index]);
3436
this.setState({
3537
updating: false,
3638
tooltip: true,
37-
value: point[2],
39+
value: data[dataSetIndex][index],
3840
dataSet: dataSetIndex,
3941
index: index,
4042
x: point[0],

0 commit comments

Comments
 (0)