Commit a51bdb8e authored by Louis's avatar Louis
Browse files

Add package name in chart tooltips

parent 6c6fb3a4
- HTML
- [ ] Add package name in chart tooltips
- [x] Add favicon
- [ ] Validate the HTML output
......
......@@ -44,10 +44,11 @@
callbacks: {
label: function(tooltipItem, data) {
var version = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index]['version'];
var name = data.datasets[tooltipItem.datasetIndex].label;
if (typeof version == "undefined") {
return tooltipItem.xLabel + ": " + tooltipItem.yLabel;
return name + " " + tooltipItem.xLabel + ": " + tooltipItem.yLabel;
} else {
return tooltipItem.xLabel + " (version " + version + "): " + tooltipItem.yLabel;
return name + " " + tooltipItem.xLabel + " (version " + version + "): " + tooltipItem.yLabel;
}
},
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment