mimsc Report post Posted November 8, 2012 (edited) Not sure why Im getting this error...its getting data... I just noticed "categories" was not in here.......here is the json: var planned = []; var obligated = []; var expended = []; var unbilled = []; <c:forEach var="bean" items="${beans}" varStatus="loopCount"> planned.push({ "value": <tld-msst:fc-value var="${bean.plannedCost}"/> }); obligated.push({ "value": <tld-msst:fc-value var="${bean.obligatedCost}"/> }); expended.push({ "value": <tld-msst:fc-value var="${bean.expendedCost}"/> }); unbilled.push({ "value": <tld-msst:fc-value var="${bean.unbilledCost}"/> }); </c:forEach> var sors = { category: [] }; <c:forEach var="bean" items="${beans}"> sors.category.push({"label": "${bean.sor.shortName}"}); </c:forEach> [ myChart.setJSONData( { "chart": { "caption": "Funding", "subcaption": filterCriteria, "exportenabled":"1", "exportHandler":"fcExporter1", "exportAtClient":"1", "bgcolor": "eeeecc", "showBorder": "0", "canvasBgColor": "322B2B", "toolTipBgColor": "322B2B", "baseFontColor": "ffffff", "legendBgColor": "eeeecc", "legendBorderColor": "eeeecc", "outcnvbasefontcolor": "000000", "formatnumberscale": "0", "xaxisname": "SOR", "yaxisname": "Dollars", "showlabels": "1", "showvalues": "0", "plotfillalpha": "100", "numvdivlines": "10", "showalternatevgridcolor": "1", "alternatevgridcolor": "e1f5ff", "divlinecolor": "cccccc", "canvasborderthickness": "1", "showplotborder": "0", "zgapplot": "0", "zdepth": "1", "exetime": "1.2", "dynamicshading": "0", "yzwalldepth": "5", "zxwalldepth": "5", "xywalldepth": "5", "startangx": "0", "startangy": "0", "endangx": "5", "endangy": "-25", "interactiveLegend": "0", "bgAlpha": "100", "numberprefix":"$" }, "categories": [sors], "dataset": [{ "seriesname": "Total Planned Cost", "color": "2D2DD6,FFFFFF,666666", "plotbordercolor": "688DE5", "renderas": "column", "data": planned }, { "seriesname": "Obligated", "color": "ff3333,FFFFFF,666666", "plotbordercolor": "E16774", "renderas": "column", "data": obligated }, { "seriesname": "Expended", "color": "33FF33,FFFFFF,666666", "plotbordercolor": "E16774", "renderas": "column", "data": expended }, { "seriesname": "Unbilled", "color": "6600cc,FFFFFF,666666", "plotbordercolor": "E16774", "renderas": "column", "data": unbilled }] , "styles": { "definition": [{ "name": "MyFirstFontStyle", "type": "font", "font": "tahoma", "size": "25", "color": "000000", "bold": "1" },{ "name": "MyFirstCapFontStyle", "type": "font", "font": "tahoma", "size": "10", "color": "000000", "bold": "0", "ishtml": "1" }], "application": [{ "toobject": "caption", "styles": "MyFirstFontStyle" },{ "toobject": "subcaption", "styles": "MyFirstCapFontStyle" }] } }); Info: Chart loaded and initialized. Initial Width: 450 Initial Height: 450 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Chart Type: Multi Series 3D Column Chart Version: 3.2.2(XT) Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES YAXISVALUES DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT TOOLTIP VLINES LEGEND VLINELABELS INFO: Chart registered with external script. DOM Id of chart is myChartId INFO: XML Data provided using dataXML method. XML Data: <chart caption="Funding" subcaption="PERFORMANCE<br>SORs: [MCA, MCB], Fiscal Year:2012, Workload Year:2012<br>SAC: 2 3<br>Schedule Type: Regular Lot Batch" exportenabled="1" exporthandler="fcExporter1" exportatclient="1" bgcolor="eeeecc" showborder="0" canvasbgcolor="322B2B" tooltipbgcolor="322B2B" basefontcolor="ffffff" legendbgcolor="eeeecc" legendbordercolor="eeeecc" outcnvbasefontcolor="000000" formatnumberscale="0" xaxisname="SOR" yaxisname="Dollars" showlabels="1" showvalues="0" plotfillalpha="100" numvdivlines="10" showalternatevgridcolor="1" alternatevgridcolor="e1f5ff" divlinecolor="cccccc" canvasborderthickness="1" showplotborder="0" zgapplot="0" zdepth="1" exetime="1.2" dynamicshading="0" yzwalldepth="5" zxwalldepth="5" xywalldepth="5" startangx="0" startangy="0" endangx="5" endangy="-25" interactivelegend="0" bgalpha="100" numberprefix="$">[MCA, MCB]<dataset seriesname="Total Planned Cost" color="2D2DD6,FFFFFF,666666" plotbordercolor="688DE5" renderas="column"><set value="2.6840504593E8" /><set value="1.4286084902E8" /></dataset><dataset seriesname="Obligated" color="ff3333,FFFFFF,666666" plotbordercolor="E16774" renderas="column"><set value="2.6561633453E8" /><set value="1.6117566755E8" /></dataset><dataset seriesname="Expended" color="33FF33,FFFFFF,666666" plotbordercolor="E16774" renderas="column"><set value="1.5678996039E8" /><set value="1.0704943953E8" /></dataset><dataset seriesname="Unbilled" color="6600cc,FFFFFF,666666" plotbordercolor="E16774" renderas="column"><set value="1.0882637414E8" /><set value="5.408824309E7" /></dataset><styles><definition><style name="MyFirstFontStyle" type="font" font="tahoma" size="25" color="000000" bold="1" /><style name="MyFirstCapFontStyle" type="font" font="tahoma" size="10" color="000000" bold="0" ishtml="1" /></definition><application><apply toobject="caption" styles="MyFirstFontStyle" /><apply toobject="subcaption" styles="MyFirstCapFontStyle" /></application></styles></chart> No Data to Display: No data was found in the XML data document provided. Possible cases can be: There isn't any data generated by your system. If your system generates data based on parameters passed to it using dataURL, please make sure dataURL is URL Encoded. You might be using a Single Series Chart .swf file instead of Multi-series .swf file and providing multi-series data or vice-versa. Edited November 8, 2012 by mimsc Share this post Link to post Share on other sites
mimsc Report post Posted November 8, 2012 ok for some reason...all I did was change the name of the variable I was passing to "categories" and it worked???? Share this post Link to post Share on other sites
Guest Bindhu Report post Posted November 9, 2012 Hi, So it is working now? Glad to know that you have managed to resolve the issue Share this post Link to post Share on other sites