Sign in to follow this  
gary.brain

XML Data Export being modified

Recommended Posts

Hi, 1st of great product.... been adding the graphs and power graphs to my site to represent the data clearer.....

I have a small issue though.

Graph : DragNode

XML : being modified on export.

Javascript Function :

function updateXML()

 {

var chartToPrint = getChartFromId("networkmap");

document.uploadxml.strXML.value=chartToPrint.getXML();

return true;

 }

What I am doing is creating a network map based on the config from a device. This works well.

I have added a button on the page to get the XML from the chart and POST it to a page.

This then adds the XML output to a database record which is then read to rebuilt the graph. This way a user can add/delete to the diagram.

Now this all works.... the problem is the output is not including some of the code.

1) Set Change

Before : <set alpha='1' x='50' y='50' width='150' height='50' name='Proxy' color='FFFFFF' id='12344' imageNode='1' imageURL='/images/ProxySG.gif' imageAlign='MIDDLE' toolText='Proxy' />";

The exported line looks like this.

After : <set id='12344' x='50.5632183908046' y='50.7567567567568' name='12344' height='50' width='150' shape='RECTANGLE' imageNode='1' imageURL='/images/ProxySG.gif' imageHeight='-1' imageWidth='-1' imageAlign='MIDDLE' labelAlign='top' color='FFFFFF' />

What is missing is the alpha='1' which adds the background to the image.

1) Data Set

Before : <dataset plotBorderAlpha='0' allowDrag='1' showformbtn='0'>

After : <dataSet id='1' seriesName='' >

This results in the border around the image.

Also see graph Attached.

Is there a way to get around this (any additonal settings required) or code change by yourselfs.

Best Regards

 

Gary

post-6171-128441575145_thumb.gif

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
Sign in to follow this