3D Pie Chart using amCharts.js
How do I make an 3d pie chart using amcharts.js?
This experiment show you how to generate a 3D Pie Chart using amCharts.js. What is a 3d pie chart using amcharts.js? How do you make a 3d pie chart using amcharts.js? This script and codes were developed by Pankaj Parashar on 12 August 2022, Friday.
3D Pie Chart using amCharts.js - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>3D Pie Chart using amCharts.js</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="chartdiv"></div> <script src='http://www.amcharts.com/lib/amcharts.js'></script> <script src="js/index.js"></script>
</body>
</html>
3D Pie Chart using amCharts.js - Script Codes CSS Codes
div { margin: -.5em auto; text-align:center; width: 90%; height: 390px }
3D Pie Chart using amCharts.js - Script Codes JS Codes
var chart;
var legend;
var chartData = [{ country: "Lithuania", value: 260},
{ country: "Ireland", value: 201},
{ country: "Germany", value: 65},
{ country: "Australia", value: 39},
{ country: "UK", value: 19},
{ country: "Latvia", value: 10}];
AmCharts.ready(function() { // PIE CHART chart = new AmCharts.AmPieChart(); chart.dataProvider = chartData; chart.titleField = "country"; chart.valueField = "value"; chart.outlineColor = ""; chart.outlineAlpha = 0.8; chart.outlineThickness = 2; // this makes the chart 3D chart.depth3D = 20; chart.angle = 30; // WRITE chart.write("chartdiv");
});
Developer | Pankaj Parashar |
Username | pankajparashar |
Uploaded | August 12, 2022 |
Rating | 4.5 |
Size | 1,958 Kb |
Views | 66,792 |
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 |
HTML5 Meter Element | 2,732 Kb |
Pure CSS Tags | 2,089 Kb |
Negative Margins, Positive Padding | 2,197 Kb |
Webkit Scrollbars | 4,059 Kb |
Minimal business card | 2,447 Kb |
Reading Position Indicator | 5,454 Kb |
Pure CSS Calendar Icon | 2,221 Kb |
The Chili Recipe | 23,620 Kb |
Deconstruction of Twitter Logo | 2,830 Kb |
Skillset using HTML5 progress bars with CSS3 animations | 5,923 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 |
Angular Sandbox | Alexgurrola | 1,616 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
JQuery Validate checkbox group | Lunaman | 2,466 Kb |
Fading Navigation Bar | J-w-v | 2,805 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Light Switch | Bartuc | 4,933 Kb |
Polygon Logo in CSS | Kai | 3,412 Kb |
Svg sky | Omodev | 7,070 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!