anychart.onDocumentReady(function () {
var chart = anychart.scatter();
var contextMenu = chart.contextMenu();
contextMenu.itemsFormatter(function (items) {
text: 'Custom Context Menu Item',
function actionHandler() {
alert('Custom Item Clicked');
chart.title('Get and modify context menu. Right-click on the chart');
chart.xGrid(true).yGrid(true);
chart.container('container');