OxyPlot

Oxyplot ScatterPoint custom Label

為{幸葍}努か 提交于 2019-12-07 20:29:56
问题 is it possible to write a custom string instead of the x and y position over a ScatterPoint? I searched in the documentation and Google but sadly didn't find anything. :/ 回答1: Yes it is my friend! If you want the custom string to be the same for all points in the series, simply edit the TrackerFormatString. The TrackerFormatString is in the series object. If you want each point to have a separate string, add the tag to the custom string like so: seriesToAdd.TrackerFormatString = seriesToAdd

Irregular interval on DateTime Axis in OxyPlot

这一生的挚爱 提交于 2019-12-07 17:52:03
问题 I have a WPF application in which I am using OxyPlot for charting. I add points continuously to the lineseries in the chart. The X-Axis is a DateTime axis whose interval type is set to seconds. Points are added continuously to the line series. When the timespan between first and last point is a particular number of seconds, I remove the first point and Invalidate the plot. This makes the X-Axis scroll. I have noticed that the Interval is not regular though. The interval changes sometimes. See

Multiple LineSeries Binding in OxyPlot

主宰稳场 提交于 2019-12-07 04:57:41
问题 Is it possible to bind a plot to a collection of LineSeries instead of a single LineSeries in OxyPlot? (and not through the Model). I'm looking for something like this: <oxy:Plot> <oxy:Plot.Series> <oxy:LineSeries ItemsSource="{Binding myCollectionOfLineSeries}" /> </oxy:Plot.Series> </oxy:Plot> Where myCollectionOfLineSeries is: private ObservableCollection<LineSeries> _myCollectionOfLineSeries ; public ObservableCollection<LineSeries> myCollectionOfLineSeries { get { return

OxyPlot in RecyclerView -MVVMCross Xamarin.Android

我的未来我决定 提交于 2019-12-06 15:43:47
I have the following implementation where I have recycler view, in each view I am trying to display a data using OxyPlot. I could able to see hard coded Plotvalues on the each card, but when I scroll, it is kind of a slow response and app freezes a while. I wonder what I am doing wrong or how to improve this performance issue? MainView.xml <MvxRecyclerView android:id="@+id/myRecyclerView" android:layout_marginTop="10dp" android:scrollbars="vertical" android:divider="@null" android:layout_width="match_parent" android:layout_height="match_parent" local:MvxItemTemplate="@layout/mycardview" />

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

送分小仙女□ 提交于 2019-12-06 11:46:48
Xamarin图表开发基础教程(4)OxyPlot框架 XamaminAndroid中绘制线图OxyPlotAndroidDemo 【示例1-1:OxyPlotAndroidDemo】下面实现线图的绘制。具体的操作步骤如下: (1)打开Xamarin.Android项目。 (2)将OxyPlot.Xamarin.Android组件添加到项目中的引入中。 (3)打开activity_main.axml文件,使用PlotView进行布局。代码如下: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <OxyPlot.Xamarin.Android.PlotView android:id="@+id/plot_view" android:layout_width=

OxyPlot get clicked point

别来无恙 提交于 2019-12-06 06:39:33
问题 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="

OxyPlot not refreshing when using data binding in WPF

和自甴很熟 提交于 2019-12-06 06:35:49
I'm asynchonrously getting data and attempting to populate a plot via the LineSeries, except the plot does not refresh when the bound collection (ObservableCollection) is updated. Note: I have a XAML behavior to call InvalidatePlot(true) when the bound collection changes. Can anyone explain why the plot is not updating as expected? WPF .Net 4.0 OxyPlot 2014.1.293.1 I have the following XAML datatemplate, as you can see the LineSeries ItemsSource is bound to a property (PlotData) in the ViewModel: <DataTemplate DataType="{x:Type md:DataViewModel}"> <Grid> <oxy:Plot x:Name="MarketDatePlot"

How to create square plot area with Oxyplot

邮差的信 提交于 2019-12-06 00:30:33
问题 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). 回答1: I solved this by hooking into the LayoutUpdated event on the PlotView and updating the PlotView.Width from the

Irregular interval on DateTime Axis in OxyPlot

一个人想着一个人 提交于 2019-12-05 22:46:38
I have a WPF application in which I am using OxyPlot for charting. I add points continuously to the lineseries in the chart. The X-Axis is a DateTime axis whose interval type is set to seconds. Points are added continuously to the line series. When the timespan between first and last point is a particular number of seconds, I remove the first point and Invalidate the plot. This makes the X-Axis scroll. I have noticed that the Interval is not regular though. The interval changes sometimes. See the following images: This is the interval when the chart starts plotting. After a while the interval

Multiple LineSeries Binding in OxyPlot

青春壹個敷衍的年華 提交于 2019-12-05 12:09:28
Is it possible to bind a plot to a collection of LineSeries instead of a single LineSeries in OxyPlot? (and not through the Model). I'm looking for something like this: <oxy:Plot> <oxy:Plot.Series> <oxy:LineSeries ItemsSource="{Binding myCollectionOfLineSeries}" /> </oxy:Plot.Series> </oxy:Plot> Where myCollectionOfLineSeries is: private ObservableCollection<LineSeries> _myCollectionOfLineSeries ; public ObservableCollection<LineSeries> myCollectionOfLineSeries { get { return _myCollectionOfLineSeries ; } set { _myCollectionOfLineSeries = value; OnPropertyChanged("myCollectionOfLineSeries ");