anychart.onDocumentReady(function () {
var chart = anychart.pyramid([
{x: 'Physical', value: 125},
{x: 'Data Link', value: 135},
{x: 'Network', value: 125},
{x: 'Transport', value: 145},
{x: 'Session', value: 125},
{x: 'Presentation', value: 155},
{x: 'Application', value: 290}
chart.title('Click on the chart. You have 3 clicks');
chart.listen('click', customListener);
function customListener(e) {
chart.title('Click on the chart. You have ' + counter + ' clicks');
chart.unlisten('click', customListener);
chart.title('You have no more clicks');
chart.container('container');