AmyJohnson

Members
  • Content count

    5
  • Joined

  • Last visited

Posts posted by AmyJohnson


  1. Hello, I am using FusionMaps XT ver. 3.3.1 and trying to get the Entityrollover event  to register. Here is my code (copied from the example in documentation)

     

        <script type="text/javascript" src="fusion_charts/common_js/FusionCharts.js"></script>
            <script type="text/javascript" src="fusion_charts/common_js/jquery.min.js"></script>
      </head>   
      <body>
              <div id="details"> </div>     
        <div id="mapContainer">FusionMaps XT will load here!</div>          
        <script type="text/javascript"><!--         

          var myMap = new FusionCharts( "fusion_charts/FusionMaps/Maps/FCMap_World.swf", "myMapId", "400", "300", "0" );
          myMap.setXMLUrl("Data.xml");
          myMap.render("mapContainer");
                                            
          function myChartListener(eventObject, argumentsObject){
          alert ("in entity");
          }

          FusionCharts("myMapId").addEventListener ("EntityRollover" , myChartListener );

        // -->     
        </script>      
     

    Here is my XML:

     

    <map borderColor='005879' fillColor='D7F4FF' numberSuffix=' Mill.' includeValueInLabels='1' labelSepChar=': ' baseFontSize='9'>
     <data>
        <entity id='NA' value='515' />
        <entity id='SA' value='373' />
        <entity id='AS' value='3875' />
        <entity id='EU' value='727' />
        <entity id='AF' value='885' />
        <entity id='AU' value='32' />
     </data>
    </map>
     

    Thanks for any help

     


  2. I'm just using the code you have in the PowerCharts/gallery/dragnode directory. It looks like this

    Hi,

     

    Please note, to plot a Chart from PowerCharts pack, you would need to add following .js files in your project,

     

    > FusionCharts.js

    > FusionCharts.HC.js

    > FusionCharts.HC.PowerCharts.js

    > jquery.min.js

     

    Can you paste your sample code and XML here? It would be helpful to look into the issue.

     

    Awaiting your response.

    DragNode1.html