jQWidgets Forums
jQuery UI Widgets › Forums › Chart › Pie not shown in IE7
Tagged: chart, jquery chart
This topic contains 9 replies, has 2 voices, and was last updated by simcon94 12 years ago.
-
AuthorPie not shown in IE7 Posts
-
Hi there,
i open a new window when i click into the pie:
groups[0].click = function (e) {
var meterTypeId = dataAdapter.records[e.elementIndex][“MeterTypeId”].toString();
var url = sk.appHelper.getAppDomainAppVirtualPath() + “bla/bla”;
window.open(url);
};It works.
When IE open the new side, it gives an Error.
Here is my Code:var source = { datatype: "json" , datafields: [] , url: sk.appHelper.getAppDomainAppVirtualPath() + "bla/bla" }; var dataAdapter = new $.jqx.dataAdapter(source, { async: false , autoBind: true , loadError: function (xhr, status, error) { alert('Error loading "' + source.url + '" : ' + error); } }); var seriesColumns = new Array(); for (var propName in dataAdapter.records[0]) { if (propName === "Value") { seriesColumns.push({ dataField: propName, displayText: 'Meter', labelRadius: 100, initialAngle: 15, formatSettings: { sufix: '%', decimalPlaces: 1 } }); } } var settingsPie = { title: "My Identities", //description: "Identities I Have Been Using", enableAnimations: false, showLegend: true, legendLayout: { left: 10, top: 15, width: 300, height: 200, flow: 'vertical' }, padding: { left: 5, top: 5, right: 5, bottom: 5 }, titlePadding: { left: 0, top: 0, right: 0, bottom: 10 }, source: dataAdapter, colorScheme: 'scheme03', seriesGroups: [ { type: 'pie' , showLabels: true , series: seriesColumns } ] };$('#jqxPie').jqxChart(settingsPie);<div id="jqxPie" style="width:100%; height:100px; float: left;"></div>
IE 7 Error Message:
Sign: 75547
Error: FailedHi,
Could you please post a sample which will enable us to test your scenario?
I am asking about that because the posted code uses data from remote source so when we test it locally, we will have an empty Chart. In addition, defining the “datafields” array in the source object is required, but in your code, the datafields array is empty.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/I have the same code on another side. It works there.
Only when i open a new window to sgow this pie, it doesn#t work.Hi,
Open a new Browser Window, or open it in jqxWindow or another window popup? If you use jqxWindow, make sure that you initialize the widgets in the “initContent” callback of jqxWindow.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/i open a new Browser Window or Tab.
I tested with the code from:
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxchart/index.htm#demos/jqxchart/javascript_chart_pie_series.htmBut its the same effect. My IE7 always gives the error….
Hi,
Unfortunately, we are unable to reproduce that. The posted demo by you works with IE7 on our side.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/When you load the Pie in an new Window?
with:
window.open(url);
???Hi,
It does not matter whether you open it through the API if the URL is correct or via a Click.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/thats strange….
-
AuthorPosts
You must be logged in to reply to this topic.