HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.column();
3
4
var series = chart.column([
5
{x: 'Cycling', value: 10},
6
{x: 'Swimming', value: 12},
7
{x: 'Run', value: 18},
8
{x: 'Hiking', value: 11},
9
{x: 'Alpinism', value: 9}
10
]);
11
12
var title = chart.title();
13
title.enabled(true);
14
title.text('PointMouseUp event');
15
16
// Set event type.
17
series.listen('pointMouseUp', function (e) {
18
title.text('The left mouse button has been released over the point: \n x: ' + e.point.get('x') + '\n value: ' + e.point.get('value'))
19
});
20
21
chart.container('container');
22
chart.draw();
23
});