public override View GetSampleContent(Context context) { chart = new SfChart(context);; chart.SetBackgroundColor(Color.White); chart.PrimaryAxis = new CategoryAxis() { EdgeLabelsDrawingMode = EdgeLabelsDrawingMode.Shift }; chart.SecondaryAxis = new NumericalAxis { Minimum = 0, Maximum = 170 }; var stackingAreaSeries = new StackingAreaSeries { StrokeWidth = 5, Alpha = 0.5f, Color = MainPage.ConvertHexaToColor(0x90FEBE17), StrokeColor = MainPage.ConvertHexaToColor(0xFFFEBE17), DataSource = MainPage.GetData1(), }; chart.Series.Add(stackingAreaSeries); stackingAreaSeries = new StackingAreaSeries { StrokeWidth = 5, Alpha = 0.5f, Color = MainPage.ConvertHexaToColor(0x994F4838), StrokeColor = MainPage.ConvertHexaToColor(0xFF4F4838), }; chart.Series.Add(stackingAreaSeries); stackingAreaSeries = new StackingAreaSeries { StrokeWidth = 5, Alpha = 0.5f, Color = MainPage.ConvertHexaToColor(0x99C15146), StrokeColor = MainPage.ConvertHexaToColor(0xFFC15146), }; chart.Series.Add(stackingAreaSeries); UpdateData(); return(chart); }
public override View GetSampleContent(Context context) { var chart = new SfChart(context);; chart.SetBackgroundColor(Color.White); chart.PrimaryAxis = new CategoryAxis { PlotOffset = 20 }; chart.SecondaryAxis = new NumericalAxis(); var areaSeries = new AreaSeries { StrokeWidth = 5, Color = MainPage.ConvertHexaToColor(0x90FEBE17), Alpha = 0.5f, StrokeColor = MainPage.ConvertHexaToColor(0xFFFEBE17), DataSource = MainPage.GetAreaData(), }; chart.Series.Add(areaSeries); return(chart); }
public override View GetSampleContent(Context context) { var chart = new SfChart(context);; chart.SetBackgroundColor(Color.White); chart.PrimaryAxis = new CategoryAxis() { EdgeLabelsDrawingMode = EdgeLabelsDrawingMode.Shift }; chart.SecondaryAxis = new NumericalAxis(); var areaSeries = new SplineAreaSeries { StrokeWidth = 5, Color = MainPage.ConvertHexaToColor(0x90FEBE17), Alpha = 0.5f, StrokeColor = MainPage.ConvertHexaToColor(0xFFFEBE17), DataSource = MainPage.GetData2(), }; chart.Series.Add(areaSeries); return(chart); }