Xamarin图表开发基础教程(8)OxyPlot框架 【示例OxyPlotFormsDemo】在Xamarin.Forms中实现线图的显示。 (1)打开Xamarin.Forms项目。 (2)将OxyPlot.Xamarin.Forms组件添加到各个子项目中的引入中。 (3)打开OxyPlotFormsDemo.Android子项目的MainActivity.cs文件,初始化OxyPlot渲染器,代码如下: using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace OxyPlotFormsDemo.Droid { [Activity(Label = "OxyPlotFormsDemo", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] public class MainActivity :