srividya_sharma

Members
  • Content count

    943
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by srividya_sharma


  1. Try this in $chartOptions

    "?v=free&sep=" &$$delimiter& "&chart=[chartType= & $chartType &$$delimiter& "chartWidth=" &$chartWidth &$$delimiter& "chartHeight=" &$chartHeight& ]&chartParams=[caption=" &$caption& $$delimiter& "subCaption=" &$subCaption& $$delimiter& "formatNumberScale=1" &$$delimiter& "showValues=1" &$$delimiter& "decimalPrecision=1" &$$delimiter& "numberPrefix=;xAxisName=Month;YaxisName=Number of Events;]"

    It works for me. Attached is the screenshot.

    post-806-1284415665_thumb.jpg


  2. How To Use FusionCharts with FileMaker In Runtime

    1. Create runtime for the fp7 files that contain the Web Viewer to show the chart (FusionCharts). While creating the runtime for your primary file, also create runtime for FusionCharts Library.fp7 by adding it to the file list. This file is present in the Charts folder of your download package. Say, you created the runtime in a folder named


  3. How To Use FusionCharts with FileMaker In Runtime

     <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    1. Create runtime for the fp7 files that contain the Web Viewer to show the chart (FusionCharts). While creating the runtime for your primary file, also create runtime for FusionCharts Library.fp7 by adding it to the file list. This file is present in the Charts folder of your download package. Say, you created the runtime in a folder named

  4. Please refer to the documentation page

    Multi-Series Script Example > Database Structure

    and suheading, Inserting new data. As stated there,

    In order to insert values into the Month field, we have to create a layout which contains the Month field as a edit-box or a drop-down with values shown from MonthList and Year field as an edit-box. 2 rows were created for the years 2006 and 2007 with 12 values (corresponding to the 12 months of the year) for the repeating field "Month", using this layout. This was a temporary layout used just to enter the dummy data.

    I hope this helps you re-create the application.

    FusionCharts team


  5. Hello,

    From the questions that you have raised, it seems like you have gone through the scripts thoroughly.

    (1) In both AppendChartParmaeterToFCURL and AppendChartConfigToFCURL, the statement

    Set Cariable [$WebAddress; Value::$$FusionChartsFDilePath] should be placed right after if statement block, not before it. It seems to me before it, the script won't work if $$FusionChartsFDilePath is not initialized.

    The statement

    Set Variable [ $WebAddress; Value:$$FusionChartsFilePath ]

    assigns the value present in the global variable $$FusionChartsFilePath to $WebAddress. In case, FusionCharts was not initialized (which should not be the case, ideally. It is recommended that FusionCharts should be initialized.) then, we use the current directory path and assume that the FusionCharts.html file is present there. This is done within the If statement

    If [ IsEmpty($$FusionChartsFilePath) ]

    (2) I don't understand the following statement in BuildAndAppendSSDataParams-FrontRepetition

     

    Set Variable [ $data; Value:$data & If($LoopCounter ? 1;$delimiter;"") & GetRepetition ( Evaluate(""&$DataFieldName); LoopCounter )

     

    Why to use Evaluate statement and why to use ""& (to get a expression?) ?

     

    GetRepetition function requires that the repeatingField be any repeating field, or an expression that returns a reference to a repeating field.

    In our case, since the Field Name is given as parameter ($DataFieldName) we need to create an expression that returns a reference to the repeating field. This is done by using the Evaluate function.

    The use of empty quotes "" and appending the variable $DataFieldName to it, is just precautionary (in case $DataFieldName is not a string). In most cases,however, we can get the same results by using Evaluate($DataFieldName) in place of Evaluate(""&$DataFieldName).

    (3) the following statement seems to be useless in the script BVuildAndAppendSSDataParams-BySummingValuesInLayout

    Set Variables[$currentValue; Value:0]

    (just after "End If" statement, and 3 lines above the "End Loop")

     

    It was just considered to be good scripting practice to reset the value of the important variable $currentValue towards the end of the loop. As such, it is not neccessary here.

    We have tried to keep the scripts as efficient as possible, considering different types of scenarios in which they could be used. Even if the scripts seem weird in some places or if there are a few redundant statements here and there, at the end of it all, the scripts work, and serve their purpose. In future, we will try to incorporate the pre-requisites for the scripts, as comments in the scripts.

    I hope this answers all your questions.

    Thank you for your suggestions.

    Please feel free to contact us

    FusionCharts Team


  6. Hello

    FusionCharts Free 1.0.1 For FileMaker does not run from USB drive. This has been handled in FusionCharts Pro For FileMaker and the upcoming version of FusionCharts Free for FileMaker.

    Basically, in order for the charts to be rendered from any drive in Mac or Windows, the directory path variable $currentDir should have the following value:

    Let ( folderPath=Left ( Get ( FilePath ) ; Position ( Get

    ( FilePath ) ; "/" ; Length (Get (FilePath)) ; -1));

    Let (curDir=folderPath ; If ( Abs ( Get ( SystemPlatform )) = 2 ;

    curDir ; Substitute (curDir ; "file:/" ; "file:///Volumes" ) )))

    To this path, Charts/FusionCharts.html is further appended to get the complete path.

    So, in your example,

    file://Storage/Samples/BasicExamples/Charts/FusionCharts.html?v=free ...

    should be replaced by

    file:///Volumes/Storage/Samples/BasicExamples/Charts/FusionCharts.html?v=free ...

    Please try this out.


  7. Learner apps> Number Formatting example provided in FusionCharts Pro for FileMaker deals with special characters in number suffix. I have attached a sample application here. In this example, the special characters are addressed.

    So, if % is given as the character input for Number Suffix, you can see % in the chart You can also see that in the Query String it gets changed to %2525. This is done by the script. Try this application.

    specialcharsexample.zip


  8. I have modified the jsp given by you. Please find the jsp in the attached zip file.

    Here is the list of changes that were made to the jsp :

    1. In the chart xml (dataXML), replace all double quotes (escaped) with single quotes when specifying values for attributes.

    2. Use the setDataXML function to set the xml string to the chart object (myChart).

    Root element of XML data document has been changed from <graph> to <chart> (from v2.3 to v3 ). However, <graph> element would still continue to work from your old XML documents. But, we recommend using <chart> element for any new charts that you now make.

    Thanks,

    Srividya

    FusionCharts Team

    modifiedtestChart.zip