anychart.onDocumentReady(function () {
var stage = anychart.graphics.create('container');
var chart1 = anychart.column();
chart1.bounds(0, 0, '100%', '50%');
var series1 = chart1.line([
{x: 'January', value: 2},
{x: 'February', value: 5},
var labels1 = series1.labels();
labels1.background({fill: '#FFFFFF'});
labels1.format(function () {
return 'Value: ' + this.value + '\n' + 'Index: ' + this.index
labels1.adjustFontSize(true, true);
var chart2 = anychart.line();
chart2.bounds(0, '50%', '100%', '50%');
var series2 = chart2.line([
{x: 'January', value: 2},
{x: 'February', value: 5},
var labels2 = series2.labels();
labels2.background({fill: '#FFFFFF'});
labels2.format(function () {
return 'Value: ' + this.value + '\n' + 'Index: ' + this.index
var adjustFontSize = labels1.adjustFontSize();
labels2.adjustFontSize(adjustFontSize);
var title = anychart.standalones.title();
title.text('Get and modify adjust font size');