Hi
I try to use FusionChart inside a Domino client. Not through a web application.
I can create a flashobject and set the FlashVars property to accept dataXML throught LotusScript.
However, the size of the flashobject is by default 192px. Way to small for me.
I tried to set the width with just flashChart.width = 200, where flashChart is my object.
I'm not sure how the API works. Anyone with a clue how to solve it?
Code looks like this in LotusScript:
Sub Initialize
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim flashChart As Variant
Dim data As String
Set uidoc = ws.CurrentDocument
Set flashChart = uidoc.GetObject( "FlashChart" )
data = "" & _
"<chart caption='Monthly Sales Summary' subcaption='For the year 2006' xAxisName='Month' yAxisName='Sales' numberPrefix='$'>" & _
"<set label='January' value='17400' />" & _
"<set label='February' value='19800' />" & _
"<set label='March' value='21800' />" & _
"<set label='April' value='23800' />" & _
"<set label='May' value='29600' />" & _
"<set label='June' value='27600' />" & _
"<set label='July' value='31800' />" & _
"<set label='August' value='39700' />" & _
"<set label='September' value='37800' />" & _
"<set label='October' value='21900' />" & _
"<set label='November' value='32900' />" & _
"<set label='December' value='39800' />" & _
"</chart>"
If Not flashChart Is Nothing Then
flashChart.FlashVars = "dataXML=" & data
Call flashChart.Play()
End If
End Sub
// Johan