Anh Duy Vo
Anh Duy Vo

Reputation: 257

How do i change mouse cursor in Amchart

I have an bar column amchart and have click event on each column. But how can i change the mouse cursor to other icon (like hand) to make user know that the column 's clickable

Upvotes: 4

Views: 5344

Answers (3)

AndFisher
AndFisher

Reputation: 643

Alternatively with CSS use the class amcharts-graph-column, whilst setting addClassNames to true on your AMChart config. (Version 3)

This allows for a column to have a cursor, without the whole chart looking clickable, and doesn't need to register any extra event handlers.

Upvotes: 1

Yuri
Yuri

Reputation: 365

You can use showHandOnHover if you want mouse pointer to change to hand when hovering the graph

Upvotes: 5

Maertz
Maertz

Reputation: 4952

You could simply use the rollOverGraphItem and rollOutGraphItem event to toggle a class to your chart container and set the cursor with css :)

Upvotes: 2

Related Questions