这是 Highcharts 中最受欢迎的功能。
http://highcharts.uservoice.com/forums/55896-general
看起来我们必须等待一段时间!
是否支持 3D 饼图?
但是使用Google 可视化 API,您可以非常轻松地实现这一点。
代码
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
]);
var options = {
title: 'My Daily Activities',
is3D: true,
};
var chart = new google.visualization.PieChart(document.getElementById('piechart_3d'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div id="piechart_3d" style="width: 900px; height: 500px;"></div>
</body>
</html>
有关更多功能,请参阅文档https://developers.google.com/chart/interactive/docs/gallery/piechart
希望我帮助你:)