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

how to get click on point in bar chart? #175

Closed
hekmatinasser opened this issue Aug 20, 2017 · 3 comments
Closed

how to get click on point in bar chart? #175

hekmatinasser opened this issue Aug 20, 2017 · 3 comments

Comments

@hekmatinasser
Copy link

hi
how to get click on point in bar chart?

@apertureless
Copy link
Owner

Hey @hekmatinasser

don't really get what you are wanting.
You can check out the chart.js docs:

http://www.chartjs.org/docs/latest/configuration/tooltip.html

You have callbacks for the tooltips for example.

@apertureless
Copy link
Owner

close due to inactivity

@mushzak
Copy link

mushzak commented Nov 16, 2018

        options: {
            scales: {
                yAxes: [{
                    stacked: true
                }],
                xAxes: [{
                    stacked: true
                }]
            },
            legend: {
                display: true
            },
            responsive: true,
            maintainAspectRatio: true,
            onClick: function(evt) {
                console.log(evt);
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants