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
{
public:
static customMouseInteractorStyle* New();
vtkTypeMacro(customMouseInteractorStyle, vtkInteractorStyleTrackballCamera);

virtual void OnRightButtonDown();

};

vtkStandardNewMacro(customMouseInteractorStyle);

void customMouseInteractorStyle::OnRightButtonDown()
{
vtkInteractorStyleTrackballCamera::OnRightButtonDown();

std::cout << "test";

};

void viewGraph::DrawGraph() {
vtkNew colors;

vtkNew style;
renderWindowInteractor->SetInteractorStyle(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.