whenever we are using jqueryui & dialogue that time only we are facing position issues ,
we are using ruby on rails and my json format is
var Advanced_Sector = [{"label":"","value":3},{"label":"Basic Materials","value":28},{"label":"Consumer Goods","value":86},{"label":"Consumer Services","value":108},{"label":"Financials","value":23},{"label":"Health Care","value":97},{"label":"Industrials","value":234},{"label":"Oil & Gas","value":18},{"label":"Technology","value":219},{"label":"Telecommunications","value":13},{"label":"Utilities","value":5}]
if(chart_type=="2D Doughnut"){
FusionCharts.setCurrentRenderer('javascript');
var myChart = new FusionCharts( "Doughnut2D.swf","myChartId1", "770", "500", "0", "0");
myChart.setJSONData({
"chart" : {
"logoPosition" : "BR",
"rotateValues" : "0",
"useRoundEdges" : "1",
"formatNumber" : "0",
"formatNumberScale" : "0",
"valuePadding" : "10",
"exportEnabled" : "1",
"exportAtClient" : "1",
"exportHandler" : "fcExporter1",
"caption" : ChartTitle ,
"xAxisName" : "XAxis",
"yAxisName" : "YAxis",
"numberPrefix" : "",
"showvalues": "0",
"showlabels": "1",
"showlegend": "1",
"exportFormats": 'PNG|JPG|PDF|SVG',
"exportaction": 'download',
"exporttargetwindow": '_self',
"html5ExportHandler": "http://export.api3.fusioncharts.com/"
},
"data" : Advanced_Sector
});
myChart.render("chart_ctn");
}
else if(chart_type=="3D Doughnut"){
FusionCharts.setCurrentRenderer('javascript');
var myChart = new FusionCharts("Doughnut3D.swf","myChartId2", "770", "500", "0", "0");
myChart.setJSONData({
"chart" : {
"logoPosition" : "BR",
"rotateValues" : "0",
"useRoundEdges" : "1",
"formatNumber" : "0",
"formatNumberScale" : "0",
"valuePadding" : "10",
"exportEnabled" : "1",
// "paletteColors" : "0372AB,FF0000,FF5904",
"exportAtClient" : "1",
"exportHandler" : "fcExporter1",
"caption" : "ChartTitle",
"xAxisName" : "XAxis",
"yAxisName" : "YAxis",
"numberPrefix" : "",
"showvalues": "0",
"showlabels": "1",
"showlegend": "1",
"exportFormats": 'PNG|JPG|PDF|SVG',
"exportaction": 'download',
"exporttargetwindow": '_self',
"html5ExportHandler": "http://export.api3.fusioncharts.com/"
},
"data" : Advanced_Sector
});
myChart.render("chart_ctn");
}
}
Thanks,
kanna