Exemple #1
0
        private void fillChart()
        {
            int nbEtds = ManagerDB.getNbEtds();
            ObservableCollection <Plotinfo> plotinfos = new ObservableCollection <Plotinfo>();

            foreach (Filiere f in cl.Filieres)
            {
                string x = f.Nom_filiere;
                int    y = ManagerDB.nbEtdParFil(f.Id_filiere);
                double z = Convert.ToDouble(y) / nbEtds;
                plotinfos.Add(new Plotinfo(x, y, z * 100));
            }

            barSeries.ItemsSource = plotinfos;
        }