File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
PHP/CodeCoverage/Report/HTML/Renderer/Template Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,9 @@ $(document).ready(function() {
209
209
.showLegend(false)
210
210
.forceX([0, 100]);
211
211
chart.scatter.onlyCircles(false);
212
+ chart.tooltipContent(function(key, y, e, graph) {
213
+ return '<p>' + graph.point.class + '</p>';
214
+ });
212
215
213
216
chart.xAxis.axisLabel('Code Coverage (in percent)');
214
217
chart.yAxis.axisLabel('Cyclomatic Complexity');
@@ -231,6 +234,9 @@ $(document).ready(function() {
231
234
.showLegend(false)
232
235
.forceX([0, 100]);
233
236
chart.scatter.onlyCircles(false);
237
+ chart.tooltipContent(function(key, y, e, graph) {
238
+ return '<p>' + graph.point.class + '</p>';
239
+ });
234
240
235
241
chart.xAxis.axisLabel('Code Coverage (in percent)');
236
242
chart.yAxis.axisLabel('Method Complexity');
@@ -253,6 +259,7 @@ $(document).ready(function() {
253
259
values.push({
254
260
x: value,
255
261
y: data[key][1],
262
+ class: data[key][2],
256
263
size: 0.05,
257
264
shape: 'diamond'
258
265
});
You can’t perform that action at this time.
0 commit comments