srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by srividya_sharma


  1. Hello Captain,

    Just to replicate your issue, I updated the flash player in Windows machine to the latest Version 10,1,53,64.

    All my charts in FileMaker are of the same size as before. I have verified with different versions of FileMaker.

    Can you send me a sample file where I can see the reduced size of the chart?

    Can you verify that the chartWidth and chartHeight attributes in the QueryString are same as the webviewer width and height?

    Awaiting your reply.

    Srividya :)


  2. Hi

    Glad that you were able to integrate FusionCharts with Spring.

    In order to refresh only the chart, ( instead of the whole page ) you could do the following:

    1. Make ajax request for new data

    2. Set this data to the chart using the following

    [/code]

      <SCRIPT LANGUAGE="JavaScript">

     //Here, we get a reference to the chart and update it's

     //data using setDataXML method.

     function updateChart(DOMId,xml){

      //Get reference to chart object using Dom ID

    var chartObj = getChartFromId("chart1Id");

    //Update it's XML

    chartObj.setDataXML(xml); 

     }

    </SCRIPT>

    [/code]

    This way, only the chart will get updated.

    Hope this is what you were looking for. :)

    Srividya


  3. Hi Sai,

    If I have understood your question correctly, this is what you would need to do:

    Create a <chart> root element.

    Iterate through the list of active users and for each item in the list, create a <set label='active username' value='value'/> element.

    Close the chart element using </chart>

    So finally your xml would look something like this:

    <chart> 
    <set label="user1" value="value1"/>
    <set label="user2" value="value2"/>
    ...
    </chart>
    

    Just as Sudipto mentioned, the xml format varies for different chart types. The xml format given above is for single series chart.

    Now, store this xml in backing bean and use it in the jsf page.

    Hope this helps. :)

    Srividya


  4. Hi Stephane,

    If you are using FusionChartsRenderer.jsp to embed the chart, then this is how you pass the registerWithJS parameter to it:

    <jsp:include page="../Includes/FusionChartsRenderer.jsp" flush="true"> 
    <jsp:param name="chartSWF" value="../../FusionCharts/Column3D.swf" /> 
    <jsp:param name="strURL" value="Data/Data.xml" /> 
    <jsp:param name="strXML" value="" /> 
    <jsp:param name="chartId" value="myFirst" /> 
    <jsp:param name="chartWidth" value="600" /> 
    <jsp:param name="chartHeight" value="300" /> 
    <jsp:param name="debugMode" value="false" /> 
    <jsp:param name="registerWithJS" value="true" /> 
    </jsp:include>
    

    Please make this correction and try once.

    Hope this works out. :)

    Srividya


  5. Hi

    For lo4j, please create a log4j.properties file with the following lines in it:

    log4j.rootCategory=INFO, R
    
    log4j.logger.com.fusioncharts.exporter=ERROR
    ------------------------------------------------------------------------------
    #
    #  The following properties configure the console (stdout) appender.
    #  See http://logging.apache.org/log4j/docs/api/index.html for details.
    #
    #------------------------------------------------------------------------------
    log4j.appender.S = org.apache.log4j.ConsoleAppender
    log4j.appender.S.layout = org.apache.log4j.PatternLayout
    log4j.appender.S.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
    
    #------------------------------------------------------------------------------
    #
    #  The following properties configure the Daily Rolling File appender.
    #  See http://logging.apache.org/log4j/docs/api/index.html for details.
    #
    #------------------------------------------------------------------------------
    log4j.appender.R = org.apache.log4j.DailyRollingFileAppender
    log4j.appender.R.File = logs/myApp.log
    log4j.appender.R.Append = true
    log4j.appender.R.DatePattern = '.'yyy-MM-dd
    log4j.appender.R.layout = org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n 
    

    Place this file in WEB-INF/classes folder.

    Hope this works out. :)

    Srividya


  6. Hi everybody,

    Here is a FusionCharts sample RoR application which works with rails 2.3.5.

    Please place the .swf files in public/FusionCharts folder, before testing.

    I assume the database creation etc to be same as the application provided with FusionCharts download package.

    Hope you find it useful. :D

    Please give me your valuable suggestion/feedback.

    In case, it does not work, please tell me. :w00t:

    Srividya

    Rails2-3-5SampleApp.zip