Sign in to follow this  
deepti

Xsd For Data Streaming Charts

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

 

 

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.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Deepti,

 

As of now we do not have the XSD for realtime charts ready with us.

Share this post


Link to post
Share on other sites

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.

 

Hi Deepti,

 

As of now we do not have the XSD for realtime charts ready with us.

Edited by deepti

Share this post


Link to post
Share on other sites

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.

 

Hi Deepti,

 

Apologies for the inconvenience caused.

 

Could you please refer to the attached file to check with the XSD Schema for the FusionCharts suite?

 

Hope this helps. :)

Edited by deepti

Share this post


Link to post
Share on other sites

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.

 

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.

stockprice.txt

Share this post


Link to post
Share on other sites

Fine, Thanks for the reply.

 

Awaiting your reply,

Deepti.

 

Hi Deepti,

 

We are looking into it. We would get back to you at our earliest.

 

Thank you for your continued patience and patronage.

Share this post


Link to post
Share on other sites

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.

 

Fine, Thanks for the reply.

 

Awaiting your reply,

Deepti.

Edited by deepti

Share this post


Link to post
Share on other sites

Hi Deepti,

 

I am not sure why this problem is occurring.

 

Please try to set the following before writing to the output stream:

 

response.setContentType("text/plain");

 

The provider page can be a JSF also, if that is what suits you.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

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.

 

Hi Deepti,

 

I am not sure why this problem is occurring.

 

Please try to set the following before writing to the output stream:

 

response.setContentType("text/plain");

 

The provider page can be a JSF also, if that is what suits you.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Deepti,

 

You are always welcome. :)

 

I haven't tried it out from a xhtml but it should be quite simple. Something like this should work:

<h:outputText value="&label="/>
<h:outputText value="#{mybean.timeLabel}"/>
<h:outputText value="&value="/>
<h:outputText value="#{mybean.roundedRandomValue}"/>

Hope this helps. :)

Share this post


Link to post
Share on other sites

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.

 

Hi Deepti,

 

You are always welcome. :)

 

I haven't tried it out from a xhtml but it should be quite simple. Something like this should work:

<h:outputText value="&label="/>
<h:outputText value="#{mybean.timeLabel}"/>
<h:outputText value="&value="/>
<h:outputText value="#{mybean.roundedRandomValue}"/>

Hope this helps. :)

Share this post


Link to post
Share on other sites

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.

 

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.

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