deepti

Members
  • Content count

    146
  • Joined

  • Last visited

Everything posted by deepti

  1. Hi, I want to change the color of the dots in the realtime line chart based on certain conditions.So is it possible to provide the anchorBgColor for the new incremental data along with the lable and value.If so how.I tried something like &label=16:09:02&value=0.0&color=C71019 as well as &label=16:09:02&value=0.0&anchorBgcolor=C71019.But didn't work.Please let me know if this is possible. Thnaks, Deepti.
  2. Hi, I want to change the color of the dots in the realtime line chart based on certain conditions.So is it possible to provide the anchorBgColor for the new incremental data along with the lable and value.If so how.I tried something like &label=16:09:02&value=0.0&color=C71019 as well as &label=16:09:02&value=0.0&anchorBgcolor=C71019.But didn't work.Please let me know if this is possible. Thnaks, Deepti.
  3. Hi, I am using a real time line chart in my application.It is woking .But I am facing two issues : 1 : The chart starts refreshing only from the second data push.i.e for the first data push the chart will remain the same.When the second data comes the chart gets refreshed with the first data. 2 : If I add one point as historical data to the chart,It will be shown in the chart when it is loaded.But the chart is not refreshing in this case.The response is coming in the refresh intervals, with the new data.But the chart will remain the same. The xml that I am using to generate the chart is as shown below : <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <chart canvasBottomMargin='0' caption='Chart Caption' chartBottomMargin='30' labelDisplay='ROTATE' lineColor='000000' refreshInterval='30' rotateValues='0' setAdaptiveYMin='1' showRealTimeValue='1' showValues='0' showYAxisValues='1' slantLabels='1' rotateLabels='0' valuePadding='0' xAxisName='Time' xAxisNamePadding='30' yAxisMaxValue='7.0' yAxisMinValue='0.0' yAxisName='Percent Rejects'> <categories> <category label='17:31:02'/> </categories> <dataset> <set value='0.7'/> </dataset> </chart> Is this not the correct way to add historical data to the real time chart.Please help. Thanks, Deepti.
  4. Hi, Thanks for the reply.Thanks for your patience and time. Deepti.
  5. Hi, Do you mean to say there is no way to avoid dispalying it.Even by setting any of the attributes? Is this a bug, because it is like displaying something that is not actually required or wished to be displayed. Thanks, Deepti.
  6. Hi, Sorry my xml has that and all. Sorry for the wrong xml last time.Following is the xml I am using : <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <chart canvasBottomMargin='0' caption='P Chart of Rejects' chartBottomMargin='30' dataStreamURL='rt_pv.seam' decimals='4' labelDisplay='ROTATE' lineColor='000000' numDisplaySets='30' refreshInterval='5' rotateValues='0' setAdaptiveYMin='1' showLabels='1' showRealTimeValue='1' showValues='0' showYAxisValues='1' slantLabels='1' rotateLabels='0' updateInterval='10' valuePadding='0' xAxisName='Time' xAxisNamePadding='30' yAxisMaxValue='7.0' yAxisMinValue='0.0' yAxisName='Percent Rejects'> <categories> <category label='14:23:04' showLabel='1'/> <category label='14:24:01' showLabel='1'/> <category label='14:25:02' showLabel='1'/> <category label='14:26:01' showLabel='1'/> <category label='14:27:01' showLabel='1'/> <category label='14:28:00' showLabel='1'/> <category label='14:29:00' showLabel='1'/> <category label='14:30:01' showLabel='1'/> <category label='14:31:00' showLabel='1'/> </categories> <dataset showValues='0'> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> </dataset> <trendLines> <line color='FF1717' displayValue='LCL:0.0' startValue='0.0' valueOnRight='1'/> <line color='0000FF' displayValue='Mean:5.0' startValue='5.0' valueOnRight='1'/> <line color='FF1717' displayValue='UCL:5.0 ' startValue='5.0' valueOnRight='0'/> </trendLines> </chart> Thanks, Deepti.
  7. Hi, My dataset element always does not contain single value.For example in case of the following xml also I am getting that value on the xaxis : <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <chart canvasBottomMargin='0' caption='P Chart of Rejects' chartBottomMargin='30' decimals='4' labelDisplay='ROTATE' lineColor='000000' numDisplaySets='30' refreshInterval='5' rotateValues='0' setAdaptiveYMin='1' showLabels='1' showRealTimeValue='1' showValues='0' showYAxisValues='1' slantLabels='1' rotateLabels='0' updateInterval='10' valuePadding='0' xAxisName='Time' xAxisNamePadding='30' yAxisMaxValue='7.0' yAxisMinValue='0.0' yAxisName='Percent Rejects'> <categories> <category label='14:09:03' showLabel='1'/> <category label='14:10:01' showLabel='1'/> <category label='14:11:01' showLabel='1'/> <category label='14:12:01' showLabel='1'/> <category label='14:13:01' showLabel='1'/> <category label='14:14:01' showLabel='1'/> <category label='14:15:01' showLabel='1'/> <category label='14:16:01' showLabel='1'/> <category label='14:17:00' showLabel='1'/> </categories> <dataset showValues='0'> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> <set showValue='0' value='5.0'/> </dataset> </chart> Thanks, Deepti.
  8. Hi, I am sorry, I didn't get what u meant. But if you see the attachement you can see one '5' that I have highlighted in a red box.This is the yvalue of the last point added . How can I remove this. Thanks, Deepti.
  9. Hi, Thanks for your replies.It helped me. But there is one small issue that I have mentioned in one of the previous mails like the yvalue of the first point that is plotted is being shown at the middle of the xaxis.How can I remove this? Expectiong your reply. Deepti.
  10. Hi, Thanks for the reply. I have added the attributes numdisplaysets='20' and decimals='2' and then it started working.But I have one more issue : The chart gets refreshed only for the second data push.Means if I have given the refresh interval as 30,I am getting the next point after 30 secs(which I can see in the firebug response).But chart gets updated only after 60 secs,i.e when the second data is pushed and that too with the data that was pushed previously.And that continues.That means the chart is getting updated after that in every 30secs,but everytime the chart is getting updated with the previous data pushed.Do I need to set any other attributes to solve this? Please help. Thanks, Deepti.
  11. Hi, I am sorry ,I did't get your question properly.But I my requirement is,If I am passing some (x,y) points initially,more precisely , If I am adding some datasets and categories to the chart through the xml, I want those points to be shown in the chart and then continue with the new point that are coming during the chart refresh intervals,pushing the old pints.I think this is how realtime charts with historical data works. Thanks, Deepti.
  12. Hi, You mean the xaxis position of the fisrt y value that is being shown on the xaxis? It is exactly at the center of the xaxis. Thanks, Deepti.
  13. Hi, If any one have any idea please give me a reply.I have one more issue.When I am getting the realtime poits(without historical data) the yvalue of the first point that is plotted is being shown on the x axis at the middle.How can I remove this. Thanks, Deepti.
  14. Hi, Actually there was a mistake in the xml that I posted yesterday.The correct xml that I am using is the one given below.And as I have mtioned I can see that the new data is getting pushed in regular refresh intervals(I can see that in firebug).But the chart is not getting refreshed. <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <chart canvasBottomMargin='0' caption='P Chart of Rejects' chartBottomMargin='30' dataStreamURL='rt_pv.seam' labelDisplay='ROTATE' lineColor='000000' refreshInterval='30' rotateValues='0' setAdaptiveYMin='1' showRealTimeValue='1' showValues='0' showYAxisValues='1' slantLabels='1' rotateLabels='0' valuePadding='0' xAxisName='Time' xAxisNamePadding='30' yAxisMaxValue='7.0' yAxisMinValue='0.0' yAxisName='Percent Rejects'> <categories> <category label='17:31:02'/> </categories> <dataset> <set value='0.7'/> </dataset> <trendLines> <line color='FF1717' displayValue='LCL:0.0' startValue='0.0' valueOnRight='1'/> <line color='0000FF' displayValue='Mean:0.0 ' startValue='0.0' valueOnRight='0'/> <line color='FF1717' displayValue='UCL:5.0' startValue='5.0' valueOnRight='1'/> </trendLines> </chart> Thanks, Deepti.
  15. Hi , I am uisng fusioncharts in my richfaces project and its working fine.Now I need to add a realtime line chart also.Can I get the xsd and swf for the same. thanks, Deepti.
  16. Hi , I am uisng fusioncharts in my richfaces project and its working fine.Now I need to add a realtime line chart also.Can I get the xsd for realtime datastreaming line charts. thanks, Deepti.
  17. Xsd For Data Streaming Charts

    Hi Sanjukta , I got it working by writing it to the response stream directly from the bean. Thank you so much for your support. Deepti.
  18. Xsd For Data Streaming Charts

    Hi Sanjukta , I could try it with the xhtml.But the response I am getting is having '&amp' instead of '&' .My code is as given below? //Html code :- <ui:composition xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"> <f:view contentType="text/plain"> #{rtTest.getNewData()} </f:view> </ui:composition> and bean function which returns the string is :- public String getNewData() { getRoundedRandomValue(); getTimeLabel(); String dataParameters = "\u0026"+"label=" + timeLabel + "\u0026"+"value=" + roundedRandomValue; return dataParameters; } String dataParameters = "&label=" + timeLabel + "&value=" + roundedRandomValue; also doesn't work. The string that will be returned from this method looks like :- &label=14:22:54&value=33.15 But in the response it comes as :- &label=14:22:54&value=33.15 Is this the reason why its ot getting plotted.How can I solve this.Hope you will be able to help me. Thanks, Deepti.
  19. Xsd For Data Streaming Charts

    Hi Sanjukta , Thanks a lot.Thats working.But now I have to get the values from a bean.Actually I am using xhtml for front end.Can I use an xhtml page as data provider page.Or I didnt get your answer "The provider page can be a JSF also".Can you please give me a simple example of a provider page in either of the two. Thanks, Deepti.
  20. Xsd For Data Streaming Charts

    Hi Sanjukta, Since you said you are working on this, I would like to give one more input for this.Actually my environment is Seam + Richfaces.So even with this environmet, will I have to proceeed with the jsp page as the data provider page? Or can you please tell me how I can write a data provider page for the data streaming charts, in this environment,because I could not find a suitable example anywhere? Thanks, Deepti.
  21. Xsd For Data Streaming Charts

    Fine, Thanks for the reply. Awaiting your reply, Deepti.
  22. Xsd For Data Streaming Charts

    Hi, I think the jsp file was not attached properly with the previous file.I am attaching it here. It would be great if you can suggest a solution. Thanks, Deepti. stockprice.txt
  23. Xsd For Data Streaming Charts

    Hi Sanjukta, Thankyou so much. I have some issue with the realtime charts.I am generating the charts as I have explained in my previous post.It seems to be working .I am using the StockPrice.jsp file available with the examples as the dataprovider page. I am getting the labels updated in specified interval.But the values and the graph is not plotted.In the responses I could see that the response string is coming as :- &label=11:45:34&value=33</html> . I could not usnderstand why that "</html>" is getting attached to the response string.I guess that is the reson why the graph is not getting plotted properly. It would be great if you can give any idea on this.I have attached the StockPrice.jsp file that I am using. Thanks, Deepti.
  24. Xsd For Data Streaming Charts

    Hi, Thanks for the reply.May be I will try creating an xsd based on my requirements.But I have another isuue with the real time charts. In my project I am using dataXml method.I am creating the chart object with the com.fusioncharts.jsf.UIChart class.Then I will create the xml as required and set the xml as data for the chart using the chartObject.setXml method.All my normal charts are woking this way.But when I come to the realtime data streaming charts, can I go with the same approch.I tried it.I am getting the initial chart on the UI.But the chart is not getting updated.The xml generated looks as : <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <chart caption='rtCHart' dataStreamURL='fusioncharts/StockPrice.jsp' realTimeValuePadding='50' refreshInterval='30' setAdaptiveYMin='1' showRealTimeValue='1' slantLabels='0' xAxisName='X Axis'> <dataset seriesName='Series1' showValues='0'/> </chart> The jsp is the same jsp file that you have given in the examples and it is placed in the same folder where the swf files are placed. Please let me know if what I am trying is correct or if not please give me the solution. Thanks, Deepti.
  25. Xsd For Data Streaming Charts

    Hi, Is the schema avialable for download somewhere in net.I searched , but could not find.It would be great if some one can give an answer. Thanks, Deepti.