Sign in to follow this  
badf00d

vLines not showing up (RealTimeLine.swf) when added as part of real-time data stream.

Recommended Posts

According to the widgets documentation, the following realtime data should create a

 

vLine:

 

&label=11:45&value=753|345&vline=0&vLineLabel=vLine&vLineColor=666666&vLineThickness=2&vLineDashed=1

 

However it does not do so on the RealTimeLine.swf chart I have created. The chart is

 

loaded with historical data and then fed realtime data. vLines are placed on the start of

 

each hour. The lines show up properly when added as part of the historical feed, but do

 

not show up when added as part of the realtime feed using the format provided.

 

This is the chart setup:

 

 

 

var chart = new FusionCharts("../FusionWidgets/Charts/RealTimeLine.swf", "ChartId", "720", "468", "0", "0");

chart.setDataURL("DataRTSnap.asp?<%= Replace(Request.QueryString, "&", "%26") %>");		   

chart.render("chartdiv");

 

This is a sample of the chart xml returned from DataRTSnap.asp (which correctly places a vLine at the hour):

 

 

 

<chart legendPosition='RIGHT' forceDecimals='1' caption='Test'

xAxisName='Time' yAxisName='Value' divLineAlpha='20' numdivlines='5' showValues='0'

formatNumberScale='0' labelDisplay='ROTATE' slantLabels='1' 

showAlternateVGridColor='0' alternateHGridAlpha='12' animation='1' divLineDecimalPrecision='2' setAdaptiveYMin='1'

xAxisNamePadding='0' showRealTimeValue='0' realTimeValuePadding='0'

numDisplaySets='120' labelPadding='5' yAxisValuesPadding='15' numVdivlines='0'

dataStreamURL='DataRT.asp' refreshInterval='20' dataStamp='7.30.2008T11!05'>

<categories>

<category label='7-30 10:58'/>

<category label='7-30 10:59'/>

<vLine alpha='20' thickness='1'/>

<category label='7-30 11:00'/>

<category label='7-30 11:05'/>

</categories>

<dataset seriesName='Set1' includeInLegend='1' showValues='0' color='FF0000' lineThickness='1' anchorRadius='0'>

<set value='2.76'/>

<set value='2.76'/>

<set value='2.76'/>

<set value='2.76'/>

</dataset>

<dataset seriesName='Set2' includeInLegend='1' showValues='0' color='008000' lineThickness='1' anchorRadius='1'>

<set value='10.584'/>

<set value='10.656'/>

<set value='10.584'/>

<set value='10.656'/>

</dataset>

<dataset seriesName='Set3' includeInLegend='1' showValues='0' color='12228D' lineThickness='1' anchorRadius='0'>

<set value='10.78'/>

<set value='10.78'/>

<set value='10.77'/>

<set value='10.77'/>

</dataset>  

</chart>

 

This is a sample off the data returned from DataRT.asp (which does not place a vLine on the chart):

 

 

 

&label=7-30 11:06&value=2.76|10.34|10.78&vline=0&vLineLabel=vLine&vLineColor=666666&vLineThickness=2&vLineDashed=1&dataStamp7.30.2008T11!06

 

So, something is wrong....help would be appreciated.

 

 

 

Thanks.

Edited by Guest

Share this post


Link to post
Share on other sites

fyi...I answered my own question...the example in the docs is incorrect.

For anyone else who is interested and for posterity sake. I fixed the issue by change the vLine value from 0 to 1

i.e.,

&label=7-30 11:06&value=2.76|10.34|10.78&vline=1&vLineLabel=vLine&vLineColor=666666&vLineThickness=2&vLineDashed=1&dataStamp7.30.2008T11!06

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this