Chart.js: Values on Tooltip of Radar Chart is not shown

Created on 8 Apr 2019  路  7Comments  路  Source: chartjs/Chart.js

Values on Tooltip of Radar Chart is not shown on v2.8.0 or v2.8.0-rc.1.
When I use v2.7.3 or older, this bug doesn't happen.

Steps to Reproduce (for bugs)

Please see official samples.

In this page v2.8.0 is being used. This bug can be seen.
https://www.chartjs.org/samples/latest/charts/radar.html
v2 8 0

In this page v2.5.0 is being used, so this bug doesn't occur.
https://www.chartjs.org/docs/latest/charts/radar.html
v2 5 0

Environment

Google Chrome 73.0.3683.103

bug

Most helpful comment

You can add the following in the chart options ( verified with chartjs 2.8.0, Google Chrome 74.0.3729.157 )

 tooltips: {
                enabled: true,
                callbacks: {
                    label: function(tooltipItem, data) {
                        return data.datasets[tooltipItem.datasetIndex].label + ' : ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
                    }
                }
            }

All 7 comments

This issue still exist, Anybody have any workarounds? I think we should keep this open.

@decodez it's fixed in master but not yet released.

@simonbrunel Any idea on when the next version will be released ? Thank you

You can add the following in the chart options ( verified with chartjs 2.8.0, Google Chrome 74.0.3729.157 )

 tooltips: {
                enabled: true,
                callbacks: {
                    label: function(tooltipItem, data) {
                        return data.datasets[tooltipItem.datasetIndex].label + ' : ' + data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
                    }
                }
            }

@dineshyadav83 your solution works for me! Thanks

This is still not working with 2.9.3, and the workaround doesn't even work anymore.

@dineshyadav83 Thanks a lot !! works for me!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bytesnz picture bytesnz  路  3Comments

joebirkin picture joebirkin  路  3Comments

adriantombu picture adriantombu  路  3Comments

gabrieldesouza picture gabrieldesouza  路  3Comments

SylarRuby picture SylarRuby  路  3Comments