FusionCharts for Flex > Your First Chart > Changing Chart Type

The chart type can be specified using FCChartType attribute. In the previous section we created a Column 3D chart. In this section we will convert it into a Line chart.

To render a Line chart, we must change the value of FCChartType to Line, as shown in the following code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:components="com.fusioncharts.components.*">

<components:FusionCharts x="10" y="10" FCChartType="Line" FCDataURL="Data.xml"/>


</s:Application>

The above code creates a Line chart as shown below.

Following is the list of available chart types:

Description FCChartType Value
Column 2D Chart Column2D
Column 3D Chart Column3D
Pie 3D Chart Pie3D
Pie 2D Chart Pie2D
Line 2D Chart Line
Area 2D Chart Area2D
Bar 2D Chart Bar2D
Doughnut 2D Chart Doughnut2D
Doughnut 3D Chart Doughnut3D
   
Multi-series Column 2D Chart MSColumn2D
Multi-series Column 3D Chart MSColumn3D
Multi-series Line 2D Chart MSLine
Multi-series Area 2D Chart MSArea
Multi-series Bar 2D Chart MSBar2D
Multi-series Bar 3D Chart MSBar3D
   
Stacked Column 2D Chart StackedColumn2D
Stacked Column 3D Chart StackedColumn3D
Stacked Area 2D Chart StackedArea2D
Stacked Bar 2D Chart StackedBar2D
Stacked Bar 3D Chart StackedBar3D
   
3D Single Y Combination Chart MSCombi3D
2D Single Y Combination Chart MSCombi2D
2D Dual Y Combination Chart MSCombiDY2D
Column 3D Line (Single Y) Combination Chart MSColumnLine3D
Multi-series Column 3D Line Dual Y Combination Chart MSColumn3DLineDY
Stacked Column 3D Line Dual Y Combination Chart StackedColumn3DLineDY
   
Scroll Column 2D Chart ScrollColumn2D
Scroll Line 2D Chart ScrollLine2D
Scroll Area 2D Chart ScrollArea2D
Scroll Stacked Column 2D Chart ScrollStackedColumn2D
Scroll Combination 2D Chart ScrollCombi2D
Scroll Combination 2D Dual Y Chart ScrollCombiDY2D
   
Logarithmic Column 2D Chart LogMSColumn2D
Logarithmic Line Chart LogMSLine
   
Inverse y-Axis Column 2D Chart InverseMSColumn2D
Inverse y-Axis Line 2D Chart InverseMSLine
Inverse y-Axis Area Chart InverseMSArea
   
Scatter Chart Scatter
Bubble Chart Bubble
   
Spline Chart Spline
Spline Area Chart SplineArea
Multi-series Spline Chart MSSpline
Multi-series Spline Area Chart MSSplineArea
   
Funnel Chart Funnel
Pyramid Chart Pyramid
Radar Chart Radar