I am trying to accomplish right and left click(clicking on the series) functionality on the series of a column chart. The left click is going to fire an event whereas the right click is going to show a context menu. The left click is working fine but as soon as I right click on the series, left click is fired first then the context menu appears. How can I distinguish between those two clicks? This is the code I have written inside the series config for left click:
Distinguishing between left and right click event of column chart series
Code:
series:[{
.
.
.
listeners: {
itemmousedown: function (_chart, e) {//function being called on both the clicks.
//need to distinguish between left and right click
var _item = _chart.storeItem.data.EmployeeName;
//further functionality
}
}
}]
Distinguishing between left and right click event of column chart series
Aucun commentaire:
Enregistrer un commentaire