i have this code
var myChart = new FusionCharts("../themes/clean/charts/hbullet.swf", "myChartId", "400", "75", "0", "0");
myChart.setDataXML("<chart lowerLimit='0' upperLimit='100' caption='Revenue' subcaption='US $ (1,000s)' numberPrefix='$' numberSuffix='K' showValue='1'><colorRange><color minValue='0' maxValue='50' color='A6A6A6'/><color minValue='50' maxValue='75' color='CCCCCC'/><color minValue='75' maxValue='100' color='E1E1E1'/></colorRange><value>78.9</value><target>80</target></chart>");
myChart.render("chartdiv");
now i want to edit some values within this code.
however to make things more complex im using a php function to write the "chartdiv" div and i need database values placed into this code. is it possible to slide php variables from my php function into this .js file? or is it better or even possible to write the javascript with PHP?