Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3806
XamDataChart display of Stacked bars in MVVM
posted
I am using MVVM and displaying the data in the XamDataChart v13.1. Can you help me what series type or data should I create to display the chart. 
I thought of below sample data but not sure what should be binding to auto generate the stacked series.
public class SampleData : ObservableCollection<SingleBar>
    {
        public SampleData()
        {
            this.Add(new SingleBar { BarLabel = "America", Values = new List<double> { 102030 } });
            this.Add(new SingleBar { BarLabel = "India", Values = new List<double> { 51576 } });
        }
    }
 
    public class SingleBar
    {
        public string BarLabel { getset; }
        public List<double> Values { getset; }
    }
Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Gajender,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

Children