Chart / dataset /web /AnyChart /pie /chart_0052_pie.html
Pekku's picture
Upload folder using huggingface_hub
79dc9c8 verified
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>BCT 3D Doughnut Chart</title>
<link href="https://playground.anychart.com/De1FIYKS/iframe" rel="canonical">
<meta content="3D Chart,3D Pie Chart,Donut Chart,Doughnut Chart,Pie Chart" name="keywords">
<meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="_deps/cdn.anychart.com/releases/8.12.0/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css">
<style>html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}</style>
</head>
<body>
<div id="container"></div>
<script src="_deps/cdn.anychart.com/releases/8.12.0/js/anychart-core.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.12.0/js/anychart-pie.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.12.0/js/anychart-exports.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.12.0/js/anychart-ui.min_qe95e7e741b.js"></script>
<script type="text/javascript">anychart.onDocumentReady(function () {
// create data
var data = [
{x: "A", value: 6},
{x: "B", value: 16},
{x: "C", value: 54},
{x: "D", value: 5},
{x: "E", value: 8},
{x: "F", value: 11}
];
// create a 3d pie chart and set the data
var chart = anychart.pie3d(data);
/* set the inner radius
/ (to turn the pie chart into a doughnut chart)*/
chart.innerRadius("30%");
// set the chart title
chart.title("3D Doughnut Chart");
// set the container id
chart.container("container");
// initiate drawing the chart
chart.draw();
});</script>
</body>
</html>