Example #1
0
        private Series GetData()
        {
            var accentColor = AppResources.GetColor(Resource.Color.app_accent_color);
            var areaSeries1 = new AreaSeries();

            {
            };
            areaSeries1.Color = OxyColor.FromArgb(accentColor.A, accentColor.R, accentColor.G, accentColor.B);

            areaSeries1.DataFieldX = "Time";
            areaSeries1.DataFieldY = "Value";


            areaSeries1.DataFieldX2 = "Time";
            areaSeries1.DataFieldY2 = "Zero";
            areaSeries1.Color2      = OxyColors.Transparent;


            areaSeries1.ItemsSource = ChartValues;
            return(areaSeries1);
        }