anychart.onDocumentReady(function () {
var chart = anychart.bubble();
chart.yScale({minimum: 0, maximum: 4});
var series = chart.bubble([
{x: 1, value: 1, size: 6},
{x: 2, value: 2, size: 4},
{x: 3, value: 3, size: 6},
{x: 4, value: 2, size: 2},
{x: 5, value: 1, size: 7},
{x: 6, value: 2, size: 3},
{x: 7, value: 1, size: 2}
var seriesTooltip = series.tooltip();
seriesTooltip.format(function () {
var bubbleSeries = this.series;
var point = bubbleSeries.getPoint(index);
return 'Bubble size: ' + point.getStat('bubbleSize');
chart.title('Get the statistic and use the tooltip');
chart.container('container');