Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier l’affichage des données sur les charts : réduire le nombre de décimales ! #4

Closed
vincz100 opened this issue Dec 14, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@vincz100
Copy link
Owner

vincz100 commented Dec 14, 2018

chartjs/Chart.js#4992

@vincz100 vincz100 added the bug Something isn't working label Dec 14, 2018
@vincz100
Copy link
Owner Author

vincz100 commented Dec 27, 2018

        options: {
                tooltips: {
                    callbacks: {
                        label: function(tooltipItem, data) {
                            var label = data.datasets[tooltipItem.datasetIndex].label || '';
        
                            if (label) {
                                label += ': ';
                            }
                            label += Math.round(tooltipItem.yLabel * 100) / 100;
                            return label;
                        }
                    }
                }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant