Format XML after but before the Chart is populated
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Format XML after but before the Chart is... Expand / Collapse
Author
Message
Posted 6/25/2007 10:16:36 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 8/30/2007 11:48:12 AM
Posts: 10, Visits: 16
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?

Post #1424
Posted 6/25/2007 1:12:06 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 12:15:43 AM
Posts: 2,228, Visits: 540
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

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1431
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 4:12am


Execution: 0.078.