FusionCharts for Flex > API Reference > Methods

Following are the methods of FusionCharts class.
 
Method Name Parameters Description
FCData
(dataplotData:Object):void
dataPlotData:Object It accepts and sets chart's dataplot data as Array, XMLList or Model Object in parameter - dataplotData.
FCParams
(chartParams:Object):void
chartParams:Object It accepts and sets chart parameters as Array, XMList or Model Object in parameter - chartParams.
FCStyles
(styles:Object):void
styles:Object It accepts and sets chart styles as Array, XMList or Model Object in parameter - styles.
FCTrendLines
(trendlines:String):void
trendlines:Object It accepts and sets chart trendlines as Array, XMList or Model Object in parameter - trendlines.
FChTrendLines
(hTrendlines:String):void
hTrendlines:Object It accepts and sets horizontal chart trendlines as Array, XMList or Model Object in parameter - hTrendlines. This is only applicable for XY Plot charts and Bubble charts.
FCvTrendLines
(vTrendlines:String):void
vTrendlines:Object It accepts and sets vertical chart trendlines as Array, XMList or Model Object in parameter - vTrendlines. This is only applicable for XY Plot charts and Bubble charts.
FCSetDataURL
(dataURL:String):void
dataURL:String This function updates chart XML from a file and renders the chart. The URL of the file is passe as String parameter - dataURL.
FCSetDataXML
(strXML:Sting):void
strXML:String This function updates chart XML from a string and renders the chart. The XML is passed as String parameter is passed as the parameter strXML.
FCRender():void   This function renders a chart. It can also update a chart after new chart data is set using FCData(), FCSetDataXML(), FCSetDataURL() methods or using FCDataURL, FCDataXML properties.
FCPrintChart():void   It prints the chart.
FCGetAttribute
(attributeName:String):String
attributeName:String Returns the value of an attribute specified by the parameter.
FCGetCSVData():String   Returns tha chart data-plot data as a CSV string.
FCGetSignature():String   Returns the version of the chart being used.
FCGetXMLData():String   Returns the XML data of the chart as a string.
FCExportChart(type:String, fileName:String):void type: String
fileName: String
Calls the export chart routine to save the chart as PDF/image. Parameters may be passed to override the export parameters initially specified by the XML.