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"
);
I can't attach any file her, please give me your email.
Thank you Joe
Ok, thank you Joe
After reviewing your code I believe I may have an idea of the issue you are having. At no point in your code do you rebind your data source to the Doughnut Chart. Although the data is changing, the Doughnut Chart will keep its binding to its original static form until you tell it to change. To rebind the data to a series, you can call the updateSeries method (as seen here: https://www.igniteui.com/help/api/2014.1/ui.igdoughnutchart#methods:updateSeries ) whenever you want your data to update. You can attach this to an event handler which could cause it to happen automatically, or manually if you prefer. Please let me know if you have any further questions on the matter.
Hi Joe,
I changed the code and here is what I have now:
if(t==0) { $("#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>" } ] }); } else //I added this { $("#chart").igDoughnutChart("updateSeries",
{name: "Cycle", labelMemberPath: "Label", valueMemberPath: cycle}, {name: "LOSvalue",labelMemberPath: "Label", valueMemberPath: loses} ); }
but now only the values for the first marker appear on every doughnut chart.
Can you tell me please if I wrote the updateSeries method well?
Thank you very much.
Regards
I am assisting with this issue as Joe is no longer working with us.
I do not have access to Joe's emails and the sample you sent him previously. Would you please email the sample to support@infragistics.com and please include the case number, CAS-141287-P6G3G3, in the subject of the email.
Looking at the code you've provided in this forum thread, since I do not yet have a full understanding of your sample, I would not think that setting the valueMemberPath to cycle and loses in your updateSeries calls are correct. The valueMemberPath should be the member of your data that holds the value for the series. Much like in your series objects where you create the igDoughnutChart, I would expect these to be Cycle and LOSvalue, respectively. I would also call updateSeries separately for each series like so:
$("#chart").igDoughnutChart("updateSeries", {name: "Cycle", labelMemberPath: "Label", valueMemberPath: "Cycle"} ); $("#chart").igDoughnutChart("updateSeries", {name: "LOSvalue",labelMemberPath: "Label", valueMemberPath: "LOSvalue"} );
If you can provide me with your sample application that you provided to Joe, I will have a better understanding of the issue here.
Looking forward to hearing from you.
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.