Plotting single series chart from data contained in Array
<%
'In this example, using FusionCharts ASP Class we plot a single series chart
'from data contained in an array.
'The array needs to have two columns - first one for data labels/names
'and the next one for data values.
'Let's store the sales data for 6 products in our array). We also store
'the name of products.
'Store Name of Products
dim arrData(6,2)
arrData(0, 0) = "Product A"
arrData(1, 0) = "Product B"
arrData(2, 0) = "Product C"
arrData(3, 0) = "Product D"
arrData(4, 0) = "Product E"
arrData(5, 0) = "Product F"
'Store sales data
arrData(0, 1) = 567500
arrData(1, 1) = 815300
arrData(2, 1) = 556800
arrData(3, 1) = 734500
arrData(4, 1) = 676800
arrData(5, 1) = 648500
dim FC
' Create First FusionCharts ASP class object
set FC = new FusionCharts
' Set chart type to Column 3D
call FC.setChartType("Column3D")
' Set chart size
call FC.setSize("600","300")
' Set Relative Path of swf file.
call FC.setSWFPath("../../FusionCharts/")
dim strParam
' Define chart attributes
strParam="caption=Sales by Product;numberPrefix=$"
' Set chart attributes
call FC.setChartParams(strParam)
' call FusionCharts ASP Class Function to add data from the array
call FC.addChartDataFromArray(arrData , "")
' Render the chart
call FC.renderChart(false)
%>