Skip to content

Dashboard charts not showing tooltips for data points #440

Closed
@robations

Description

@robations

Expected: to see a tooltip, when mousing over each datapoint in the complexity charts, that shows the class or method to which it refers.

Actual: No tooltip and an error message in the console:

nv.addGraph(function() {
  var chart = nv.models.scatterChart()
    .showDistX(true)
    .showDistY(true)
    .showLegend(false)
    .forceX([0, 100]);
  chart.tooltipContent(function(key, y, e, graph) {
    return '<p>' + graph.point.class + '</p>'; /// dashboard.html:435 Uncaught TypeError: Cannot read property 'point' of undefined
  });

No error messages appear while generating the reports. This is a problem for all data points on both class and method complexity charts.

I originally had the problem with phpunit 4.x / php-code-coverage 2.x, then upgraded to phpunit 5 /php-code-coverage 3, and had the same problem on both configurations. Attempts to debug JS were thwarted by minified code.

v3.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions