3D Pie Chart using amCharts.js

Size
1,958 Kb
Views
66,792

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 Previews

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");
});
3D Pie Chart using amCharts.js - Script Codes
3D Pie Chart using amCharts.js - Script Codes
Home Page Home
Developer Pankaj Parashar
Username pankajparashar
Uploaded August 12, 2022
Rating 4.5
Size 1,958 Kb
Views 66,792
Do you need developer help for 3D Pie Chart using amCharts.js?

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!

Pankaj Parashar (pankajparashar) Script Codes
Create amazing blog posts 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!