face

Members
  • Content count

    3
  • Joined

  • Last visited

Posts posted by face


  1. Hello.

     

    I want to use HeatMap chart in my Android-APP (Phonegap/Eclipse).

    I get the rowId and the columnId but not the displayvalue (see attach "heatmap_emty.jpg")

     

    Here the code:

     

        <script type="text/javascript" charset="utf-8" src="FusionCharts.js"></script>
        <script type="text/javascript" charset="utf-8" src="FusionCharts.HC.js"></script>
        <script type="text/javascript" charset="utf-8" src="FusionCharts.HC.PowerCharts.js"></script>
        <script type="text/javascript" charset="utf-8" src="FusionCharts.jqueryplugin.js"></script>
        <script type="text/javascript" charset="utf-8" src="jquery.min.js"></script>
     

      <body>     
        <div id="chartContainerHMHome">FusionCharts XT will load here!</div>          
        <script type="text/javascript">
        
        if  ( FusionCharts( "HMHomeID" ) )  FusionCharts( "HMHomeID" ).dispose();

     

          FusionCharts.setCurrentRenderer('javascript')
          var myChart = new FusionCharts( "HeatMap.swf", "HMHomeID", "960", "598", "0", "1" );
          myChart.setXMLUrl("mobile_HM_Data_home.php");
          myChart.render("chartContainerHMHome");      
         
        </script>        
      </body>

     

    mobile_HM_Data_home.php:

    $str = "\"";
     
     $strXML ="<chart bgColor='29a1c4' Caption='TestTESTTest' mapByCategory='1' xAxisName='' yAxisName='' bgImageAlpha='30' bgImageScale='10' bgImageVAlign='top' bgImageHAlign='left'>";
     
     $strXML .= "<dataset>";
     $strXML .= "<set tooltext='test' rowId='X' columnId='test' displayvalue='test' color='F3E2A9' link='123.php'/>";
     $strXML .= "<set tooltext='test1' rowId='X' columnId='test1' displayvalue='test' color='F3E2A9' link='123.php'/>";
     $strXML .= "</dataset>";
     $strXML .= "<styles>";
     $strXML .= "<definition>";
     $strXML .= "<style name='datavaluesFont' type='font' font='Arial' size='14' color='150015' bold='0'/>";
     $strXML .= "</definition>";
     $strXML .= "  <application>";
     $strXML .= "     <apply toObject='tldatavalues' styles='tlLabelFont'/>";
     $strXML .= "     <apply toObject='trdatavalues' styles='trLabelFont'/>";
     $strXML .= "     <apply toObject='bldatavalues' styles='blLabelFont'/>";
     $strXML .= "     <apply toObject='brdatavalues' styles='brLabelFont'/>";
     $strXML .= "     <apply toObject='datavalues' styles='datavaluesFont'/>";
     $strXML .= "     <apply toObject='datavalues' styles='datavaluesShadow'/>";
     $strXML .= "   </application>";
     $strXML .= "</styles>";
     $strXML .= "</chart>";
     echo $strXML;

     

    in this case it don't work in app. And it don't work in internet explorer.

     

    don't use "FusionCharts.setCurrentRenderer('javascript')" - it works on internet explorer (see attach "heatmap_withdata.jpg") but still don't work in my app (attach "heatmap_empty.jpg")...

     

    what's wrong?

    please help!

     

    thanks a lot!!!


     

    post-55711-0-36694800-1392905438_thumb.jpg

    post-55711-0-10802500-1392905439_thumb.jpg


  2. Hello everybody.

    First: Sorry for my bad english!!!!

     

    I have a problem with the MultiLevelPie-Chart on my moodle-site.

    Here the code:

     

    <script type="text/javascript" src="Charts/FusionCharts.js" ></script>

     

    <body>

    <div id="chartContainer">PowerCharts XT will load here</div>

    <script type="text/javascript">

     

    if  ( FusionCharts( "myChartID" ) )  FusionCharts( "myChartID" ).dispose();

     

    var myChart = new FusionCharts( "Charts/MultiLevelPie.swf", "myChartID", "250", "180", "1" );

    myChart.setXMLUrl( "Charts/start_pie.xml" );

    myChart.render( "chartContainer" );

    </script>

    </body>

     

    But there is no Chart on my site.

     

    on debug-mode:

     

    Info: Chart loaded and initialized.

    Initial Width: 250

    Initial Height: 180

    Scale Mode: noScale

    Debug Mode: Yes

    Application Message Language: EN

    Chart Type: Multi-Level Pie Chart

    Version: 3.3.1 (XT)

    Chart Objects:

    BACKGROUND

    CANVAS

    CAPTION

    SUBCAPTION

    DATALABELS

    DATAPLOT

    TOOLTIP

     

    INFO: Chart registered with external script. DOM Id of chart is myChartID

    INFO: XML Data provided using dataURL method.

    dataURL provided: Charts/start_pie.xml

                                

    dataURL invoked: Charts/start_pie.xml

                                 ?FCTime=761

    ERROR: An error occurred while loading data. Please check your dataURL, by clicking on the "dataURL invoked" link above, to see if it's returing valid XML data. Common causes for error are:

    No URL Encoding provided for querystrings in dataURL. If your dataURL contains querystrings as parameters, you'll need to URL Encode the same. e.g., Data.asp?id=101&subId=242 should be Data%2Easp%3Fid%3D101%26subId%3D242

    Different sub-domain of chart .swf and dataURL. Both need to be same owing to sandbox security.

    Network error

     

     

    When i check the dataURL by clicking on the "dataURL invoked" link, so there are many blanks…and the link doesn’t work

    (see attachment spaces.jpg)

     

    if i make some changes in the code by using administration tools like firebug (deleting a blank or something else), it will be working -> i see the chart.

     

    Before: see attachment link_with_blank.jpg

    After: see attachment link_without_blank.jpg

     

     

    I hope somebody can help me!

    Thank you.

    post-55711-0-53808900-1378799709_thumb.jpg

    post-55711-0-33601800-1378799711_thumb.jpg

    post-55711-0-41492400-1378799712_thumb.jpg