fusionchart问题(fusionchart问题).docVIP

  • 10
  • 0
  • 约 14页
  • 2017-07-24 发布于河南
  • 举报
fusionchart问题(fusionchart问题)

fusionchart问题(fusionchart问题) As long as you add unescapeLinks= 0 in the chart of the XML file, you can completely avoid the problem of Chinese garbled code. FunsionChart relevant knowledge arrangement 1. Update the data of the chart at regular intervals Var newXMLData = getNewXMLData (); Var chartObj = getChartFromId (chartId); ChartObj.setDataXML (newXMLData); 2, compatible with multi browser, use the settings to go to flash: FusionCharts.setCurrentRenderer (javascript); 3 、 encapsulation call fusionCharts method SetChartCommon:function (chartDivID, dataXml, swfPath, chartID, width, height, Param1, param2, param3, param4) {Y.one (+chartDivID #).Set (innerHTML, ); VaR, myChart = new, FusionCharts (swfPath, chartID, width, height, Param1, param2); MyChart.setDataXML (dataXml); MyChart.setTransparent (true); / / set transparent MyChart.configure (ChartNoDataText, i18nStrings.chartNoDataText); / / set the empty data prompt MyChart.configure (PBarLoadingText, i18nStrings.pBarLoadingText); / / set loading tips MyChart.render (chartDivID); }, 4, fusionchart button to increase the connection: MyChart.configureLink ( { SwfUrl:Charts/Bar2D.swf, Width:30%, OverlayButton: { Message: x, BgColor:999999, BorderColor:cccccc } }, 0); 5, note that the last two arguments must be 0,1, otherwise the event method will not be called VaR, chart1 = new, FusionCharts (Column3D.swf, chart1Id, 400, 300, 0, 1); 6, click the FusionCharts chart, pop-up interface (clickURL): chart, caption=Monthly, Sales, Summary, clickURL=n- 7, click a single property in the picture to give hint information: set label=Hong Kongvalue=235 link= JavaScript:myJS (Hong Kong 235); SCRIPT LANGUAGE= JavaScript Function myJS (myVar) { Window.alert (myVar); } /SCRIPT 8, set the background transparent: 1.In the charts XML data, set chart bgAlpha=0,0..... 2.myChart.setTransparent (true); 9, adaptive size: VaR, chart1 = new, FusionCharts (Column2D.swf, ChId1, 100%, 100%, 0, 0, FFFFFF, exactFit); Chart1.setDataURL (Data.xml

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档