anychart.onDocumentReady(function () {
chart = anychart.waterfall([
{x: 'Net Sales', value: 5085000},
{x: 'Cost of Sales', value: -1250450},
{x: 'Gross Income', isTotal: true},
{x: 'Operating Expenses', value: -2350050},
{x: 'Operating Income', isTotal: true},
{x: 'Other Income', value: 750000},
{x: 'Extraordinary Gain', value: -230050}
chart.title('Disable redrawing of the chart after the changes. \n Use the buttons to apply the changes and draw them');
chart.margin().left('10%');
chart.container('container');
chart.label(counter++, {enabled: true, offsetY: 10 * counter++, fontWeight: 600, fontColor: 'rgba(' + Math.floor(Math.random() * 130).toString(10) + ','
+ Math.floor(Math.random() * 140).toString(10) + ','
+ Math.floor(Math.random() * 150).toString(10) + ')'});