A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/chartjs/Chart.js/issues/2023 below:

Tooltips with mode:'label' don't work for radar charts · Issue #2023 · chartjs/Chart.js · GitHub

Using latest v2.0-dev branch (d31db87) and following config:

var chart = new Chart(ctx, {
  data: data,
  type: 'radar',
  options: {
    tooltips: {
      mode: 'label'
    }
  }
})

I get following error when tooltip should be displayed:

Uncaught TypeError: Cannot read property 'getPixelForDecimal' of undefined

This is at https://github.com/nnnick/Chart.js/blob/d31db871158685047c2fb1b0d9323e8191e6eddf/src/core/core.tooltip.js#L268

It appears to be because it's attempting to use the ._yScale property, which does not exist. There are checks elsewhere in the method to handle this for polar/radar charts but they're not applied for this line.

(Will try and have a closer look if I get a chance)

Codepen demo here: http://codepen.io/timcroydon/pen/RrOKdq


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4