Hallo,
I try to use your multiring doughnut chart control and I want the values in the slices to change dynamically. But they always take the same values. Even though I put alerts for all the values from the list and they change dynamically, but in the var data=... they remain the same.
Can you help me please why the values for the slices remain the same when defining the
var data = [ {
Thanks
I have posted this on another forum as well
http://forums.asp.net/p/1999450/5744217.aspx?p=True&t=635421400507082503&pagenum=1
so you can see the example.
Hello Natasha,
After reading your post, I believe I may see why the data is not being rendered in your Doughnut Chart. After you change your data, try making a call to
$(
"#yourSelector"
).igDoughnutChart(
"flush"
);
Hi Joe,
Here is my code for that
$("#chart").igDoughnutChart(
{ width: "100%", height: "550px", innerExtent: 20, series: [ { name: "Cycle",//inner ring labelMemberPath: "Label", valueMemberPath: "Cycle", dataSource: dataSourceForCycles, labelsPosition: "center", showTooltip: true, tooltipTemplate: "CycleToolTipTemplate" }, { name: "LOSvalue", labelMemberPath: "Label", valueMemberPath: "LOSvalue", dataSource: dataSourceForLosValues, labelsPosition: "outsideEnd", showTooltip: true,
tooltipTemplate: "<div class='ui-chart-tooltip'><div class='bold'>${item.Label}</div><div>Los Value: <label class='bold'>${item.LOSvalue}</label></div></div>"
}
] });
And this is the data:
var dataSourceForCycles = [ { "Cycle":Number(cycle[0]),"Label":"c1" }, { "Cycle": Number(cycle[1]),"Label": "c2" }, { "Cycle": Number(cycle[2]),"Label": "c3" }, { "Cycle":Number(cycle[3]),"Label": "c4" } ]; var dataSourceForLosValues = [ { "LOSvalue": Number(loses[0]), "Label":"losA"}, { "LOSvalue": Number(loses[1]), "Label": "losB" }, { "LOSvalue": Number(loses[2]), "Label": "losC" }, { "LOSvalue": Number(loses[3]), "Label": "losD" }, { "LOSvalue": Number(loses[4]), "Label": "losE" }, { "LOSvalue": Number(loses[5]), "Label": "losF" } ]
where the values for cycle and loses come from
cycle= markerData[i].cycles1.split(","); loses = markerData[i].Los1.split(",");
upper in the code.
Could you please help me (explain me) what is wrong with this code?
May I please send you my web form code as attachment somehow so maybe you can get a better insight of what I am trying to do?
Thank you in advance for the help.
After looking at your code, I believe the issue lies in informing the Doughnut Chart that the data has changed. Although your data has changed, the Doughnut Chart is rendered statically on the data you first fed it. To get your Doughnut Chart to refresh, you can try using the "flush" method I mentioned previously whenever you would like the Doughnut Chart to update. The flush method causes all of the series that have pending changes e.g. by changed property values to be rendered immediately. If this does not work, you can update the series of the grid and include the updated data source you want in the definition. You can see more on this here: https://www.igniteui.com/help/api/2014.1/ui.igdoughnutchart#options:series . Please let me know if this works for you.
Also, if you would like to provide me with your full project, that may be very helpful in finding a solution for you as soon as possible. After you try what I have suggested above, I will be more than happy to work with your full project. Please do not hesitate to contact me with further questions.
I have sent you my code by email. Can you please confirm me if you have received it?Thanks.
Unfortunately, I did not receive the code you sent by email. Please try resending so that I can try to get you a solution as soon as possible. Thank you.
I have only this email no-reply@infragistics.com and I used it.
Hi,
I seem to be encountering this issue in version 2014.2 and 2015.1. Could you please let me know if this has been fixed and in which version?
I have created a support case for you with an ID of CAS-141287-P6G3G3. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 179364. The error being received when calling updateSeries was not present in previous versions and now a regression has occurred that our developers will investigate.
I will leave this case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there. Then, you may select the "Development Issues" tab to view details of this development issue.
Please let me know if you have any questions.
Hi Michael,
Just shortly, the program is about displaying some parameters which are calculated in another form in infoboxes. First the info is displayed in text infoboxes and on click on each of the ext infoboxes another infobox with chart should appear. And all this to happen for 8 intersections (markers). Each intersection has geodata and name of the intersection besides the parameters that are sent like a list from another form. The geodata and the names of teh intersections are sent like lists from the other form as well.
Tell me if I can help you more please.
Thank you
OK. Thank you very much Michael.
Regards till Wednesday
Hi Natasha,
I have not yet been able to determine the cause of the issue. I am discussing this with my supervisor for further guidance on this issue.
I will have another update for you by Wednesday.