You are viewing documentation for an older version. For current documentation - click here.

FusionCharts JavaScript classes provide a rich and powerful API. It eases the implementation and management of charts using its powerful functions, properties and events. It is a highly enhanced JavaScript architecture. It provides various features like pure JavaScript charts for iPhone or iPad and non-Flash player based browsers, multiple data formats (XML and JSON), better event management, better printing support for Mozilla browsers, better UTF-8 handling, easier HTTPS data support, smart drilldown using LinkedCharts handlers and more.

The following pages contain lists and detailed description of:

 
FusionCharts API Quick-reference map

Here is a quick reference map of FusionCharts JavaScript API. Click on the desired item to know more.

HTML
  JavaScript (window object)
 

FusionCharts() - collection of all charts in a page

getChartFromId() - deprecated

    FusionCharts JavaScript Class
FusionCharts JavaScript Class - static members
Properties Function     Objects

version

items

 

render()

getObjectReference()

addEventListener()

removeEventListener()

setCurrentRenderer()

printManager

configure()

enabled()

managedPrint()

isReady()


debugMode

outPutTo()

outputFormat()

enabled()


FusionCharts JavaScript Class - instance (prototype) members
Properties Functions Functions Functions Functions

id

width

height

src

 

FusionCharts
- constructor

setTransparent

render

configure

configureLink

addEventListener

removeEventListener

clone

dispose

addVariable - deprecated

setXMLUrl

setXMLData

setJSONUrl

setJSONData

setChartData

setChartDataUrl

setChartAttribute

setDataURL
- deprecated

setDataXML
- deprecated

getXML

getXMLData

getJSONData

getChartData

getDataAsCSV

getChartAttribute

 

 

exportChart

print

resizeTo

hasRendered

isActive

chartType

signature

Chart Specific functions

togglePieSlice(), enableSlicingMovement(), enableLink()

Available for: Pie2D, Pie3D, Doughnut2D and Doughnut3D charts.

view2D(), view3D(), resetView(), rotateView(), getViewAngles(), fitToStage(), view100Percent()

Available for: MSCombi3D (True 3D) chart.

zoomOut(), resetChart(), zoomTo(), setZoomMode(), getViewStartIndex(), getViewEndIndex()

Available for: Zoom Line chart.


FusionCharts Events (listened using addEventListener - Advanced event model)

Initialize

DataLoadRequested

DataLoadRequestCancelled

DataLoadRequestCompleted

DataLoadCancelled

BeforeDataUpdate

DataUpdated

Loaded

DataLoaded

Rendered

DrawComplete

Resized

Exported

PrintReadyStateChange


BeforeLinkedItemOpen

LinkedItemOpened

BeforeLinkedItemClose

LinkedItemClosed

 

BeforeDispose

Disposed

NoDataToDisplay

DataLoadError

DataXMLInvalid

 

Error

Warning

FusionCharts Simple Events (to be defined as global functions - Simple event model)

FC_Loaded

FC_DataLoaded

FC_Rendered

FC_Exported

 

FC_DataLoadError

FC_NoDataToDisplay

FC_DataXMLInvalid

Chart Specific events (Zoom Line chart)

As Global functions
(Simple event model)

FC_Zoomed

FC_Pinned

FC_ZoomedOut

FC_ResetZoomChart

Using addEventListener
(Advanced event model)

Zoomed

Pinned

ZoomedOut

ResetZoomChart