anychart.onDocumentReady(function () {
var dataSet = anychart.data.set([
[2024, 9097, 14694, 5917, 14019, 1073, 2142, 3211 , 50153],
[2025, 9097, 15060, 6145, 12933, 1067, 2240, 3251, 49793],
[2026, 8097, 23330, 7588, 13310, 1104, 2400, 3400, 59229],
[2027, 10215, 25088, 8917, 15174, 1104, 2450, 3450, 66395],
[2028, 12027, 26307, 6067, 13030, 1133, 2600, 3600, 64764],
[2029, 7192, 16536, 6642, 3258, 1620, 2800, 3500, 39797],
[2030, 2938, 13757, 5164, 9784, 1584, 2950, 3620,33227],
[2031, 6092, 20288, 5651, 10329, 2174,3150, 4000, 51684],
[2032, 15253, 25540, 12657, 23990, 2256, 3250, 4250, 87196]
var Y01SeriesData = dataSet.mapAs({ x: 0, value: 1 });
var Y02SeriesData = dataSet.mapAs({ x: 0, value: 2 });
var Y03SeriesData = dataSet.mapAs({ x: 0, value: 3 });
var Y04SeriesData = dataSet.mapAs({ x: 0, value: 4 });
var Y05SeriesData = dataSet.mapAs({ x: 0, value: 5 });
var Y06SeriesData = dataSet.mapAs({ x: 0, value: 6 });
var Y07SeriesData = dataSet.mapAs({ x: 0, value: 7 });
var totalSeriesData = dataSet.mapAs({ x: 0, value: 8 });
var chart = anychart.column();
anychart.theme(anychart.themes.marketForecast);
.url('https://www.marketforecast.com')
.logoSrc('https://www.marketforecast.com/favicon.ico')
.text('Copyright MarketForecast FY');
chart.yScale().stackMode('value');
.text('<span style="font-size: 16px;font-weight:bold;">{SEGMENT1ITEM} - {TOPIC} Market Forecast to {LY} by {SEGMENT2}</span>' +
'<br/><span style="color:#929292; font-size: 12px;">' +
'Market Forecast {FY} - {LY}</span>');
chart.padding(10, 5, 5, 5);
chart.yGrid(true).xGrid(false).xMinorGrid(false).yMinorGrid(true);
chart.legend().enabled(true).padding({ top: 10, bottom: 30 });
chart.legend().position("bottom");
.title("Market size in US$ Millions")
.labels().format(function () {
return anychart.format.number(this.value, {
var totalSeriesForecast = chart.spline(totalSeriesData);
totalSeriesForecast.name('Total Market Forecast');
totalSeriesForecast.labels()
return anychart.format.number(this.value, {
.background().enabled(true).fill("#FFFFFF");
var setupSeriesLabels = function (series, name) {
series.name(name).stroke('1 #fff 1');
series.hovered().stroke('1 #fff 1');
var series1 = chart.column(Y01SeriesData);
setupSeriesLabels(series1, 'segment2 item1');
var series2 = chart.column(Y02SeriesData);
setupSeriesLabels(series2, 'segment2 item2');
var series3 = chart.column(Y03SeriesData);
setupSeriesLabels(series3, 'segment2 item3');
var series4 = chart.column(Y04SeriesData);
setupSeriesLabels(series4, 'segment2 item4');
var series5 = chart.column(Y05SeriesData);
setupSeriesLabels(series5, 'segment2 item5');
var series6 = chart.column(Y06SeriesData);
setupSeriesLabels(series6, 'segment2 item6');
var series7 = chart.column(Y07SeriesData);
setupSeriesLabels(series7, 'segment2 item7');
chart.tooltip().title().fontColor("#FFFFFF");
chart.tooltip().title().fontSize(14);
chart.tooltip().fontColor("#FFFFFF");
chart.tooltip().fontSize(12);
chart.tooltip().padding(10);
.titleFormat(function () {
return 'Market Forecast: ' + this.points[0].x;
return this.seriesName + ' : ' + anychart.format.number(this.value, {
chart.interactivity().hoverMode('by-y');
chart.tooltip().valuePrefix('$').displayMode('union');
chart.container('container');