How to catch mouse click events(right mouse button)in a VTK Chart

Hi all
I just want to add userinteraction(rigth mouse click) to a vtk chart .can anyone please guide me .
This is what I have done upto now.But nothing happend.

class customMouseInteractorStyle : public vtkInteractorStyleTrackballCamera
static customMouseInteractorStyle* New();
vtkTypeMacro(customMouseInteractorStyle, vtkInteractorStyleTrackballCamera);

virtual void OnRightButtonDown();



void customMouseInteractorStyle::OnRightButtonDown()

std::cout << "test";


void viewGraph::DrawGraph() {
vtkNew colors;

vtkNew style;

**Inside my DrawGraph() I have created my xy chart

Thank you in advance.

VtkChart is a subclass of vtkAbstractContextItem which handles its own mouse events. So subclass vtkChart and then override the mouse handling methods directly there, not in the interactor style.

thank you and got it.