3D Stacked Column Chart
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 - 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();
});
Developer | Otto Garcia |
Username | good886 |
Uploaded | December 02, 2022 |
Rating | 3 |
Size | 2,505 Kb |
Views | 22,264 |
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!
Name | Size |
Loading external CSV data for bubble map | 4,720 Kb |
3D Pie Chart - MATRIZ GENERACION ENERGIA | 1,944 Kb |
Chart With Gaps In Data | 2,914 Kb |
Automatically create a table of chart data on load | 2,879 Kb |
Map usa select state | 2,120 Kb |
Usa map test | 5,213 Kb |
Mapa Puertos USA | 4,447 Kb |
Grouped countries map | 2,625 Kb |
Capitals map | 3,079 Kb |
Map with dynamic Pie charts | 3,892 Kb |
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!
Name | Username | Size |
Tumblr API | Juanv911 | 2,436 Kb |
Pure CSS Spinners | Jlong | 2,043 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
CSS Link Icons with jQuery Titles | Nicwinn | 2,312 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
Prism | Pyrografix | 2,843 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Cool Page Split Effect | Anthonyadamski | 6,128 Kb |
A Pen by Andrea Verlicchi | Verlok | 2,018 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!