srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by srividya_sharma

  1. vLine Not Working

    Hi In multi-series charts, vLine should be used between <category> elements. Your vLine should be placed like this: <html> <head> <title></title> <script language="JavaScript" src="../FusionCharts/FusionCharts.js"></script> </head> <body> <center> <!-- START Script Block for Chart MSLine1 --> <div id="MSLine1Div"> Chart. </div> <script type="text/javascript" > var chart_MSLine1 = new FusionCharts("../FusionCharts/MSLine.swf", "MSLine1", "650", "450", "1", "0", "","noScale","EN"); //Provide entire XML data using dataXML method chart_MSLine1.setDataXML("<chart caption='Schedule Performace Chart' subCaption='Status Date: 10/26/2006' labelDisplay='Rotate' slantLabels='1' lineThickness='1' showValues='0' formatNumberScale='0' anchorRadius='2' divLineAlpha='20' divLineColor='CC3300' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridColor='CC3300' shadowAlpha='40' labelStep='1' numvdivlines='5' chartRightMargin='15' bgColor='FFFFFF,CC3300' bgAngle='270' bgAlpha='10,10' alternateHGridAlpha='5' showExportDataMenuItem='1' ><categories ><category label='Jul-2004' /><category label='Aug-2004' /><category label='Sep-2004' /><category label='Oct-2004' /><category label='Nov-2004' /><category label='Dec-2004' /><vLine label='10/26/2006' color='FF0000' linePosition='0.86' /><category label='Jan-2005' /><category label='Feb-2005' /><category label='Mar-2005' /><category label='Apr-2005' /><category label='May-2005' /><category label='Jun-2005' /><category label='Jul-2005' /><category label='Aug-2005' /><category label='Sep-2005' /><category label='Oct-2005' /><category label='Nov-2005' /><category label='Dec-2005' /><category label='Jan-2006' /><category label='Feb-2006' /><category label='Mar-2006' /><category label='Apr-2006' /><category label='May-2006' /><category label='Jun-2006' /><category label='Jul-2006' /><category label='Aug-2006' /><category label='Sep-2006' /><category label='Oct-2006' /><category label='Nov-2006' /><category label='Dec-2006' /><category label='Jan-2007' /></categories><dataset seriesName='Baseline' color='1D8BD1' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1' ><set value='3' /><set value='3' /><set value='3' /><set value='9' /><set value='9' /><set value='12' /><set value='12' /><set value='20' /><set value='49' /><set value='49' /><set value='56' /><set value='63' /><set value='64' /><set value='66' /><set value='86' /><set value='169' /><set value='226' /><set value='351' /><set value='501' /><set value='674' /><set value='900' /><set value='1058' /><set value='1190' /><set value='1311' /><set value='1395' /><set value='1471' /><set value='1532' /><set value='1609' /> <set value='1649' /><set value='1724' /><set value='1724' /></dataset><dataset seriesName='Forecast' color='2AD62A' anchorBorderColor='2AD62A' anchorBgColor='2AD62A' ><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='' /><set value='1025' dashed='1' /><set value='1095' dashed='1' /><set value='1210' dashed='1' /><set value='1376' dashed='1' /><set value='1497' dashed='1' /><set value='1609' dashed='1' /><set value='1738' dashed='1' /><set value='1749' dashed='1' /></dataset><dataset seriesName='Actual' color='F1683C' anchorBorderColor='F1683C' anchorBgColor='F1683C' ><set value='4' /><set value='4' /><set value='4' /><set value='10' /><set value='10' /><set value='13' /><set value='13' /><set value='21' /><set value='50' /><set value='50' /><set value='57' /><set value='62' /><set value='62' /><set value='64' /><set value='80' /><set value='165' /><set value='196' /><set value='251' /><set value='284' /><set value='395' /><set value='580' /><set value='774' /><set value='873' /><set value='1021' /><set value='1089' /><set value='1201' /><set value='1349' /><set value='1439' /><set value='1441' /></dataset></chart>"); chart_MSLine1.render("MSLine1Div"); </script> </center> </body> </html>
  2. Fusion Charts intergration with JSF Data XML Hard-coded

    The following code works for me. ( slightly modified your code. ) Please test whether this works for you. <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://www.fusioncharts.com" prefix="fc" %> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <f:view> <html> <head> <title>Show Custom Component</title> <!-- YOU HAVE TO INCLUDE THIS --> <script type="text/javascript" src="FusionCharts/FusionCharts.js"> </script> </head> <body> <rich:panel header="Fusion Chart"> <fc:renderHTML chartId="SimpleChart" filename="../FusionCharts/FCF_Column3D.swf" width="700" height="300"><graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0'><set name='Jan' value='462' color='AFD8F8' /> <set name='Feb' value='857' color='F6BD0F' /> </graph> </fc:renderHTML> </rich:panel> </body> </html> </f:view> Please try this code. Just wanted to confirm that You are using Free version of FusionCharts. < graph > tag can be used only in the free version. The pro version uses < chart > tag. You are using JSF 1.2 and you are using the latest FusionCharts jar from the post: http://www.fusioncharts.com/forum/FindPost13230.aspx
  3. Image not exported for save

    Yes Jean, you got it right. Only for the client side export feature, Flash 10 is required. For displaying the charts Flash 8 is enough.
  4. Fusion Charts intergration with JSF Data XML Hard-coded

    Yes Sudipto, that is the problem... but that code is generated dynamically. ( It is the resultant html ) So there must be some mistake in the input renderHTML tag.
  5. ICEfaces + Facelets + FusionCharts Free

    Great. For the benefit of all users, the correct URI for the taglib fc is http://www.fusioncharts.com
  6. ICEfaces + Facelets + FusionCharts Free

    Hi Mariusz First, I would like to thank you for moving to a new topic. I noticed that you are using registerWithJS attribute with fc:renderHTML. That could cause a problem. registerWithJS attribute is only present in fc:render tag. Hope this helps.
  7. Fusion Charts intergration with JSF

    Hi Karani, The setting of the attribute values is done internally by JSF and I have verified that it is done in the order in which they are provided. So your filename will get set correctly. If you want to post more queries in this regard, you can start a new topic. Thanks.
  8. Fusion Charts intergration with JSF

    I request all users of this thread to create new topic for individual problems that you face related to FusionCharts with JSF. This topic is growing and it might be difficult for future users to understand what is going on. Thanks a lot
  9. Fusion Charts intergration with JSF

    Hi Karani, The filename attribute of fc:render tag represents the name of the swf file. Are you talking about this attribute? If that is the case, then I think the name of the swf file is independent of the xml. Need more clarity.
  10. Fusion Charts intergration with JSF

    Yes, you can give inline xml. Please remove the newline characters from the xml. That is, remove all the indentation and formatting, that should work.
  11. Notable to create the chart with FusionChartsCreator class

    Hi Ramadevi, As far I can see, you can use both methods in this situation also. Inside jsp:param you would use value="<%=myChartWidth%>" I think the problem lies in "Turnover Comparison" which is given as chartId. ChartId cannot have spaces in it. ( it will be later appended to "chart_" to create a javascript variable.) Please specify the chartId without any spaces. Hope that works out!
  12. Fusion Charts intergration with JSF

    Whenever a new jar is released, it will be posted in this forum only. Please subscribe to this topic and you will get notification of any new post. ( Topic Options > Subscribe to Topic > Email Notification ) Yes, the attributes can be specified in any order, since each attribute is independent of the other. Why do you want the xml to be parsed before the filename? regards Srividya
  13. Notable to create the chart with FusionChartsCreator class

    Can you post the code that you see in View Source of the generated html page? Also, the second method can be used in any scenario. Can you tell me exactly why you want to use the first method?
  14. Fusion Charts intergration with JSF

    Hi, I have found the solution for switchType "normal" also. Basically, when the tab is clicked and the tabPanel switchType is "normal", it gets the state from the server. The tag library was not saving the state in the server. I have now fixed this issue in the taglib. Now your tabs will work like a charm! regards, Srividya fusionchartstaglibJSF1-2.zip
  15. Fusion Charts intergration with JSF

    Hi Karani, I was able to replicate the problem here, with the given code snippets. Here is one solution that works. Just change the switchType of the tabPanel as follows: <rich:tabPanel id="defaultTabPanel" switchType="client"> At this point of time, I am unable to clarify why in the default switchType, JSF Component receives null values. I will explore more on this and try to find other solutions. Hope the current solution works for you. Srividya
  16. Fusion Charts intergration with JSF

    Click on my name on the left of the message, Add to Buddy List and then you can send/receive Private Messages.
  17. Fusion Charts intergration with JSF

    These have to be the first few lines before even the html tag. (they have to be put them inside <% %> )
  18. Fusion Charts intergration with JSF

    Please try putting these headers in the jsp with the chart and index.jsp: response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0);
  19. Fusion Charts intergration with JSF

    Are there any cache headers, you said refresh brings back the chart right?
  20. Fusion Charts intergration with JSF

    It will take me some time, but let me try to replicate a similar situation here. Will keep you posted.
  21. Fusion Charts intergration with JSF

    Also, can you post the code snippet of the tabs and the Iframes? Regarding your earlier question, when you set debugMode "true", the chart will display detailed debug messages, looking at them you could get a clue as to what could have gone wrong.
  22. Fusion Charts intergration with JSF

    Hi Karani, What is the message on the chart? Again, turning debugMode "on" will also help. Srividya
  23. Fusion Charts intergration with JSF

    Hi Karani, Good to hear that your issue with the xml got resolved. The tag library jar can be used with FusionCharts free as well as v3. In fact, the only thing that will change when you purchase v3, are the swf files. Of course, you would be using more features in v3, with slight difference in the xml. Can you tell me about the "tab" you are talking about. Usually, in an iframe both frames are visible. regards Srividya
  24. Fusion Charts intergration with JSF

    Hi everybody, I have fixed an issue with registerWithJS attribute from the previous version of the jar. Here is the latest jar (for JSF 1.2). I hope it has not caused any problems to anybody so far. regards. fusionchartstaglibJSF1-2.zip
  25. Fusion Charts intergration with JSF

    Hi Karani, Welcome to the FusionCharts JSF forum thread! Please verify the following: 1. You would need to include FusionCharts.js in your jsf page that renders the chart. Example, <script type="text/javascript" src="../FusionCharts/FusionCharts.js"></script> Based on the location of the javascript file, above line of code will change. 2. With JSF1.2 taglib jar, you can give the complete xml as part of the body of the fc:render tag OR give the xml value from backing bean as an attribute to the tag. (Note: If attribute is provided, the body of the tag is skipped.) Example, <fc:render chartId="#{exampleChartData.chartId}" filename="#{exampleChartData.filename}" width="#{exampleChartData.width}" height="#{exampleChartData.height}" xml="#{exampleChartData.xml}"></fc:render> Hope this solves your problem.