Experimenting with 3D chart orientation
To enable the 3D feature, we first need to include the extension as follows:
<script src="http://code.highcharts.com/highcharts-3d.js"></script>
In Highcharts, there are two levels of 3D options: chart and series. The chart level options are located in chart.options3d
, which mainly deals with the orientation and the frame around the plotting area, whereas the 3D options for the series remain in the usual plotOptions
area, such as plotOptions.column.depth
.
Currently, Highcharts supports 2 axles of rotation: horizontal and vertical, which are the alpha
and beta
options in chart.options3d
respectively. The values for these options are in degrees. The following diagram illustrates with arrows the direction of chart rotation as the degree value increases and decreases:
Alpha and beta orientations
In the previous diagram, we showed the direction of orientation. Let's experiment with a column chart. We are going to use a chart from Chapter 4, Bar...