Luohui

Members
  • Content count

    12
  • Joined

  • Last visited

About Luohui

  • Rank
    Junior Member
  1. hi How to set the width and height of the caption border <styles> <definition> <style name="CaptionStyle" type="font" font="Verdana" size="14" color="464547" bold="1" bgColor="F1F4F8" borderColor="D7DBDF" leftMargin="5" rightMargin="5" letterSpacing="2"/> </definition> <application> <apply toObject="Caption" styles="CaptionStyle" /> </application> </styles>
  2. HI~ 1.Why does not automatically resize?? 2.Why does not automatically redraw?? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="Utility/FusionCharts/Charts/FusionCharts.js" type="text/javascript"></script> </head> <body> <div> <div style="height: 225px;"> <div id="daily_chart_panel" style=" height: 225px; float: left; background:#E2E8F0;"></div> <div id="grand_chart_panel" style=" height: 225px; float: right; background:#E2E8F0;"></div> </div> <input id="Button1" type="button" value="ReDraw" onclick="return reDraw_onclick()" /> </div> <script type="text/javascript"> window.daily_Chart = null; window.grand_Chart = null; window.dailyXml = null; window.grandXml = null; window.onerror = null; window.onresize = function () { // var _pos = window.getBodyPos(); // var _page_Content_Panel_Width = _pos.clientWidth - 38; // document.getElementById("daily_chart_panel").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; document.getElementById("grand_chart_panel").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; // window.daily_Chart = FusionCharts("daily_chart_id"); if (window.daily_Chart) { window.daily_Chart.resizeTo("100%", "100%"); //Why does not automatically resize?? } // window.grand_Chart = FusionCharts("grand_chart_id"); if (window.grand_Chart) { window.grand_Chart.resizeTo("100%", "100%"); //Why does not automatically resize?? } } window.onload = function () { window.getXml(); window.fillingChart(); window.onresize(); } function fillingChart() { //daily_Chart window.daily_Chart = FusionCharts("daily_chart_id"); if (!window.daily_Chart) { window.daily_Chart = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Day_Daily.swf", "daily_chart_id", "100%", "100%", "0", "1"); window.daily_Chart.setXMLData(window.dailyXml); window.daily_Chart.render("daily_chart_panel"); } else { window.daily_Chart = FusionCharts("daily_chart_id"); window.daily_Chart.setXMLData(window.dailyXml); //Why does not automatically redraw?? } //grand_Chart window.grand_Chart = FusionCharts("grand_chart_id"); if (!window.grand_Chart) { window.grand_Chart = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Grand_Total.swf", "grand_chart_id", "100%", "100%", "0", "1"); window.grand_Chart.setXMLData(window.grandXml); window.grand_Chart.render("grand_chart_panel"); } else { window.grand_Chart = FusionCharts("grand_chart_id"); window.grand_Chart.setXMLData(window.grandXml); //Why does not automatically redraw?? } } function getXml() { /* var xmlhttp = Utility.XmlHttpRequest.getXmlHttp(); xmlhttp.open("POST", "Item.aspx?r=" + Math.random() + "&I_REPDT=" + _I_REPDT + "&I_WAERS=" + _I_WAERS + "&I_PHQTY=" + _I_PHQTY, false); xmlhttp.send(null); xmldoc = xmlhttp.responseXML; window.dailyXml = window.getChartXml('Daily','Day'); window.grandXml = window.getChartXml('Grand','Mon'); */ window.dailyXml = "<chart caption=\"Daily\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"443\" hoverText=\"443\"/> <set value=\"394\" hoverText=\"394\"/> <set value=\"414\" hoverText=\"414\"/> <set value=\"610\" hoverText=\"610\"/> <set value=\"1002\" hoverText=\"1002\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"90\" hoverText=\"90\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"15.9\" hoverText=\"15.9%\"/> <set value=\"14.2\" hoverText=\"14.2%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"21.9\" hoverText=\"21.9%\"/> <set value=\"36.0\" hoverText=\"36.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; window.grandXml = "<chart caption=\"Grand\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"9158\" hoverText=\"9158\"/> <set value=\"9549\" hoverText=\"9549\"/> <set value=\"9968\" hoverText=\"9968\"/> <set value=\"10580\" hoverText=\"10580\"/> <set value=\"11593\" hoverText=\"11593\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"173\" hoverText=\"173\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.8\" hoverText=\"13.8%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; } function getChartXml(caption, zztyp) { var _dateList = getDateList(); var _xmlStr = ""; _xmlStr += "<chart caption=\"" + caption + "\" showLegend='0' legendPosition='RIGHT' showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\">"; _xmlStr += " <categories>"; _xmlStr += " <category label=\"" + _dateList[13] + "\"/>"; _xmlStr += " <category label=\"" + _dateList[12] + "\" />"; _xmlStr += " <category label=\"" + _dateList[11] + "\" />"; _xmlStr += " <category label=\"" + _dateList[10] + "\" />"; _xmlStr += " <category label=\"" + _dateList[9] + "\" />"; _xmlStr += " <category label=\"" + _dateList[8] + "\" />"; _xmlStr += " <category label=\"" + _dateList[7] + "\" />"; _xmlStr += " </categories>"; _xmlStr += " <dataset seriesname=\"A\" color=\"F5BA00\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='PER' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <styles>"; _xmlStr += " <definition>"; _xmlStr += " <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" />"; _xmlStr += " <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/>"; _xmlStr += " <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/>"; _xmlStr += " </definition>"; _xmlStr += " <application>"; _xmlStr += " <apply toObject=\"Caption\" styles=\"CaptionStyle\" />"; _xmlStr += " <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" />"; _xmlStr += " </application>"; _xmlStr += " </styles>"; _xmlStr += "</chart>"; return _xmlStr; } function getBodyPos() { if (document.compatMode == "BackCompat") { return { // clientWidth: document.body.clientWidth, clientHeight: document.body.clientHeight, // scrollWidth: document.body.scrollWidth, scrollHeight: document.body.scrollHeight, // clientLeft: document.body.clientLeft, clientTop: document.body.clientTop, // scrollLeft: document.body.scrollLeft, scrollTop: document.body.scrollTop, // Width: Math.max(document.body.clientWidth, document.body.scrollWidth), Height: Math.max(document.body.clientHeight, document.body.scrollHeight) }; } else { return { // clientWidth: document.documentElement.clientWidth, clientHeight: document.documentElement.clientHeight, // scrollWidth: document.documentElement.scrollWidth, scrollHeight: document.documentElement.scrollHeight, // clientLeft: document.documentElement.clientLeft, clientTop: document.documentElement.clientTop, // scrollLeft: document.documentElement.scrollLeft, scrollTop: document.documentElement.scrollTop, // width: Math.max(document.documentElement.clientWidth, document.documentElement.scrollWidth), height: Math.max(document.documentElement.clientHeight, document.documentElement.scrollHeight) }; } } function reDraw_onclick() { //window.getXml(); window.dailyXml = "<chart caption=\"Daily_New\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"543\" hoverText=\"543\"/> <set value=\"394\" hoverText=\"394\"/> <set value=\"414\" hoverText=\"414\"/> <set value=\"710\" hoverText=\"710\"/> <set value=\"1002\" hoverText=\"1002\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"90\" hoverText=\"90\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"15.9\" hoverText=\"15.9%\"/> <set value=\"14.2\" hoverText=\"14.2%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"21.9\" hoverText=\"21.9%\"/> <set value=\"26.0\" hoverText=\"26.0%\"/> <set value=\"10.0\" hoverText=\"10.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; window.grandXml = "<chart caption=\"Grand_New\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"8158\" hoverText=\"8158\"/> <set value=\"9549\" hoverText=\"9549\"/> <set value=\"9968\" hoverText=\"9968\"/> <set value=\"9580\" hoverText=\"9580\"/> <set value=\"11593\" hoverText=\"11593\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"173\" hoverText=\"173\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.8\" hoverText=\"13.8%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"24.9\" hoverText=\"24.9%\"/> <set value=\"10.0\" hoverText=\"10.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; window.fillingChart(); window.onresize(); } </script> </body> </html>
  3. HI~Sumedh 1.Why does not automatically resize?? 2.Why does not automatically redraw?? sample code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]"> <html xmlns="[url="http://www.w3.org/1999/xhtml"]http://www.w3.org/1999/xhtml[/url]"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script src="Utility/FusionCharts/Charts/FusionCharts.js" type="text/javascript"></script> </head> <body> <div> <div style="height: 225px;"> <div id="daily_chart_panel" style=" height: 225px; float: left; background:#E2E8F0;"></div> <div id="grand_chart_panel" style=" height: 225px; float: right; background:#E2E8F0;"></div> </div>[/color][/font] [font="Arial Black"][color="#000000"] <input id="Button1" type="button" value="ReDraw" onclick="return reDraw_onclick()" /> </div> <script type="text/javascript"> window.daily_Chart = null; window.grand_Chart = null;[/color][/font] [font="Arial Black"][color="#000000"] window.dailyXml = null; window.grandXml = null;[/color][/font] [font="Arial Black"][color="#000000"] window.onerror = null;[/color][/font] [font="Arial Black"][color="#000000"] window.onresize = function () { // var _pos = window.getBodyPos(); // var _page_Content_Panel_Width = _pos.clientWidth - 38; // document.getElementById("daily_chart_panel").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; document.getElementById("grand_chart_panel").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px";[/color][/font] [font="Arial Black"][color="#000000"] // window.daily_Chart = FusionCharts("daily_chart_id"); if (window.daily_Chart) { window.daily_Chart.resizeTo("100%", "100%"); //Why does not automatically resize?? } // window.grand_Chart = FusionCharts("grand_chart_id"); if (window.grand_Chart) { window.grand_Chart.resizeTo("100%", "100%"); //Why does not automatically resize?? } } window.onload = function () { window.getXml(); window.fillingChart(); window.onresize(); } function fillingChart() { //daily_Chart window.daily_Chart = FusionCharts("daily_chart_id"); if (!window.daily_Chart) { window.daily_Chart = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Day_Daily.swf", "daily_chart_id", "100%", "100%", "0", "1"); window.daily_Chart.setXMLData(window.dailyXml); window.daily_Chart.render("daily_chart_panel"); } else { window.daily_Chart = FusionCharts("daily_chart_id"); window.daily_Chart.setXMLData(window.dailyXml); //Why does not automatically redraw?? }[/color][/font] [font="Arial Black"][color="#000000"] //grand_Chart window.grand_Chart = FusionCharts("grand_chart_id"); if (!window.grand_Chart) { window.grand_Chart = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Grand_Total.swf", "grand_chart_id", "100%", "100%", "0", "1"); window.grand_Chart.setXMLData(window.grandXml); window.grand_Chart.render("grand_chart_panel"); } else { window.grand_Chart = FusionCharts("grand_chart_id"); window.grand_Chart.setXMLData(window.grandXml); //Why does not automatically redraw?? } } function getXml() { /* var xmlhttp = Utility.XmlHttpRequest.getXmlHttp(); xmlhttp.open("POST", "Item.aspx?r=" + Math.random() + "&I_REPDT=" + _I_REPDT + "&I_WAERS=" + _I_WAERS + "&I_PHQTY=" + _I_PHQTY, false); xmlhttp.send(null); xmldoc = xmlhttp.responseXML;[/color][/font] [font="Arial Black"][color="#000000"] window.dailyXml = window.getChartXml('Daily','Day'); window.grandXml = window.getChartXml('Grand','Mon'); */[/color][/font] [font="Arial Black"][color="#000000"] window.dailyXml = "<chart caption=\"Daily\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"443\" hoverText=\"443\"/> <set value=\"394\" hoverText=\"394\"/> <set value=\"414\" hoverText=\"414\"/> <set value=\"610\" hoverText=\"610\"/> <set value=\"1002\" hoverText=\"1002\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"90\" hoverText=\"90\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"15.9\" hoverText=\"15.9%\"/> <set value=\"14.2\" hoverText=\"14.2%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"21.9\" hoverText=\"21.9%\"/> <set value=\"36.0\" hoverText=\"36.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; window.grandXml = "<chart caption=\"Grand\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"9158\" hoverText=\"9158\"/> <set value=\"9549\" hoverText=\"9549\"/> <set value=\"9968\" hoverText=\"9968\"/> <set value=\"10580\" hoverText=\"10580\"/> <set value=\"11593\" hoverText=\"11593\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"173\" hoverText=\"173\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"15.5\" hoverText=\"15.5%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.8\" hoverText=\"13.8%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; }[/color][/font] [font="Arial Black"][color="#000000"] function getChartXml(caption, zztyp) { var _dateList = getDateList();[/color][/font] [font="Arial Black"][color="#000000"] var _xmlStr = ""; _xmlStr += "<chart caption=\"" + caption + "\" showLegend='0' legendPosition='RIGHT' showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\">"; _xmlStr += " <categories>"; _xmlStr += " <category label=\"" + _dateList[13] + "\"/>"; _xmlStr += " <category label=\"" + _dateList[12] + "\" />"; _xmlStr += " <category label=\"" + _dateList[11] + "\" />"; _xmlStr += " <category label=\"" + _dateList[10] + "\" />"; _xmlStr += " <category label=\"" + _dateList[9] + "\" />"; _xmlStr += " <category label=\"" + _dateList[8] + "\" />"; _xmlStr += " <category label=\"" + _dateList[7] + "\" />"; _xmlStr += " </categories>"; _xmlStr += " <dataset seriesname=\"A\" color=\"F5BA00\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='PER' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\">"; if (xmldoc != null) { node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + window.CLSDT + "' and @CLS01='' and @CLS02='']"); if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <styles>"; _xmlStr += " <definition>"; _xmlStr += " <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" />"; _xmlStr += " <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/>"; _xmlStr += " <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/>"; _xmlStr += " </definition>"; _xmlStr += " <application>"; _xmlStr += " <apply toObject=\"Caption\" styles=\"CaptionStyle\" />"; _xmlStr += " <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" />"; _xmlStr += " </application>"; _xmlStr += " </styles>"; _xmlStr += "</chart>"; return _xmlStr; }[/color][/font] [font="Arial Black"][color="#000000"] function getBodyPos() { if (document.compatMode == "BackCompat") { return { // clientWidth: document.body.clientWidth, clientHeight: document.body.clientHeight, // scrollWidth: document.body.scrollWidth, scrollHeight: document.body.scrollHeight, // clientLeft: document.body.clientLeft, clientTop: document.body.clientTop, // scrollLeft: document.body.scrollLeft, scrollTop: document.body.scrollTop, // Width: Math.max(document.body.clientWidth, document.body.scrollWidth), Height: Math.max(document.body.clientHeight, document.body.scrollHeight) }; } else { return { // clientWidth: document.documentElement.clientWidth, clientHeight: document.documentElement.clientHeight, // scrollWidth: document.documentElement.scrollWidth, scrollHeight: document.documentElement.scrollHeight, // clientLeft: document.documentElement.clientLeft, clientTop: document.documentElement.clientTop, // scrollLeft: document.documentElement.scrollLeft, scrollTop: document.documentElement.scrollTop, // width: Math.max(document.documentElement.clientWidth, document.documentElement.scrollWidth), height: Math.max(document.documentElement.clientHeight, document.documentElement.scrollHeight) }; } } function reDraw_onclick() { //window.getXml();[/color][/font] [font="Arial Black"][color="#000000"] window.dailyXml = "<chart caption=\"Daily_New\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"543\" hoverText=\"543\"/> <set value=\"394\" hoverText=\"394\"/> <set value=\"414\" hoverText=\"414\"/> <set value=\"710\" hoverText=\"710\"/> <set value=\"1002\" hoverText=\"1002\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"90\" hoverText=\"90\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"15.9\" hoverText=\"15.9%\"/> <set value=\"14.2\" hoverText=\"14.2%\"/> <set value=\"14.9\" hoverText=\"14.9%\"/> <set value=\"21.9\" hoverText=\"21.9%\"/> <set value=\"26.0\" hoverText=\"26.0%\"/> <set value=\"10.0\" hoverText=\"10.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>"; window.grandXml = "<chart caption=\"Grand_New\" showLegend=\"0\" legendPosition=\"RIGHT\" showValues=\"0\" sNumberSuffix=\"%\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"10\" chartLeftMargin=\"10\" chartRightMargin=\"10\" captionPadding=\"10\" labelPadding=\"0\" adjustDiv= \"0\" numDivLines=\"3\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"100\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\"> <categories> <category label=\"2.22\"/> <category label=\"2.23\" /> <category label=\"2.24\" /> <category label=\"2.25\" /> <category label=\"2.26\" /> <category label=\"2.27\" /> <category label=\"2.28\" /> </categories> <dataset seriesname=\"A\" color=\"F5BA00\"> <set value=\"8158\" hoverText=\"8158\"/> <set value=\"9549\" hoverText=\"9549\"/> <set value=\"9968\" hoverText=\"9968\"/> <set value=\"9580\" hoverText=\"9580\"/> <set value=\"11593\" hoverText=\"11593\"/> <set value=\"83\" hoverText=\"83\"/> <set value=\"173\" hoverText=\"173\"/> </dataset> <dataset seriesname=\"B\" parentYAxis=\"S\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\"> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> <set value=\"20.5\" hoverText=\"20.5%\"/> </dataset> <dataset seriesname=\"C\" parentYAxis=\"S\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\"> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.7\" hoverText=\"13.7%\"/> <set value=\"13.8\" hoverText=\"13.8%\"/> <set value=\"14.1\" hoverText=\"14.1%\"/> <set value=\"24.9\" hoverText=\"24.9%\"/> <set value=\"10.0\" hoverText=\"10.0%\"/> <set value=\"0.0\" hoverText=\"0.0%\"/> </dataset> <styles> <definition> <style name=\"CanvasXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" /> <style name=\"CanvasYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/> <style name=\"CaptionStyle\" type=\"font\" font=\"Verdana\" size=\"14\" color=\"464547\" bold=\"1\" bgColor=\"F1F4F8\" borderColor=\"D7DBDF\" leftMargin=\"5\" rightMargin=\"5\" letterSpacing=\"2\"/> </definition> <application> <apply toObject=\"Caption\" styles=\"CaptionStyle\" /> <apply toObject=\"Canvas\" styles=\"CanvasXScaleAnim,CanvasYScaleAnim\" /> </application> </styles></chart>";[/color][/font] [font="Arial Black"][color="#000000"] window.fillingChart(); window.onresize(); } </script> </body> </html>
  4. Why do not automatically resize?? window.onresize = function () { var _pos = Utility.getBodyPos(); var _page_Content_Panel_Width = _pos.clientWidth - 38; document.getElementById("li_01_content_day_daily_normal_chart").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; document.getElementById("li_01_content_day_grand_total_chart").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; document.getElementById("li_01_content_day_daily_normal_table").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; document.getElementById("li_01_content_day_grand_total_table").style.width = (_page_Content_Panel_Width * 1.000 / 2) + "px"; // //fillingChart(); var _chartReference_Day_Daily = FusionCharts("day_daily_chart_id"); var _chartReference_Grand_Total = FusionCharts("day_grand_chart_id"); if (_chartReference_Day_Daily) { //_chartReference_Day_Daily.resizeTo("100%", "100%"); // Why do not automatically resize?? _chartReference_Day_Daily.resizeTo((_page_Content_Panel_Width * 1.000 / 2), "100%");// Why do not automatically resize?? } // if (_chartReference_Grand_Total) { //_chartReference_Grand_Total.resizeTo("100%", "100%");// Why do not automatically resize?? _chartReference_Grand_Total.resizeTo((_page_Content_Panel_Width * 1.000 / 2), "100%");// Why do not automatically resize?? } } function fillingChart() { chartDayDailyXml = getChartXml("日日发生额", "DAY"); chartGrandTotalXml = getChartXml("日别累计(当月)", "MON"); var chart_Day_Daily = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Day_Daily.swf", "day_daily_chart_id", "100%", "100%", "0", "1"); chart_Day_Daily.setXMLData(chartDayDailyXml); chart_Day_Daily.render("li_01_content_day_daily_normal_chart"); var chart_Grand_Total = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D_Grand_Total.swf", "day_grand_chart_id", "100%", "100%", "0", "1"); chart_Grand_Total.setXMLData(chartGrandTotalXml); chart_Grand_Total.render("li_01_content_day_grand_total_chart"); }
  5. Error

    Hi, Thanks, Info: Chart loaded and initialized. Initial Width: 690 Initial Height: 225 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.0.4 Chart Type: Multi Series 2D Dual Y Combination Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES YAXISVALUES HGRID DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOTCOLUMN DATAPLOTLINE DATAPLOTAREA ANCHORS TOOLTIP VLINES LEGEND INFO: Chart registered with external script. DOM Id of chart is day_grand_chart_id INFO: XML Data provided using dataXML method. XML Data: <chart caption="日别累计(当月)" showLegend="0" legendPosition="RIGHT" showValues="0" sNumberSuffix="%" decimals="1" setAdaptiveYMin="1" setAdaptiveSYMin="1" lineThickness="1" stack100percent="0" canvasbgangle="0" canvasborderthickness="2" chartleftmargin="15" chartrightmargin="5" outcnvbasefontsize="11" bgcolor="E2E8F0" showcumulativeline="1" linecolor="D3AF1D" showplotborder="1" plotgradientcolor="" plotbordercolor="F5BA00" showcanvasbg="1" showcanvasbase="1" canvasbgcolor="ffffff" canvasbgalpha="90" canvasbasecolor="D3DBCA" showalternatehgridcolor="0" showborder="0" canvasborderalpha="20" divlinealpha="15" showshadow="1" plotfillangle="100" plotfillratio="" plotborderdashed="0" plotborderdashlen="1" anchorradius="3" anchorbgcolor="FFFFFF" anchorborderthickness="3" linethickness="2" canvasBorderThickness="1" canvasBorderColor="74787C" showFCMenuItem="0" chartTopMargin="10" chartBottomMargin="10" chartLeftMargin="10" chartRightMargin="10" captionPadding="10" labelPadding="0" adjustDiv="0" numDivLines="3" PYAxisMinValue="0" PYAxisMaxValue="100" SYAxisMinValue="0" SYAxisMaxValue="40"> <categories> <category label="2.20(火)" /> <category label="2.21(木)" /> <category label="2.22(金)" /> <category label="2.23(土)" /> <category label="2.24(日)" /> <category label="2.25(月)" /> <category label="2.26(水)" /> </categories> <dataset seriesname="金额" color="F5BA00"> <set value="4361" hoverText="4361" /> <set value="4598" hoverText="4598" /> <set value="4859" hoverText="4859" /> <set value="5055" hoverText="5055" /> <set value="5244" hoverText="5244" /> <set value="5471" hoverText="5471" /> <set value="5769" hoverText="5769" /> </dataset> <dataset seriesname="挑战" parentYAxis="S" lineThickness="2" color="5AC724" anchorSides="3" anchorRadius="7" anchorBorderThickness="1" anchorBorderColor="5AC724" anchorBgColor="5AC724"> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> <set value="21.0" hoverText="21.0%" /> </dataset> <dataset seriesname="实绩" parentYAxis="S" lineThickness="2" color="733AE0" anchorSides="8" anchorRadius="5" anchorBorderThickness="1" anchorBorderColor="733AE0" anchorBgColor="733AE0"> <set value="25.0" hoverText="25.0%" /> <set value="25.0" hoverText="25.0%" /> <set value="25.3" hoverText="25.3%" /> <set value="24.4" hoverText="24.4%" /> <set value="23.9" hoverText="23.9%" /> <set value="23.4" hoverText="23.4%" /> <set value="23.8" hoverText="23.8%" /> </dataset> <styles> <definition> <style name="CanvasXScaleAnim" type="ANIMATION" duration="1" start="0" /> <style name="CanvasYScaleAnim" type="ANIMATION" duration="1" start="0" /> <style name="CaptionStyle" type="font" font="Verdana" size="14" color="464547" bold="1" bgColor="F1F4F8" borderColor="D7DBDF" leftMargin="5" rightMargin="5" letterSpacing="2" /> </definition> <application> <apply toObject="Caption" styles="CaptionStyle" /> <apply toObject="Canvas" styles="CanvasXScaleAnim,CanvasYScaleAnim" /> </application> </styles></chart>
  6. var chart_Day_Daily = FusionCharts("day_daily_chart_id"); chart_Day_Daily.setXMLData(chartDayDailyXml);//Why does not automatically redraw??
  7. Error

    Read the attachment first window.onload = function () { var _today = new Date(); document.getElementById("I_REPDT").value = (_today.addDays(-2)).toString("yyyyMMdd"); var _I_REPDT = document.getElementById("I_REPDT").value; var _I_WAERS = document.getElementById("I_WAERS").value; var _I_PHQTY = "1000"; // var xmlhttp = Utility.XmlHttpRequest.getXmlHttp(); xmlhttp.open("POST", "Item.aspx?r=" + Math.random() + "&I_REPDT=" + _I_REPDT + "&I_WAERS=" + _I_WAERS + "&I_PHQTY=" + _I_PHQTY, true); xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { xmldoc = xmlhttp.responseXML; // fillingChart(); // } } } xmlhttp.send(null); } function fillingChart() { chartDayDailyXml = getChartXml("日日发生额", "DAY"); chartGrandTotalXml = getChartXml("日别累计(当月)", "MON"); if (!FusionCharts("_li_01_content_day_daily_normal_chart_id")) { var chart_Day_Daily = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D1.swf", "_li_01_content_day_daily_normal_chart_id", chartWidth, chartHeight, "0", "1"); chart_Day_Daily.setXMLData(chartDayDailyXml); chart_Day_Daily.render("li_01_content_day_daily_normal_chart"); } else { //var chart_Day_Daily = FusionCharts("_li_01_content_day_daily_normal_chart_id"); //chart_Day_Daily.setXMLData(chartDayDailyXml);//为什么不自动重绘?? var chart_Day_Daily = FusionCharts("_li_01_content_day_daily_normal_chart_id"); chart_Day_Daily.dispose(); var chart_Day_Daily = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D1.swf", "_li_01_content_day_daily_normal_chart_id", chartWidth, chartHeight, "0", "1"); chart_Day_Daily.setXMLData(chartDayDailyXml); chart_Day_Daily.render("li_01_content_day_daily_normal_chart"); } // if (!FusionCharts("_li_01_content_day_grand_total_chart_id")) { var chart_Grand_Total = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D1.swf", "_li_01_content_day_grand_total_chart_id", chartWidth, chartHeight, "0", "1"); chart_Grand_Total.setXMLData(chartGrandTotalXml); chart_Grand_Total.render("li_01_content_day_grand_total_chart"); } else { //var chart_Grand_Total = FusionCharts("_li_01_content_day_grand_total_chart_id"); //chart_Grand_Total.setXMLData(chartGrandTotalXml); var chart_Grand_Total = FusionCharts("_li_01_content_day_grand_total_chart_id"); chart_Grand_Total.dispose(); var chart_Grand_Total = new FusionCharts("Utility/FusionCharts/Charts/MSCombiDY2D1.swf", "_li_01_content_day_grand_total_chart_id", chartWidth, chartHeight, "0", "1"); chart_Grand_Total.setXMLData(chartGrandTotalXml); chart_Grand_Total.render("li_01_content_day_grand_total_chart"); } } function getDataList() { var _dateList = []; var _date = document.getElementById("I_REPDT").value; var _regExp = new RegExp("^([0-9]{4})([0-9]{1,2})([0-9]{1,2})$"); var _date_temp = _regExp.exec(_date); if (_date_temp != null) { var _i_year = parseFloat(_date_temp[1]); // 年 var _i_month = parseFloat(_date_temp[2]); // 月 var _i_day = parseFloat(_date_temp[3]); // 日 var _today = new Date(_i_year+"/"+_i_month+"/"+_i_day) _dateList[0] = _today.getMonth()+1 + "." + _today.toString("dd"); _dateList[1] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[2] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[3] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[4] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[5] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[6] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); } else { var _today = new Date(); document.getElementById("I_REPDT").value = (_today.addDays(-2)).toString("yyyyMMdd"); _today = new Date(); _dateList[0] = _today.getMonth() + 1 + "." + _today.toString("dd"); _dateList[1] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[2] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[3] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[4] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[5] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); _dateList[6] = _today.addDays(-1).getMonth() + 1 + "." + _today.toString("dd"); } return _dateList; } function getChartXml(caption,zztyp) { var _today = new Date(); var _dateList = getDataList(); var CLSDT = window.clsdt; var _xmlStr = ""; _xmlStr += "<chart caption=\"" + caption + "\" showValues=\"0\" sNumberSuffix=\"%\" baseFont='Arial' baseFontSize ='34' baseFontColor=\"464547\" decimals=\"1\" setAdaptiveYMin=\"1\" setAdaptiveSYMin=\"1\" lineThickness=\"1\" stack100percent=\"0\" canvasbgangle=\"0\" canvasborderthickness=\"2\" chartleftmargin=\"15\" chartrightmargin=\"5\" basefontsize=\"10\" outcnvbasefontsize=\"11\" bgcolor=\"E2E8F0\" showcumulativeline=\"1\" linecolor=\"D3AF1D\" showplotborder=\"1\" plotgradientcolor=\"\" plotbordercolor=\"F5BA00\" showcanvasbg=\"1\" showcanvasbase=\"1\" canvasbgcolor=\"ffffff\" canvasbgalpha=\"90\" canvasbasecolor=\"D3DBCA\" showalternatehgridcolor=\"0\" showborder=\"0\" canvasborderalpha=\"20\" divlinealpha=\"15\" showshadow=\"1\" plotfillangle=\"100\" plotfillratio=\"\" plotborderdashed=\"0\" plotborderdashlen=\"1\" anchorradius=\"3\" anchorbgcolor=\"FFFFFF\" anchorborderthickness=\"3\" linethickness=\"2\" canvasBorderThickness=\"1\" canvasBorderColor=\"74787C\" numDivLines=\"2\" showFCMenuItem=\"0\" chartTopMargin=\"10\" chartBottomMargin=\"0\" captionPadding=\"10\" labelPadding=\"0\" PYAxisMinValue=\"0\" PYAxisMaxValue=\"50\" SYAxisMinValue=\"0\" SYAxisMaxValue=\"40\">"; _xmlStr += " <categories>"; _xmlStr += " <category label=\"" + _dateList[6] + "\"/>"; _xmlStr += " <category label=\"" + _dateList[5] + "\" />"; _xmlStr += " <category label=\"" + _dateList[4] + "\" />"; _xmlStr += " <category label=\"" + _dateList[3] + "\" />"; _xmlStr += " <category label=\"" + _dateList[2] + "\" />"; _xmlStr += " <category label=\"" + _dateList[1] + "\" />"; _xmlStr += " <category label=\"" + _dateList[0] + "\" />"; _xmlStr += " </categories>"; _xmlStr += " <dataset seriesname=\"\" color=\"F5BA00\">"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + CLSDT + "' and @CLS01='' and @CLS02='']"); //金额 if (node != null) { _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT01")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT02")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT03")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT04")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT05")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT06")).toFixed(0) + "\"/>"; _xmlStr += " <set value=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\" hoverText=\"" + parseFloat(node.getAttribute("AMT07")).toFixed(0) + "\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset parentYAxis=\"S\" seriesname=\"\" lineThickness=\"2\" color=\"5AC724\" anchorSides=\"3\" anchorRadius=\"7\" anchorBorderThickness=\"1\" anchorBorderColor=\"5AC724\" anchorBgColor=\"5AC724\">"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + CLSDT + "' and @CLS01='PER' and @CLS02='']"); //挑战 if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <dataset parentYAxis=\"S\" seriesname=\"\" lineThickness=\"2\" color=\"733AE0\" anchorSides=\"8\" anchorRadius=\"5\" anchorBorderThickness=\"1\" anchorBorderColor=\"733AE0\" anchorBgColor=\"733AE0\">"; node = xmldoc.selectSingleNode("//rs:data/z:row[@ZZTYP='" + zztyp + "' and @CLSDT='" + CLSDT + "' and @CLS01='' and @CLS02='']"); //实绩 if (node != null) { _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER01")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER01")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER01")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER02")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER02")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER02")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER03")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER03")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER03")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER04")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER04")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER04")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER05")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER05")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER05")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER06")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER06")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER06")).toFixed(1) + "%\"/>"; _xmlStr += " <set value=\"" + (parseFloat(parseFloat(node.getAttribute("PER07")).toFixed(1)) > 40 ? 40 : parseFloat(node.getAttribute("PER07")).toFixed(1)) + "\" hoverText=\"" + parseFloat(node.getAttribute("PER07")).toFixed(1) + "%\"/>"; } else { _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; _xmlStr += " <set value=\"0\" hoverText=\"0.0%\"/>"; } _xmlStr += " </dataset>"; _xmlStr += " <styles>"; _xmlStr += " <definition>"; _xmlStr += " <style name=\"MyXScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\" />"; //param=\"_xscale\" _xmlStr += " <style name=\"MyYScaleAnim\" type=\"ANIMATION\" duration=\"1\" start=\"0\"/>"; // param=\"_yscale\" _xmlStr += " </definition>"; _xmlStr += " <application>"; _xmlStr += " <apply toObject=\"Canvas\" styles=\"MyXScaleAnim,MyYScaleAnim\" />"; _xmlStr += " </application>"; _xmlStr += " </styles>"; _xmlStr += "</chart>"; return _xmlStr; }
  8. Hi~ FusionCharts_XT_Evaluation:-MSCombiDY2D.swf(FusionCharts_XT_Evaluation\FusionCharts_XT_Evaluation\Gallery\Combi2DDY\CombiDY2D1.html) how to set up a shadow of Column
  9. Hi, fusioncharts free Is it possible to set the charts width to a percent rather than a pixel width, and then also update if the user resizes their browser? Thanks
  10. 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"); }