Here's the code I'm doing in the javascript of the page:
// Get the current chart information
var chartObj = getChartFromId('<%=CallGraph1.ClientID%>_FC');
var chartXML = chartObj.getXML();
// add a caption
var newXML = chartXML.substr(0, chartXML.indexOf("animation") - 1);
newXML = newXML.concat(captionString); // captionString is defined and created above
newXML = newXML.concat(chartXML.substr(chartXML.indexOf("animation")-1));
// update the current chart information to include the new caption
chartObj.setDataXML(newXML);
// chartObj.render('<%=CallGraph1.ClientID%>_FCDiv'); /* note that this fails as no method is found */
// Export the chart to PDF
if (chartObj.hasRendered()) /* at this point the graph is NOT in rendered state so the exportChart method is never called */
chartObj.exportChart();
My biggest issue is that once I modify the chart it's no longer "rendered" so won't export to PDF. I haven't found a way to render the chart again once I modify it.
Any suggestions?

Back to top
MultiQuote