var chart = new Highcharts.Chart({
chart: {
renderTo: "container",
type: "column",
options3d: {
enabled: true,
alpha: 6,
beta: 11,
depth: 200,
viewDistance: 0,
},
},
title: {
text: "交互性3D柱状图",
},
subtitle: {
text: "可通过滑动下方滑块测试",
},
plotOptions: {
column: {
depth: 60,
borderWidth: 0,
},
series: {
type: "column",
borderWidth: 0,
borderColor: "black",
},
},
yAxis: {
gridLineWidth: 0,
title: {
text: null,
},
},
xAxis: {
gridLineWidth: 0,
},
series: [{
name: "图例1",
color: {
linearGradient: { x1: 0, x2: 0, y1: 0, y2: 1 },
stops: [
[0, "rgba(0, 255, 255, 1)"],
[1, "rgba(0, 255, 255, 0.1)"],
],
},
data: [
29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1,
95.6, 54.4,
],
}, ],
});