In the recipe Building vertical bar charts in this chapter, we showed how to make a simple bar chart in ActionScript. For this recipe, we wanted to spice it up a bit and make it 3D.
Get the code from the Building vertical bar charts recipe.
The following steps will show you how to convert a 2D bar chart to 3D:
BarData.as
, HorizontalAxis.as
, VerticalAxis.as
, and Main.as
from the Building vertical bar charts recipe from this chapter; these files are not going to change.BarChart.as
, increase the space between the bars. These are the lines that change:_barWidth = (width - 10) * 70 / 100 / data.length; ...
No credit card required