The chart type can be specified using the FCChartType attribute. You would find the list of all available chart types in List of Chart Types page in Introduction section. . In the previous code we loaded a Column 3D chart, the name of the chart SWF file is Column3D.swf, so we set Column3D as the chart type, as listed in the Chart Types List.
Again, for example, to render a Line chart, we need to change the value of FCChartType to "Line2D" as shown in the following code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="com.fusioncharts.components.*">
<ns1:FusionCharts x="10" y="10" width="500" height="250" FCDataURL="Data.xml" FCChartType="Line"/>
</mx:Application>
The above code will create a Line chart as shown below.
To change chart type you can use any of the Chart Type names listed below:
Chart Type Name | Description |
---|---|
Column2D | Single Series Column 2D Chart |
Column3D | Single Series Column 3D Chart |
Line | Single Series Line Chart |
Pie3D | Single Series Pie 3D Chart |
Pie2D | Single Series Pie 2D Chart |
Bar2D | Single Series Bar 2D Chart |
Area2D | Single Series Area 2D Chart |
Doughnut2D | Single Series Doughnut 2D Chart |
Doughnut3D | Single Series Doughnut 3D Chart |
MSColumn3D | Multi-Series Column 3D Chart |
MSColumn2D | Multi-Series Column 2D Chart |
MSArea2D | Multi-Series Area 2D Chart |
MSLine2D | Multi-Series Line Chart |
MSBar2D | Multi-Series Bar 2D Chart |
MSBar3D | Multi-Series Bar 3D Chart |
StackedColumn2D | Stacked Column 2D Chart |
StackedColumn3D | Stacked Column 3D Chart |
StackedBar2D | Stacked Bar 2D Chart |
StackedBar3D | Stacked Bar 3D Chart |
StackedArea2D | Stacked Area 2D Chart |
MSCombi2D | Combination Single Y-Axis Chart |
MSColumn3DLine | Combination Single Y-Axis Chart (Column 3D + Line) |
MSCombiDY2D | Combination Dual Y-axis 2D Chart |
MSColumn3DLineDY | Combination Dual Y-Axis Chart (Column 3D + Line) |
StackedColumn3DLineDY | Stacked Combination Column 3D Line Dual Y-Axis Chart |
ScrollColumn2D | Multi-Series Column 2D Scroll Chart |
ScrollLine2D | Multi-Series Scroll Line 2D Scroll Chart |
ScrollArea2D | Multi-Series Scroll Area 2D Scroll Chart |
ScrollStackedColumn2D | Scroll Stacked Column 2D Scroll Chart |
ScrollCombi2D | Scroll Combination 2D Single Y-Axis Scroll Chart |
ScrollCombiDY2D | Scroll Combination Dual Y-Axis 2D Scroll Chart |
LogMSColumn2D | Multi-Series Logarithmic Column 2D |
LogMSLine | Multi-Series Logarithmic Line |
InverseMSArea | Multi-Series Inverse y-Axis Area |
InverseMSColumn2D | Multi-Series Inverse y-Axis Column 2D |
InverseMSLine | Multi-Series Inverse y-Axis Line 2D |