mismatch data binding when multiple chart

0 Answers 82 Views
Chart
Davide
Top achievements
Rank 1
Iron
Davide asked on 15 Sep 2021, 03:55 PM

Hello,

I created an interface using library 2020.2.624.1 in Xamarin Forms project in which there are two different chart:

- a pie chart, where are showed all my data collection
- a stacked bar chart, in which are showed different data derived from the previous dataset.

In my ViewModel I calculate data for the pie chart and then data for the bar chart.  In my XAML View, each chart has different "ItemSource".

What happened is that, at the end of calculation, the same data showed (correctly) in the stacked bar chart are also showed (incorrectly) in the pie chart (see attached image).

On the other hand, when I exclude (comment) calculation for the stacked bar chart, the correct dataset is showed on the pie chart.

I am not able to find any solution.

Thanks in advance,

Davide

Yana
Telerik team
commented on 17 Sep 2021, 06:14 AM

Hi Davide,

I would need more details on the concrete scenario, so I can research what exactly went wrong. Could you post at least the ViewModel with the calculations and the Charts definitions? 

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Davide
Top achievements
Rank 1
Iron
Share this question
or