public void init(DashBoardGraphViewModel vm,AnioMesViewModel AnioMes,DashBoardTableViewModel table)
 {
     DashBoardGraph = vm;
     AnioMesView = AnioMes;
     DashBoradTable=table;
     c = new LoadGraphClass();
     DashBoardGraph.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(DashBoardGraph_PropertyChanged);
     lblAnio.Content = AnioMesView.SelectedAnio.Anio;
     lblMes.Content = AnioMesView.SelectedMes.MesName;
     try
     {
         lblDireccion.Text =DashBoradTable.SelectedItem.Organigrama.JerarquiaName;
     }
     catch (Exception)
     {
         lblDireccion.Text = "OCAVM";
     }
 }
        public ObservableCollection<DataSeries> GetSerie(DashBoardGraphViewModel dash)
        {
            ObservableCollection<DataSeries> DatosSeries = new ObservableCollection<DataSeries>();
            try
            {
                DataSeries Series = new DataSeries();
                foreach (var item in dash.Datos)
                {
                    Series = new DataSeries();
                    Series.Name = item.SerieName;
                    Series.RenderAs = RenderAs.Line;
                    foreach (var i in item.SerieValues)
                    {
                        DataPoint p = new DataPoint();
                        p.YValue = i.Value;
                        p.AxisXLabel = i.Label;
                        Series.DataPoints.Add(p);
                    }
                    DatosSeries.Add(Series);
                }
            }
            catch (Exception)
            {

            }
            return DatosSeries;
        }