anychart.onDocumentReady(function () {
{ x: 'Total Revenue', value: 182527 },
{ x: 'Cost of Revenue', value: -84732 },
{ x: 'Gross Profit', isTotal: true },
{ x: 'Operating Expenses', value: -56571 },
{ x: 'Operating Income', isTotal: true },
{ x: 'Other Income', value: 8583 },
{ x: 'Other Expenses', value: -1725 },
{ x: 'Income Before Taxes', isTotal: true },
{ x: 'Provision for Taxes', value: -7813 },
{ x: 'Net Income', isTotal: true }
var chart = anychart.waterfall(data);
chart.title('Income Statement for Alphabet Inc. (GOOGL), 2020');
chart.yAxis().title('Amount (in millions)');
chart.yAxis().labels().format('${%Value}');
chart.xAxis().labels().rotation(-90);
chart.connectorStroke("#ff6666", 2, "2 2", "round");
chart.labels().useHtml(true);
chart.labels().format(function() {
return "<span style='color:#dd2c00;font-weight:bold'>" +
this.absolute + "</span>";
chart.container('WaterfallContainer');