Finder
Finder

Reputation: 1217

Click Event in Canvas?

I create the Pie Chart and Bar Chart by using Canvas.In that chart if i click or touch any of the bar i need to show the value of the Bar.How to do this ??

Upvotes: 1

Views: 912

Answers (1)

Cristian
Cristian

Reputation: 200080

When you draw a bar, you will definitely know the position of the bar in the X and Y axis. So, just add a touch listener and make it fire some event when the touch was executed in that specific area.

Upvotes: 1

Related Questions