This is the discussion forum for OxyPlot.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0

Column Series textannotation position

Derick Loo 8 years ago 0

I have xamarin form which using oxyplot to plot column series. I wish to display a text annotation in the chart. I able to display it but when the content of the chart is different, the position of textannotation will run. How I can fix the position of it? Below is my code


plotModel = new PlotModel

{

Title = "Test",

LegendPlacement = LegendPlacement.Outside,

LegendPosition = LegendPosition.BottomCenter,
LegendOrientation = LegendOrientation.Horizontal,
LegendBorderThickness = 0
};

TextAnnotation txtlabel = new TextAnnotation();

txtlabel.Text = "1:1000";
txtlabel.TextColor = OxyColors.Red;
txtlabel.Stroke = OxyColors.Red;
txtlabel.StrokeThickness = 2;
txtlabel.FontSize = 13;
txtlabel.TextPosition = new DataPoint(-0.2, 0.64);
plotModel.Annotations.Add(txtlabel);

Image 62


Thanks.


0

LineAnnotation Visibility in WPF

Phil Jollans 8 years ago 0

I have configured a plot using XAML (using Plot not PlotView) with 6 LineAnnotations, which I want to show or hide optionally.


I have used Binding to connect the Visibility property of the LineAnnotations to properties in my ViewModel.


The properties are boolean and I have used a converter to convert the value to Visibility.Collapsed or Visibility.Visible (but I could just as well have defined a property with the type Visibility).


This doesn't work. The LineAnnotations are always visible.

In fact, I don't think that the Visibility property of a LineAnnotation works at all.


Is this is bug?

Is there a workaround?


Phil

0

Bug in oxyplot, Why it do not connect points in correct order

stackFlow Over 8 years ago 0

private void LoadData()

{

List<Points> measurements = Data.GetData(allPointsOfSelectedZone);//Now measurements contains all the points in the order displayed in ViewModel.cs Code of other tried sample written below
var dataPerDetector = measurements.GroupBy(m => m.DetectorId).OrderBy(m => m.Key).ToList();
foreach (var data in dataPerDetector)
{
var lineSerie = new LineSeries
{
StrokeThickness = 1,
MarkerSize = 1,
MarkerStroke = colors[0],
MarkerType = markerTypes[0],
CanTrackerInterpolatePoints = true,
Title = string.Format("Zone Selected :{0}", data.Key),
Smooth = false,
};
data.ToList().ForEach(d => lineSerie.Points.Add(new DataPoint(DateTimeAxis.ToDouble(d.Time), d.Tesnion)));
PlotModel.Series.Add(lineSerie);
}
lastUpdate = DateTime.Now;
}
0

Oxyplot doesn't rapresent correctly double number on android phone

giorgione91 8 years ago 0

Hello to everyone! I developed a android app on Visual Studio with Xamarin. My app comunicate with a Arduino board and retrive me a html with a temperature value. The app running without problems both in debug mode than in release, but when I create the apk and install them on the phone the graph doesn't rapresent the double value of temperature on y axes. I try to cast to int the double values of temperature, but on the phone nothing change. Anyone Can help me?

0

Windows Version not working

Andreas T 8 years ago 0

Does anyone face any problem with the Windows version of OxyPlot? Specifically, I cannot install WP8 library from NuGet and also I can not add the following line in my windows project as well.


OxyPlot.Xamarin.Forms.Platform.WP8.PlotViewRenderer.Init();

0

'Resource.Attribute' does not contain a definition for 'mediaRouteSettingsDrawable'

Derick Loo 8 years ago 0

I have a xamrin form PCL project. I add the oxyplot.xamarin.form into the pcl project, android project and iOs project. When I build the solution, the android project give me an error below:'Resource.Attribute' does not contain a definition for 'mediaRouteSettingsDrawable'


May I know what the problem or mistake I make when add the oxyplot into the project?

Please guide me to the correct direction. Thanks.

0

Overlaying Text Labels on X-Axis and Y-Axis?

Mark Zielinski 8 years ago 0

Hi,


What would be the best way to overlay a text label on the Y-Axis? The use case I have is that I am displaying a real time chart for a stock and I need to also show the real time price within a text label that overlays on top of the Y-Axis (price axis) and moves when the price changes. I have looked at both annotations and category axis but they both don't seem to be the right solution for this and I wasn't sure if there was anything obvious that I am missing.


Mark


0

How do I display multiple series label for the shared axis?

John 8 years ago updated by Richard DeVenezia 5 years ago 1

How do I display multiple series label for the same shared/linked axis? In my conversion, I am trying to emulate something like the picture below. Image 61

I am new at this and looking at the position tier example, but can't figure it out. Many Thanks.

0

Reverse direction for magnitude axis

Alex_K 8 years ago 0

Hello!

Please tell me how to change direction values for magnitudny axis (polar chart) outside the minimum center maximum.

Described in articles method of using the StartPosition and EndPosition is not working+(

<oxy:MagnitudeAxis StartPosition="1" EndPosition="0" Minimum="0" Maximum="90" />

Image 59


Thanks in advance for the answer!

0

Build errors OxyPlot in VS2012

Milan 8 years ago 0

Hi guys,


I have succesfully used the OxyPlot packages from NuGet and now wanted to try my hand on building the source (so I could check out the example browser).


I downloaded the 'stable' version from GitHub, but when I try to build (VS2012 Professional Update 4 on Windows 7) I get a lot of errors. Below are the ones I think are the root cause of all this:

  • CSC : error CS0006: Metadata file 'C:\MyProjects\oxyplot-release-v1.0.0\Source\OxyPlot\bin\x64\Debug\OxyPlot.dll' could not be found
  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.5,Profile=Profile259" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
  • C:\MyProjects\oxyplot-release-v1.0.0\Source\OxyPlot\Reporting\Report\ItemsTableField.cs(69,46,69,64): error CS1061: 'System.Type' does not contain a definition for 'GetRuntimeProperty' and no extension method 'GetRuntimeProperty' accepting a first argument of type 'System.Type' could be found (are you missing a using directive or an assembly reference?)

I have done my Googling, but no luck so far, Help is much appreciated.


Thanks


Milan