Exemple #1
0
        public void LoadPlot()
        {
            var pairs = from row in DTable.AsEnumerable()
                        select new KeyValuePair <string, double>((string)row[1], double.Parse(row[3].ToString()));

            BarPlot.ItemsSource = pairs.ToArray();
            BarPlot.LegendItems.Clear();
            BarPlot.LegendItems.Add("% of People");
        }