OxyPlot

Xamarin图表开发基础教程(13)OxyPlot框架支持的其它图表

牧云@^-^@ 提交于 2019-12-05 10:58:33
Xamarin图表开发基础教程(13)OxyPlot框架支持的其它图表 除了以上提到的图表外,OxyPlot组件还包含了6种类型的其它图表,分别为等高线图、箱线图、饼图、热图、散点图和散点误差图,如图1.25~1.30所示。 来源: https://my.oschina.net/u/1585857/blog/3133088

Binding OxyPlot via MVVMCross in Xamarin.Android

∥☆過路亽.° 提交于 2019-12-05 09:40:11
I have added OxyPlot Android and Core in my Xamarin PCL based project where I am using MVVMCross . I have added the plotview in my xml as follows. But I do not know how to bind this view using MVVMCross. Is there any good example or resources to follow? MyView.xml <oxyplot.xamarin.android.PlotView android:id="@+id/plot" android:layout_width="match_parent" android:layout_height="match_parent" /> MyView.cs public class MyView : MvxFragment<MyViewModel> { public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { var ignored = base.OnCreateView

Xamarin图表开发基础教程(12)OxyPlot框架支持的金融图表类型

前提是你 提交于 2019-12-05 06:27:13
Xamarin图表开发基础教程(12)OxyPlot框架支持的金融图表类型 OxyPlot组件中支持5种类型的金融图表,它们分别为销量图、高低图、股票K线图、股票走势图和旧式股票图,如图1.20~1.24所示。 来源: https://my.oschina.net/u/1585857/blog/3132534

Xamarin图表开发基础教程(11)OxyPlot框架支持的图表类型

纵饮孤独 提交于 2019-12-04 23:20:14
Xamarin图表开发基础教程(11)OxyPlot框架支持的图表类型 OxyPlot组件中支持7种类型的条型图表,分别为普通条形图、线型条形图、矩形条形图、差值图、龙卷风图、普通柱形图和柱形误差图,如图1.13~1.19所示。 来源: https://my.oschina.net/u/1585857/blog/3131144

Xamarin图表开发基础教程(10)OxyPlot框架支持的图表类型

穿精又带淫゛_ 提交于 2019-12-04 20:06:26
Xamarin图表开发基础教程(10)OxyPlot框架 支持的图表类型 OxyPlot组件支持26种图表,这些图表按照功能和样式可以分为4大类,分别为线型图表、条型图表、金融图表和其它图表。 线型图表 OxyPlot组件中支持8种类型的线型图表,分别为线图、双色线图、三色线图、面积图、双色面积图、函数图、梯形图、火柴,如图1.5~1.12所示。 来源: https://my.oschina.net/u/1585857/blog/3130719

Xamarin图表开发基础教程(9)OxyPlot框架

落花浮王杯 提交于 2019-12-04 17:32:55
Xamarin图表开发基础教程(9)OxyPlot框架 OxyPlot组件构成 OxyPlot组件主要由两个类构成,分别为PlotView和PlotModel。这两个类我们在上文中也使用到了。本节将讲解介绍这两个类。 1.图表视图PlotView PlotView类被称为图表视图,它是一个界面元素,类似于标签、按钮等。用于显示绘制的图表。 2.图表模型PlotModel PlotModel类被称为图表模型,它相当于一个画布,用于对图表进行绘制。 注意: 这两个类的应用可以参考前文中各个平台实现图表显示的步骤2与4。 来源: https://my.oschina.net/u/1585857/blog/3130475

Xamarin图表开发基础教程(8)OxyPlot框架

☆樱花仙子☆ 提交于 2019-12-04 15:14:34
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 :

Xamarin图表开发基础教程(7)OxyPlot框架

久未见 提交于 2019-12-04 13:26:40
Xamarin图表开发基础教程(7)OxyPlot框架 Xamarin.Forms中使用OxyPlot框架 在Xamarin. Forms平台上实现图表显示需要完成以下的步骤: 1.添加OxyPlot.Xamarin.Forms组件 打开Xamarin.Forms项目,通过Nuget,将OxyPlot.Xamarin.Forms组件添加到各个子项目的引入项中。 2.初始化OxyPlot渲染器 在各个平台的子项目下,对OxyPlot渲染器进行初始化。其语法形式如下: OxyPlot.Xamarin.Forms.Platform.assignPlatform.PlotViewRenderer.Init(); 其中,assignPlatform指定的是各个子项目对应的平台,如果是Android子项目,这里的assignPlatform就是Android。 3.创建PlotView视图 创建PlotView视图的方式有两种,分别是在布局文件xaml中和在代码文件.cs中。下面将讲解这两种创建方式。 (1)在布局文件xaml文件中,创建PlotView视图的语法形式如下: <oxy:PlotView Model="*******" VerticalOptions="********" HorizontalOptions="********" …… /> 注意:在布局PlotView视图时

OxyPlot get clicked point

徘徊边缘 提交于 2019-12-04 09:01:44
I am trying to plot some circles on a scatter plot via: <Grid> <oxy:PlotView x:Name="PlotView" Title="{Binding Title}" > <oxy:PlotView.Axes> <oxy:LinearAxis Position="Bottom" Minimum="-30" Maximum="30" IsAxisVisible="False" IsZoomEnabled="False" IsPanEnabled="False" /> <oxy:LinearAxis Position="Left" Minimum="0" Maximum="35" IsAxisVisible="False" IsZoomEnabled="False" IsPanEnabled="False"/> </oxy:PlotView.Axes> <oxy:PlotView.Series> <oxy:ScatterSeries Height="100" Width="100" ItemsSource="{Binding Points}" MarkerType="Circle" /> </oxy:PlotView.Series> </oxy:PlotView> </Grid> I can not figure

How to create square plot area with Oxyplot

删除回忆录丶 提交于 2019-12-04 06:49:18
I'm trying to create a square graph (X axis width is the same as the Y axis height). I can't find any documentation on this and all of the properties I've seen which might be able to do this are inaccessible. I've tried: <oxy:PlotView Model="{Binding Model}" Width="500" Height="500"/> This obviously doesn't work because this sets the entire area (not the graph specific portion). I solved this by hooking into the LayoutUpdated event on the PlotView and updating the PlotView.Width from the PlotArea width/height difference. XAML: <Window x:Class="Temp.MainWindow" xmlns="http://schemas.microsoft