-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathRangeArea.cs
68 lines (61 loc) · 2.12 KB
/
RangeArea.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Com.Syncfusion.Charts;
using Android.Graphics;
using Com.Syncfusion.Charts.Enums;
namespace SampleBrowser
{
internal class RangeArea : SamplePage
{
SfChart chart;
public override View GetSampleContent(Context context)
{
chart = new SfChart(context);
chart.Legend.Visibility = Visibility.Visible;
chart.Legend.DockPosition = ChartDock.Bottom;
chart.Legend.ToggleSeriesVisibility = true;
chart.Legend.IconHeight = 14;
chart.Legend.IconWidth = 14;
chart.Title.Text = "World Gold Price";
chart.Title.TextSize = 15;
chart.ColorModel.ColorPalette = ChartColorPalette.Natural;
chart.SetBackgroundColor(Color.White);
CategoryAxis categoryaxis = new CategoryAxis();
categoryaxis.Title.Text = "Month";
chart.PrimaryAxis = categoryaxis;
NumericalAxis numericalaxis = new NumericalAxis();
numericalaxis.Minimum = 5;
numericalaxis.Maximum = 55;
numericalaxis.Interval = 5;
numericalaxis.Title.Text = "Gold Price";
chart.SecondaryAxis = numericalaxis;
RangeAreaSeries series = new RangeAreaSeries();
series.ItemsSource = MainPage.GetRangeArea1();
series.XBindingPath = "XValue";
series.High = "High";
series.Low = "Low";
series.Label = "India";
series.TooltipEnabled = true;
series.EnableAnimation = true;
chart.Series.Add(series);
RangeAreaSeries series1 = new RangeAreaSeries();
series1.ItemsSource = MainPage.GetRangeArea();
series1.XBindingPath = "XValue";
series1.High = "High";
series1.Low = "Low";
series1.Label = "Germany";
series1.TooltipEnabled = true;
series1.EnableAnimation = true;
chart.Series.Add(series1);
return chart;
}
}
}