zhou

GetXMLData Bug

Recommended Posts

I use DragNode chart

I use Add a Connector Button     new Add one  <connector >

 

 

use getXMLData()   But can not get the new  Connecor  xml

 

div id="chartContainer">FusionCharts XT will load here!</div>         
    <script type="text/javascript"><!--

       var myChart  = new FusionCharts("DragNode", "NodeChart", "900", "650", "1" );
        myChart.setDataXML('<chart viewmode="0" is3d="1" isTrendZone="1" yaxismaxvalue="100" yaxisminvalue="0" xaxismaxvalue="100" xaxisminvalue="0"

basefontsize="13" showformbtn="0" palette="2" ><categories></categories><dataset seriesname="DS1" id="1"><set id="2" color="AFD8F8" tooltext="A"

shape="CIRCLE" radius="50" name="名称[你的指标名称]" y="74.9794975727011" x="8.297607952780387" /><set x="26.911463187325253" y="69.24942263279446" id="3"

datasetid="1" name="中国" tooltext="" color="" alpha="18" labelalign="middle" allowdrag="1" shape="polygon" width="" height="" radius="12" numsides="23"

imagenode="0" imagewidth="" imageheight="" imageurl="" link=""></set><set x="36.71947809878844" y="69.9769053117783" id="5" datasetid="1" name="我的"

tooltext="" color="" alpha="" labelalign="bottom" allowdrag="1" shape="rectangle" width="100" height="10" radius="" numsides="" imagenode="0" imagewidth=""

imageheight="" imageurl="" link=""></set></dataset><labels /><connectors/></chart>');

       myChart.render("chartContainer");
     
    // -->    

 function btnclick() {
            alert("a");
            var ourChart = FusionCharts("NodeChart");
            var xmlRtn = ourChart.getXMLData();       // no Get new Connecor xml   
            alert(xmlRtn);

        }
    </script> 
 <input type="button"   onclick="btnclick()" />

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum  :)

 

Can you please try passing true as a parameter to the method and check if it works?

 

Eg. var xmlRtn = ourChart.getXMLData(true); 

 

Hope this helps

Share this post


Link to post
Share on other sites

Hi,

 

We tried to create a sample using the XML sent by you and it seems that the sample works as expected at our end. We have attached the sample here. Could you please try using the same sample at your end and let us know if it works fine?

 

Also, we created the sample using the latest version of FusionCharts v3.3.1 SR2. Could you please check if you are using the latest version or not? If not, you can download the evaluation copy of the latest version from http://www.fusioncharts.com/download/trials/ and check again.

 

Awaiting your response. :)

DragNode.zip

Share this post


Link to post
Share on other sites

it is Bug

My del Node

 

var xmlRtn = ourChart.getXMLData(true);

//var xmlRtn = ourChart.getXMLData(false);

var xmlRtn = ourChart.getXMLData();

 

not Get New Xml

 

 

 

Look picture

 

 

 

post-50284-0-95272400-1374885728_thumb.jpg

post-50284-0-94669300-1374885863_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

Can you please send us a sample replicating the problem with all the necessary files in the form of Zip (similar to the sample sent above) so that we can test it here?

 

Awaiting your response. :)

Share this post


Link to post
Share on other sites

Hi,

 

Apologies for delay.

 

It seems that the connectors do not retrieved in the XML when no connectors are present in the chart XML while creating a chart. The new connector added using the connector interactivity gets displayed in the XML when atleast one connector is already present in the chart XML during chart creation. We are looking into this and will get back to you soon.

 

Meanwhile, you may try using one blank connector in the XML during chart creation, in which case the connectors added later also show up when XML is retrieved using "getXMLData()". Please use the below given code as a workaround.

 

Ref:

myChart.setXMLData('<chart viewmode="0" is3d="1" isTrendZone="1" yaxismaxvalue="100" yaxisminvalue="0" xaxismaxvalue="100" xaxisminvalue="0" basefontsize="13" showformbtn="0" palette="2" ><categories></categories><dataset seriesname="DS1" id="1"><set id="2" color="AFD8F8" tooltext="A" shape="CIRCLE" radius="50" name="myname" y="74.9794975727011" x="8.297607952780387" /><set x="26.911463187325253" y="69.24942263279446" id="3" datasetid="1" name="myname" tooltext="" color="" alpha="18" labelalign="middle" allowdrag="1" shape="polygon" radius="12" numsides="23"></set></dataset><connectors>   <connector  /></connectors></chart>');

 

We shall update this thread as soon as we reach upon something.

Share this post


Link to post
Share on other sites
Hi,

 

Thank you for your patience.

 

The issue reported by you "Drag Node Chart - does not return connectors using getXMLData() , when none are present during chart creation" has been fixed and is available in the latest version of FusionCharts v3.3.1 SR3.

 

To download the trial version of FusionCharts v3.3.1 SR3, please visit the link: http://www.fusioncharts.com/download/trials/

 

Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now