OxyPlot

Xamarin.Forms: Not appearing OxyPlot Pie Chart

邮差的信 提交于 2021-02-08 08:21:19
问题 Good Day everyone. I'm creating a Xamarin.Forms Portable Application and I want to display there a Chart using a OxyPlot. I followed a documentation in here about OxyPlot. But I still kinda confuse. Can you please look at the process I followed and check if what I did was right? These are just based on my own understanding. Here's what I did : Update the Xamarin.Forms NuGet packages to the latest version. Add the OxyPlot.Xamarin.Forms NuGet package in both the portable and platform specific

Oxyplot Find 'Y Axis Value' From 'X Axis Value' C#

*爱你&永不变心* 提交于 2021-01-29 16:16:09
问题 I draw my plot using Oxyplot and i don't have any problem about drawing the plot. My Y axis is a 'LinearAxis' and X axis is a 'TimeSpanAxis'. What i want to do is get Y value from given X value. For example i want to get Y value from TimeSpan(0,0,0,1). I can't use mouse position or any other events. X value will be given by user as a timespan. This should be easy but I couldn't find anything. 回答1: I am not quite sure this is the most efficient way to do this, but here is one suggestion on how

Oxyplot - Get visible Points

*爱你&永不变心* 提交于 2021-01-29 03:58:10
问题 I'm using OxyPlot to draw a huge amount of data in a StairStepSeries. The performance is good, but very bad if I'm activating Markers. Therefore I would like to implement a check: Markers can only be activated if a certain number of visible points are not exceeded. Is it possible to get only the number of visibile points? I found no solution. I get only the total number of points of a chart. 回答1: I haven't tested this myself. public int GetNumberOfVisiblePointsOnScreen(StairStepSeries

OxyPlot - How to remove Axes

末鹿安然 提交于 2020-04-30 07:43:05
问题 I would like to create an Oxyplot view without any axes visible. Could anyone tell me how to do so? To avoid missunderstandings, I never added any axes to the plotmodel. This code adds axes already. How to avoid that they are shown? C# plot = new PlotModel(); var ser = new LineSeries(); ser.Points.Add(new DataPoint(1, 1)); plot.Series.Add(ser); XAML <oxy:PlotView Background="Transparent" Model="{Binding plot}"</oxy:PlotView> 回答1: As stated in in oxyplot axes documentation: If no axes are

Styling WPF OxyPlot PlotViews in XAML

与世无争的帅哥 提交于 2020-02-01 03:55:10
问题 When setting up an OxyPlot plot view, you can either define the plot explicitly through various controls, or set it up through a binding to a PlotModel . As such, in the first case, the XAML for a plot of two LineSeries objects could look something like <oxy:Plot Title="Some plot"> <oxy:Plot.Axes> <oxy:LinearAxis Position="Left" /> <oxy:LinearAxis Position="Bottom" /> </oxy:Plot.Axes> <oxy:Plot.Series> <oxy:LineSeries ItemsSource="{Binding ActualSeriesData1}" DataFieldX="X" DataFieldY="Y"/>

Turning off Virtualization for Tabcontrol without itemsource - WPF

社会主义新天地 提交于 2020-01-14 04:45:07
问题 I have a bug with Tabcontrols and Oxyplot. The Structure of my xaml is like this: I have an AvalonDock document and inside I have 3 harcoded tabs for each document. One of those tabs has another tabcontrol with an Oxyplot View inside each tab. Problem is when I open two (sometimes three) Avalondock Documents, I get the following exception: This PlotModel is already in use by some other PlotView control. I guess it is because the tabcontrol is virtualizing the tabs, and the plot model is being

Adding dotnet highcharts to Xamarin app

孤街浪徒 提交于 2020-01-11 07:55:13
问题 I want to add highcharts library to my xamarin app. Does xamarin support it or not. I don't want to use oxyplot as i have already worked with highcharts in my web application Any help would be highly appreciated 回答1: If your app isn't a hybrid-app than the answer is no. The reason for this is that HighCharts are JavaScript-based charts for the web. If you want fully native charts and don't want to use oxyplot take a look at ShinobiControls. 回答2: It's actually pretty simple. Put together an

OxyPlot is not updating title

拜拜、爱过 提交于 2020-01-07 02:56:09
问题 I am using OxyPlot to show a Chart on a user control under WPF/.net 4.5 and have the following XAML: <oxy:Plot x:Name="oxyPlot" Title="{Binding ChartTitle}" Model="{Binding Plot}" /> and in my Code-Behind: public string ChartTitle { get { return (string)GetValue(ChartTitleProperty); } set { SetValue(ChartTitleProperty, value); } } public static readonly DependencyProperty ChartTitleProperty = DependencyProperty.Register("ChartTitle", typeof(string), typeof(ChartControl), new PropertyMetadata(