anychart.onDocumentReady(function () {
var chart = anychart.sparkline([1.3, 2, 1.4, 4, 2.3, 6]);
chart.title({text: 'Click on the chart and then double-click', orientation: 'top'});
chart.listen('click', function (e) {
chart.title({fontColor: '#4CAF50'});
chart.listen('dblClick', function (e) {
chart.title('You can\'t click here anymore');
chart.title({fontColor: '#000000'});
chart.removeAllListeners();
chart.container('container');