bagus sutan Report post Posted December 23, 2009 Hi, I'm having trouble to dsiplay message logger. I have read the documentation but still couldn't show the logger. Please guide me. here the code i write, advice please: <script type="text/javascript"> var chart1 = new FusionCharts("../../script/FusionWidgets/RealTimeLine.swf?ChartNoDataText=Please select a point above", "ChId1", "620", "350", "0", "1"); chart1.setTransparent(true); chart1.setDataXML("<chart useMessageLog='1' messageLogWPercent='50' messageLogHPercent='50' messageLogShowTitle='High Temperature' lineThickness='1' canvasBgAlpha='0' bgColor='000000' bgAlpha='0' canvasBorderThickness='1' canvasBorderColor='76B900' canvasBgColor='000000' yAxisMaxValue='100' decimals='0' numdivlines='9' numVDivLines='30' numDisplaySets='30' divLineColor='008040' vDivLineColor='008040' divLineAlpha='100' chartLeftMargin='10' baseFontColor='00dd00' showRealTimeValue='0' labelDisplay='rotate' slantLabels='1' toolTipBgColor='000000' toolTipBorderColor='008040' baseFontSize='10' showAlternateHGridColor='0' legendBgAlpha='0'legendBgColor='000000' legendPadding='35' showLabels='0' caption='SCADA Historical Trends' subCaption='Percentage Value' legendBorderColor='57b746' legendAllowDrag='1' toolTipBorderColor='57b746' dataStreamURL='scadaChartFus2.asp?equip=<%=equip%>&type=percent' refreshInterval='1' drawAnchors='1' anchorRadius='2' anchorAlpha='0' numberPrefix='' setAdaptiveYMin='1' xAxisName='' showNames='0' showRealTimeValue='0' realTimeValuePadding='50' labelDisplay='Rotate' slantLabels='1' ><categories ><%=x%></categories><%=data_percent%><styles><definition><style type='font' name='captionFont' size='14' /><style name='MyXScaleAnim' type='ANIMATION' duration='1' start='0' param='_xscale' /><style name='MyYScaleAnim' type='ANIMATION' duration='1' start='0' param='_yscale' /></definition><application><apply toObject='Caption' styles='captionFont' /><apply toObject='Realtimevalue' styles='captionFont' /></application></styles></chart>"); chart1.render("chart1div"); </script> Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted December 24, 2009 Hi Bagus, Could you please send us the generated XML codes so that we might look into it? Awaiting your reply. :hehe: Share this post Link to post Share on other sites
bagus sutan Report post Posted December 24, 2009 here is the asp code to generate the data series: <% dim equip, eq_sk, caption, captions, x, y(), y_percent() dim qry, data, data_percent, t,i redim y(5), y_percent(5) equip = request("equip") 'equip=("FQI116C_KJI,PI116_KJI,FQI101A_KJI") 'response.Write(equip) eq_sk = split(equip, ",") caption = request("caption") captions = split(request("caption"), ",") data = "" data_percent = "" 'select the first top n data! dbcon_open() for i=0 to ubound(eq_sk) qry = "wgen_SCADA_graph '" & eq_sk(i) & "'" 'response.Write(qry) if not dbcon_query(rs, qry, 10) = 0 then response.write errMsg response.End end if y(i) = "" y_percent(i) = "" x = "" t = 0 do while not rs.eof 'if t mod 5=0 then x = x & "<category name='" & rs("time") & "' />" 'else ' x = x & "<category name=' ' />" 'end if y(i) = y(i) & "<set value='" & rs("value") & "' />" y_percent(i) = y_percent(i) & "<set value='" & rs("value_percent") & "' msgtitle='OK'/>" t = t+1 rs.movenext loop data = data & "<dataset seriesName='"& captions(i) &"' showValues='0' color='" & getFCColor() & "'>" & y(i) & "</dataset>" data_percent = data_percent & "<dataset seriesName='"& captions(i) &"' showValues='0' color='" & getFCColor() & "'>" & y_percent(i) & "</dataset>" next dbcon_close() %> thx, Bagus Sutan Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted December 24, 2009 Hi Bagus, Could you please send us the generated XML codes? Ref.- 1) Please render your chart on the browser page. 2) Please right-click on that page where you will be able to see an option called "view source". 3) Please click on that option to get your generated XML codes. Awaiting your reply. :hehe: Share this post Link to post Share on other sites