Chart / dataset /web /AnyChart /pie /chart_0042_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 Pie Chart 06</title>
<link href="https://playground.anychart.com/docs/samples/BCT_Pie_Chart_06/iframe" rel="canonical">
<meta content="Circle Chart,Graphics,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.14.1/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.14.1/js/anychart-base.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script>
<script type="text/javascript">anychart.onDocumentReady(function () {
// create a stage
var stage = anychart.graphics.create("container");
// create data
var data = [
{x: "A", value: 637166},
{x: "B", value: 721630},
{x: "C", value: 148662},
{x: "D", value: 78662},
{x: "E", value: 90000}
];
// create and configure the first pie chart
var chart1 = anychart.pie(data);
chart1.title("Start Angle: Default (0\xb0)");
chart1.bounds(0, 0, "50%", "100%");
// set the chart container
chart1.container(stage);
// initiate drawing the chart
chart1.draw();
// create and configure the second pie chart
var chart2 = anychart.pie(data);
chart2.title("Start Angle: 90\xb0");
chart2.bounds("50%", 0, "50%", "100%");
// set the start angle
chart2.startAngle(90);
// set the chart container
chart2.container(stage);
// initiate drawing the chart
chart2.draw();
});</script>
</body>
</html>