OxyPlot

Center Axes in oxyplot

妖精的绣舞 提交于 2019-12-23 20:26:48
问题 I want to draw a chart like image below with oxyplot, the problem is i don't know how to draw axis (with values) at value 50. Code : var model = new PlotModel { Title = "EllipseAnnotations" }; model.Axes.Add( new LinearAxis { Position = AxisPosition.Bottom, Minimum = 20, Maximum = 80, PositionAtZeroCrossing = true, ExtraGridlines = new[] { 50.0 }, ExtraGridlineStyle = LineStyle.Dash }); model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Minimum = 20, Maximum = 80,

Another “Object does not contain a definition for X”

爱⌒轻易说出口 提交于 2019-12-23 05:41:20
问题 I saw a lot of topics with the problem: "Object does not contain a definition for X and no extension method X accepting a first argument of type Object" But none of them had the solution to my problem. Situation: I want to save 3 series of DataPoints. Therefor i made a List that holds the series: List<OxyPlot.Series.DataPointSeries> filesToBeStored; public OxyPlot.Series.DataPointSeries saveAnalyseBSITotal; public OxyPlot.Series.DataPointSeries saveAnalyseSBSI; public OxyPlot.Series

OxyPlot in RecyclerView -MVVMCross Xamarin.Android

删除回忆录丶 提交于 2019-12-23 01:12:45
问题 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

how to don't render gridline outside EllipseAnnotation in oxyplot?

夙愿已清 提交于 2019-12-22 22:27:11
问题 I want to draw a plot exactly like image below with oxyplot. the problem here is gridlines. i dont want to draw them outside of the largest circle. this is what i get till now : PS: for anyone else who want to know how to achieve this : (special thanks for @dd4711 who helped me with this question var model = new PlotModel { Title = "EllipseAnnotations", PlotAreaBorderColor = OxyColors.Transparent }; var series = new LineSeries { MarkerType = MarkerType.Cross, MarkerSize = 7, MarkerStroke =

OxyPlot not refreshing when using data binding in WPF

我们两清 提交于 2019-12-22 11:30:42
问题 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

Binding OxyPlot via MVVMCross in Xamarin.Android

十年热恋 提交于 2019-12-22 07:42:28
问题 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

How can I show the plot points in Oxyplot for a line Graph?

依然范特西╮ 提交于 2019-12-21 04:43:13
问题 Here is the xaml code to my graph: <oxy:Plot HorizontalAlignment="Left" Height="222" Margin="0,49,0,0" VerticalAlignment="Top" Width="870" Background="Transparent" PlotAreaBorderColor="White" LegendBorder="Transparent" Name="viewCountPlot" Title="Videos Watched" TextColor="White" IsLegendVisible="False" IsManipulationEnabled="False" IsMouseWheelEnabled="False"> <oxy:Plot.Axes> <oxy:DateTimeAxis Name="datetimeAxis" Position="Bottom" MajorGridlineColor="#40FFFFFF" TicklineColor="White"

How to plot MULTIPLE LineSeries on an OxyPlot chart?

白昼怎懂夜的黑 提交于 2019-12-21 04:11:24
问题 I apologize for asking so many OxyPlot questions, but I seem to be really struggling with using the OxyPlot chart control. My project is in WPF format so I was originally using a hosted WINFORMS chart and that worked like a charm and did absolutely everything I needed it to until I needed to overlay a WPF element on top of the hosted winform chart. Due to the "AirSpace" issue, I was not able to see the WPF element that I put on top of the hosted chart no matter what I did. That is when I

oxyplot axis locking center when mouse wheel

…衆ロ難τιáo~ 提交于 2019-12-20 04:23:35
问题 I'm new to wpf and oxyPlot. Now, I want create a dynamic line chart like an oscilloscope, but I don't know how to lock the axis on a value when mouse wheel zooms. Example: The red point is mouse location. In normal, zoom A -> B, zoom C -> D. now, I want to zoom C ->E, like mouse location at 0 center. 回答1: I've found a solution that works for blocking an axis zoom center. You have to create a custom LinearAxis to achieve this: public class FixedCenterLinearAxis : LinearAxis { double center = 0

How do I graph a custom function in OxyPlot?

删除回忆录丶 提交于 2019-12-11 12:11:52
问题 I'm trying to graph a trend line for my data. Is there anyway to define a custom function? The closest I've seen is with in the Hello Windows Forms example here: http://www.oxyplot.org/doc/HelloWindowsForms.html Code: namespace WindowsFormsApplication1 { using System; using System.Windows.Forms; using OxyPlot; using OxyPlot.Series; public partial class Form1 : Form { public Form1() { this.InitializeComponent(); var myModel = new PlotModel("Example 1"); myModel.Series.Add(new FunctionSeries