I am using OWC10 web chat with chChartTypeScatterLine
The following is the BV script to display the data in the chart... but
i am not able to display the X axis value. Currently the X axis value is
DateTime. When i hard code this DateTime, the chart shows the date and
time, when i use the array values it is not showing.. pls help me
<script language="vbscript">
Sub Window_OnLoad()
'Extract the contents of the XML Data island and insert it into
two
'arrays: one array for the chart categories and one array for
the
'chart values.
Dim nCount, nodes, i
Dim array1_Value, array2_Value, array3_Value',MaxMin_Value
Set nodes = dsXML.XMLDocument.childNodes.item(0).childNodes
nCount = nodes.length-1
if nCount > 0 then
Redim aTimeStamp(nCount)
Redim aWaterLevel(nCount)
Redim array1(nCount)
Redim array2(nCount)
Redim array3(nCount)
'Create a chart from the array data.
'Bind the chart to the recordset.
Dim c
Set c = CSpace.Constants
Dim oChart, oSer
CSpace.Clear
Set oChart = CSpace.Charts.Add
Dim oSeries1, oSeries2,oSeries3
dim oConst
CSpace.Clear
Set oConst = CSpace.Constants
Set oChart = CSpace.Charts.Add
for each axis in oChart.Axes
axis.HasTitle = True
if axis.Type = c.chCategoryAxis then
axis.Title.Caption = "Time"
else
axis.Title.Caption = "Water Level"
end if
next
For i=1 to nCount
aTimeStamp(i) = nodes.item(i-1).ChildNodes.item(0).text
aWaterLevel(i) = nodes.item(i-1).ChildNodes.item(1).text