Sign in to follow this  
b471code3

Format XML after but before the Chart is populated

Recommended Posts

I have a chart I would like to determine the background color with a specific variable passed from somewhere else but I am not able to do it very efficiently in the current program. 

What I have is a Webspeed program which then is read by a PHP program which is then put into the chart on a PHP page.  The actual XML is determine in the Webspeed program and I would like to determine the color in the PHP program after the XML is formatted and ready to be read by the chart. 

Any suggestions?

Share this post


Link to post
Share on other sites

If the XML is made by Webspeed and then passed to PHP, you can do use two ways to change bgColor:

1. Use string replacement (either direct or using RegExp)

2. Use XML DOM to read the XML, and then push the new attribute

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