Quick Links

SfChart - i'm having problem when it's shown

I have one table that represents items sold in the store(ItensLib). And other table that represents the total sell(Liberacao). Well, i need to represent in the chart the Total and profit margin. So, in the Liberacao i have total sold, but is not possible to calculate the profit margin. In the table ItensLib, i can get sold total and profit margin, but i have a problem. If a sell there's 3 items, in the chart i'll have 3 slice representing the same profit margin. I need a chart(pieseries) that show a total and one slice(profit margin). The problem is in the ItensLib Table. In the table Liberacao there no is how to calculate the profit margin, only sold total. Someone can help me?

@ChaseFlorell, i opened an incident there. But, i'm seeking for solutions in various place, like here, stackoverflow and more. I need to show for my client. Is lack knowledge for me. But i already started them(syncfusion).

@NMackay, in this moment i'm reading and trying to do. As i have told before, i'm not getting to work. Is missing something that i don't know. It's seems that the chart doesn't recognise two values. But, i'm with the documentation opened and reading.

@DirkWilhelm said:
This is just guessing on my part here, but looking at the documentation i guess you need to set the ItemsSource to a list of values. At the moment, you are adding just one value, not two.

Also, doesn't SyncFusion have an example app with sourceode? If yes, dig through that to see how they are adding data.

Hi, @DirkWilhelm, you can be right. In the site of syncfusion, there is an example that creates an array. In my case i get this values by rest service and i guess that this is being my difficult. I'm gonna create a class like example by site and populate the properties from this class by rest service. I'm trying.