3D Stacked Column Chart

Developer
Size
2,505 Kb
Views
22,264

How do I make an 3d stacked column chart?

3D stacked columns are placed one behind another instead of placing them one on top of another (regular stacking or 100% stacking). This kind of stacking is limited to column graphs only, as only these graphs do support 3D look. You can stack more than two graphs, just remember to put the graphs with the highest values to the back, as otherwise thy will hide the graphs with smaller values.. What is a 3d stacked column chart? How do you make a 3d stacked column chart? This script and codes were developed by Otto Garcia on 02 December 2022, Friday.

3D Stacked Column Chart Previews

3D Stacked Column Chart - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Stacked Column Chart</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<div id="chartdiv"></div> <script src='https://code.jquery.com/jquery-1.11.2.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

3D Stacked Column Chart - Script Codes CSS Codes

#chartdiv { width: 100%; height: 500px;
}

3D Stacked Column Chart - Script Codes JS Codes

var chart = AmCharts.makeChart("chartdiv", { "theme": "light", "type": "serial", "dataProvider": [{ "country": "BALTIMORE", "year2004": 3.5, "year2005": 4.2 }, { "country": "UK", "year2004": 1.7, "year2005": 3.1 }, { "country": "Canada", "year2004": 2.8, "year2005": 2.9 }, { "country": "Japan", "year2004": 2.6, "year2005": 2.3 }, { "country": "France", "year2004": 1.4, "year2005": 2.1 }, { "country": "Brazil", "year2004": 2.6, "year2005": 4.9 }, { "country": "Russia", "year2004": 6.4, "year2005": 7.2 }, { "country": "India", "year2004": 8, "year2005": 7.1 }, { "country": "China", "year2004": 9.9, "year2005": 10.1 }], "valueAxes": [{ "stackType": "3d", "unit": "%", "position": "left", "title": "test GDP growth rate", }], "startDuration": 1, "graphs": [{ "balloonText": "GDP grow in [[category]] (2004): <b>[[value]]</b>", "fillAlphas": 0.9, "lineAlpha": 0.2, "title": "2004", "type": "column", "valueField": "year2004" }, { "balloonText": "GDP grow in [[category]] (2005): <b>[[value]]</b>", "fillAlphas": 0.9, "lineAlpha": 0.2, "title": "2005", "type": "column", "valueField": "year2005" }], "plotAreaFillAlphas": 0.1, "depth3D": 60, "angle": 30, "categoryField": "country", "categoryAxis": { "gridPosition": "start" }, "export": {	"enabled": true }
});
jQuery('.chart-input').off().on('input change',function() {	var property	= jQuery(this).data('property');	var target	= chart;	chart.startDuration = 0;	if ( property == 'topRadius') {	target = chart.graphs[0];	if ( this.value == 0 ) { this.value = undefined;	}	}	target[property] = this.value;	chart.validateNow();
});
3D Stacked Column Chart - Script Codes
3D Stacked Column Chart - Script Codes
Home Page Home
Developer Otto Garcia
Username good886
Uploaded December 02, 2022
Rating 3
Size 2,505 Kb
Views 22,264
Do you need developer help for 3D Stacked Column Chart?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Otto Garcia (good886) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!