Example #1
0
 public PercentCircularChartVM(SeriesVM serie)
 {
     BackgroundColor = App.Current.Style.ChartBase;
     PercentSerie    = serie;
     Series.ViewModels.AddRange(new List <SeriesVM> {
         PercentSerie
     });
 }
Example #2
0
 public TwoBarChartVM(SeriesVM leftSerie, SeriesVM rightSerie = null, int total = 0)
 {
     LeftSerie         = leftSerie;
     isRightEmptySerie = rightSerie == null;
     RightSerie        = rightSerie ?? new SeriesVM("empty", App.Current.Style.ThemeBase);
     Series.ViewModels.AddRange(new List <SeriesVM> {
         LeftSerie, RightSerie
     });
     leftTextStyle = rightTextStyle = TwoBarTextStyle.Hidden;
     TotalElements = ReferenceNumber = total;
     UpdateDisplayTexts(TwoBarSide.Left);
     UpdateDisplayTexts(TwoBarSide.Right);
 }