Luohui Report post Posted February 21, 2013 (edited) Dear support, i have a strange problem and i need your help. fusioncharts free: <div style="height: 250px;"> <div id="li_01_content_day_daily_normal_chart" style="height: 250px; "></div> </div> var chartDayDailyXml = getChartXml_Day_Daily(); window.onload = function () { fillingChart(); } function getChartXml_Day_Daily() { var _today = new Date(); var _dateList = []; _dateList[0] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[1] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[2] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[3] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[4] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[5] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); _dateList[6] = _today.addDays(-1).getMonth() + "." + _today.toString("dd"); var CLSDT = clsdt; _xmlStr = "<graph caption='Sales' PYAxisName='' SYAxisName='' baseFontSize='12' baseFontColor='464547' bgColor='E2E8F0,ffffff' canvasBorderThickness='1' canvasBorderColor='DCDCDC' shadowAlpha='10' showColumnShadow='1' showNames='1' numDivLines='2' divLineColor='DCDCDC' decimalPrecision='1' formatNumberScale='1' numberPrefix='' numberSuffix='' rotateNames='0' showFCMenuItem='0' PYAxisMinValue='0' PYAxisMaxValue='40' SYAxisMinValue='0' SYAxisMaxValue='20'>"; _xmlStr += "<categories>"; _xmlStr += "<category name='" + _dateList[6] + "' />"; _xmlStr += "<category name='" + _dateList[5] + "' />"; _xmlStr += "<category name='" + _dateList[4] + "' />"; _xmlStr += "<category name='" + _dateList[3] + "' />"; _xmlStr += "<category name='" + _dateList[2] + "' />"; _xmlStr += "<category name='" + _dateList[1] + "' />"; _xmlStr += "<category name='" + _dateList[0] + "' />"; _xmlStr += "</categories>"; _xmlStr += "<dataset seriesName='' parentYAxis='P' showValues='0' color='F5BA00'>"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='DAY' and @CLSDT='" + CLSDT + "' and @CLS01='' and @CLS02='']"); // if (node != null) { _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "'/>"; } else { _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; } _xmlStr += "</dataset>"; _xmlStr += "<dataset seriesName='' parentYAxis='S' showValues='0' lineThickness='2' numberPrefix='' numberSuffix='%25' color='5AC724' anchorSides='3' anchorRadius='6' anchorBorderThickness='1' anchorBorderColor='5AC724' anchorBgColor='5AC724'>"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='DAY' and @CLSDT='" + CLSDT + "' and @CLS01='PER' and @CLS02='']"); // if (node != null) { _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "'/>"; } else { _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; } _xmlStr += "</dataset>"; _xmlStr += "<dataset seriesName='' parentYAxis='S' showValues='0' lineThickness='2' numberPrefix='' numberSuffix='%25' color='733AE0' anchorSides='8' anchorRadius='4' anchorBorderThickness='1' anchorBorderColor='733AE0' anchorBgColor='733AE0'>"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='DAY' and @CLSDT='" + CLSDT + "' and @CLS01='' and @CLS02='']");// if (node != null) { _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "'/>"; _xmlStr += "<set value='" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "'/>"; } else { _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; _xmlStr += "<set value='0'/>"; } _xmlStr += "</dataset>"; _xmlStr += "</graph>"; return _xmlStr; } function fillingChart() { var chart_Day_Daily = new FusionCharts("FusionCharts/Charts/FCF_MSColumn2DLineDY.swf", "_li_01_content_day_daily_normal_chart_obj", chartWidth, chartHeight, "0", "0"); chart_Day_Daily.setDataXML(chartDayDailyXml); chart_Day_Daily.render("li_01_content_day_daily_normal_chart"); } Edited February 21, 2013 by Luohui Share this post Link to post Share on other sites
FusionCharts Support Report post Posted March 6, 2013 Hi, Are you facing this issue only with % or any other character? In case with %, what do you see instead of %. Can also try once with % instead of %25. Share this post Link to post Share on other sites