Mark!
↧
New Post: Movable (drag-able) Annotation
↧
New Post: Strange error
Thank you! It solve my problem.
↧
↧
New Post: Can't get OxyPlot.XamarinAndroid working.
Hi,
i got the latest commit and build the xamarainandroid and oxyplot .dll's and now it's working. I got OxyPlot via NuGet before. But i had to delete the
<input ="StyleCop...> in OxyPlot.csproj
i got the latest commit and build the xamarainandroid and oxyplot .dll's and now it's working. I got OxyPlot via NuGet before. But i had to delete the
<input ="StyleCop...> in OxyPlot.csproj
↧
New Post: OxyPlot on Linux (no GUI)
I have a C# program running on linux without any kind of graphical interface and I'm trying to create graphs dynamically and save them to images. As I understand, all platform-specific libraries are focused on use with a GUI (WinForms, WPF, GTK#...) but I would expect to have at least a PngExporter implementation using System.Drawing (same as zedgraph does), so no graphical libraries would be needed at all. Is this capability already supported?
Thank you very much
Thank you very much
↧
New Post: OxyPlot on Linux (no GUI)
I think is should be possible to use the
PngExporter
in the Gtk# implementation! I have not tried this on linux myself yet, so it will be interesting to hear your experiences!↧
↧
New Post: Can't get OxyPlot.XamarinAndroid working.
Thanks, I will check and update the NuGet packages. I am trying to get the Android and iOS components built on the Windows build server.
Make sure the OxyPlot and OxyPlot.XamarinAndroid packages have the same version number.
Make sure the OxyPlot and OxyPlot.XamarinAndroid packages have the same version number.
↧
Edited Unassigned: Synchronized major grid lines [10217]
Make it possible to sync the position of major grid lines for different axes
See also
https://oxyplot.codeplex.com/discussions/546833
https://oxyplot.codeplex.com/workitem/9945
See also
https://oxyplot.codeplex.com/discussions/546833
https://oxyplot.codeplex.com/workitem/9945
↧
Commented Unassigned: Oxyplot not rendering using c# wpf [10202]
Hi-
I've added a Oxy Plot to a WPF Grid from code-behind using C#. The issue is, plot is not rendered in the UI, but there is a blank space instead. Please look at the code for the issues. It will be great if you post for a solution before the weekend, as we have to demo the chart on Monday. TIA!!
Here is the code-snippet-
```cs
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.Axes;
using OxyPlot.Wpf;
using OxyPlot.Xps;
Private void CreateControlPlot()
{
Grid chartContentGrid = null;
Plot plot = new Plot { Height = 500, Width = 500 };
PlotModel plotModel = CreateControlLevelChart(1);
Binding plotBinding = new Binding();
plotBinding.Source = plotModel;
plot.SetBinding(Plot.ModelProperty, plotBinding);
plot.SetValue(Grid.RowProperty, 0);
chartContentGrid.Children.Add(new ContentPresenter { Content = plot });
}
private PlotModel CreateControlLevelChart(int level)
{
var controlPlotModel = new PlotModel();
controlPlotModel.LegendSymbolLength = 24;
controlPlotModel.Title = "Levey Jennings: Control Report - Level " + level;
// x-axis (Result Date)
var linearXaxis = new OxyPlot.Axes.DateTimeAxis();
linearXaxis.Position = AxisPosition.Bottom;
linearXaxis.Angle = 90;
controlPlotModel.Axes.Add(linearXaxis);
// y-axis (Concentration)
var linearYaxis = new OxyPlot.Axes.LinearAxis();
linearYaxis.Position = AxisPosition.Left;
controlPlotModel.Axes.Add(linearYaxis);
// add Result date vs concentration series
var concentrationSeries = new OxyPlot.Series.ScatterSeries();
concentrationSeries.MarkerFill = OxyColors.SkyBlue;
concentrationSeries.MarkerSize = 6;
concentrationSeries.MarkerStroke = OxyColors.Green;
concentrationSeries.MarkerStrokeThickness = 5;
concentrationSeries.MarkerType = MarkerType.Circle;
concentrationSeries.Title = "Result Date vs Concentration";
// add mean series
var meanSeries = new OxyPlot.Series.LineSeries();
meanSeries.Color = OxyColors.SkyBlue;
meanSeries.MarkerFill = OxyColors.Red;
meanSeries.MarkerSize = 6;
meanSeries.MarkerStroke = OxyColors.Yellow;
meanSeries.BrokenLineThickness = 3;
meanSeries.MarkerStrokeThickness = 5;
meanSeries.MarkerType = MarkerType.Circle;
meanSeries.Title = "Mean";
//add sd series
var sdSeries = new OxyPlot.Series.LineSeries();
sdSeries.Color = OxyColors.SkyBlue;
sdSeries.MarkerFill = OxyColors.Black;
sdSeries.MarkerSize = 6;
sdSeries.MarkerStroke = OxyColors.Green;
sdSeries.BrokenLineThickness = 3;
sdSeries.MarkerStrokeThickness = 5;
sdSeries.MarkerType = MarkerType.Circle;
sdSeries.Title = "Mean";
// add the points to the series
foreach (var data in _data)
{
concentrationSeries.Points.Add(CreateChartScatterPoint(data.ResultDate, data.Concentration));
meanSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.Mean));
sdSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.StandardDevation));
}
// add the series to the plot model
controlPlotModel.Series.Add(concentrationSeries);
controlPlotModel.Series.Add(meanSeries);
controlPlotModel.Series.Add(sdSeries);
return controlPlotModel;
}
```
Comments: There is a `NullReferenceException` in your code. I fixed this, then the plot shows up as expected. Note that `Plot` is obsolete, replace with `PlotView`.
I've added a Oxy Plot to a WPF Grid from code-behind using C#. The issue is, plot is not rendered in the UI, but there is a blank space instead. Please look at the code for the issues. It will be great if you post for a solution before the weekend, as we have to demo the chart on Monday. TIA!!
Here is the code-snippet-
```cs
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.Axes;
using OxyPlot.Wpf;
using OxyPlot.Xps;
Private void CreateControlPlot()
{
Grid chartContentGrid = null;
Plot plot = new Plot { Height = 500, Width = 500 };
PlotModel plotModel = CreateControlLevelChart(1);
Binding plotBinding = new Binding();
plotBinding.Source = plotModel;
plot.SetBinding(Plot.ModelProperty, plotBinding);
plot.SetValue(Grid.RowProperty, 0);
chartContentGrid.Children.Add(new ContentPresenter { Content = plot });
}
private PlotModel CreateControlLevelChart(int level)
{
var controlPlotModel = new PlotModel();
controlPlotModel.LegendSymbolLength = 24;
controlPlotModel.Title = "Levey Jennings: Control Report - Level " + level;
// x-axis (Result Date)
var linearXaxis = new OxyPlot.Axes.DateTimeAxis();
linearXaxis.Position = AxisPosition.Bottom;
linearXaxis.Angle = 90;
controlPlotModel.Axes.Add(linearXaxis);
// y-axis (Concentration)
var linearYaxis = new OxyPlot.Axes.LinearAxis();
linearYaxis.Position = AxisPosition.Left;
controlPlotModel.Axes.Add(linearYaxis);
// add Result date vs concentration series
var concentrationSeries = new OxyPlot.Series.ScatterSeries();
concentrationSeries.MarkerFill = OxyColors.SkyBlue;
concentrationSeries.MarkerSize = 6;
concentrationSeries.MarkerStroke = OxyColors.Green;
concentrationSeries.MarkerStrokeThickness = 5;
concentrationSeries.MarkerType = MarkerType.Circle;
concentrationSeries.Title = "Result Date vs Concentration";
// add mean series
var meanSeries = new OxyPlot.Series.LineSeries();
meanSeries.Color = OxyColors.SkyBlue;
meanSeries.MarkerFill = OxyColors.Red;
meanSeries.MarkerSize = 6;
meanSeries.MarkerStroke = OxyColors.Yellow;
meanSeries.BrokenLineThickness = 3;
meanSeries.MarkerStrokeThickness = 5;
meanSeries.MarkerType = MarkerType.Circle;
meanSeries.Title = "Mean";
//add sd series
var sdSeries = new OxyPlot.Series.LineSeries();
sdSeries.Color = OxyColors.SkyBlue;
sdSeries.MarkerFill = OxyColors.Black;
sdSeries.MarkerSize = 6;
sdSeries.MarkerStroke = OxyColors.Green;
sdSeries.BrokenLineThickness = 3;
sdSeries.MarkerStrokeThickness = 5;
sdSeries.MarkerType = MarkerType.Circle;
sdSeries.Title = "Mean";
// add the points to the series
foreach (var data in _data)
{
concentrationSeries.Points.Add(CreateChartScatterPoint(data.ResultDate, data.Concentration));
meanSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.Mean));
sdSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.StandardDevation));
}
// add the series to the plot model
controlPlotModel.Series.Add(concentrationSeries);
controlPlotModel.Series.Add(meanSeries);
controlPlotModel.Series.Add(sdSeries);
return controlPlotModel;
}
```
Comments: There is a `NullReferenceException` in your code. I fixed this, then the plot shows up as expected. Note that `Plot` is obsolete, replace with `PlotView`.
↧
Closed Unassigned: Oxyplot not rendering using c# wpf [10202]
Hi-
I've added a Oxy Plot to a WPF Grid from code-behind using C#. The issue is, plot is not rendered in the UI, but there is a blank space instead. Please look at the code for the issues. It will be great if you post for a solution before the weekend, as we have to demo the chart on Monday. TIA!!
Here is the code-snippet-
```cs
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.Axes;
using OxyPlot.Wpf;
using OxyPlot.Xps;
Private void CreateControlPlot()
{
Grid chartContentGrid = null;
Plot plot = new Plot { Height = 500, Width = 500 };
PlotModel plotModel = CreateControlLevelChart(1);
Binding plotBinding = new Binding();
plotBinding.Source = plotModel;
plot.SetBinding(Plot.ModelProperty, plotBinding);
plot.SetValue(Grid.RowProperty, 0);
chartContentGrid.Children.Add(new ContentPresenter { Content = plot });
}
private PlotModel CreateControlLevelChart(int level)
{
var controlPlotModel = new PlotModel();
controlPlotModel.LegendSymbolLength = 24;
controlPlotModel.Title = "Levey Jennings: Control Report - Level " + level;
// x-axis (Result Date)
var linearXaxis = new OxyPlot.Axes.DateTimeAxis();
linearXaxis.Position = AxisPosition.Bottom;
linearXaxis.Angle = 90;
controlPlotModel.Axes.Add(linearXaxis);
// y-axis (Concentration)
var linearYaxis = new OxyPlot.Axes.LinearAxis();
linearYaxis.Position = AxisPosition.Left;
controlPlotModel.Axes.Add(linearYaxis);
// add Result date vs concentration series
var concentrationSeries = new OxyPlot.Series.ScatterSeries();
concentrationSeries.MarkerFill = OxyColors.SkyBlue;
concentrationSeries.MarkerSize = 6;
concentrationSeries.MarkerStroke = OxyColors.Green;
concentrationSeries.MarkerStrokeThickness = 5;
concentrationSeries.MarkerType = MarkerType.Circle;
concentrationSeries.Title = "Result Date vs Concentration";
// add mean series
var meanSeries = new OxyPlot.Series.LineSeries();
meanSeries.Color = OxyColors.SkyBlue;
meanSeries.MarkerFill = OxyColors.Red;
meanSeries.MarkerSize = 6;
meanSeries.MarkerStroke = OxyColors.Yellow;
meanSeries.BrokenLineThickness = 3;
meanSeries.MarkerStrokeThickness = 5;
meanSeries.MarkerType = MarkerType.Circle;
meanSeries.Title = "Mean";
//add sd series
var sdSeries = new OxyPlot.Series.LineSeries();
sdSeries.Color = OxyColors.SkyBlue;
sdSeries.MarkerFill = OxyColors.Black;
sdSeries.MarkerSize = 6;
sdSeries.MarkerStroke = OxyColors.Green;
sdSeries.BrokenLineThickness = 3;
sdSeries.MarkerStrokeThickness = 5;
sdSeries.MarkerType = MarkerType.Circle;
sdSeries.Title = "Mean";
// add the points to the series
foreach (var data in _data)
{
concentrationSeries.Points.Add(CreateChartScatterPoint(data.ResultDate, data.Concentration));
meanSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.Mean));
sdSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.StandardDevation));
}
// add the series to the plot model
controlPlotModel.Series.Add(concentrationSeries);
controlPlotModel.Series.Add(meanSeries);
controlPlotModel.Series.Add(sdSeries);
return controlPlotModel;
}
```
I've added a Oxy Plot to a WPF Grid from code-behind using C#. The issue is, plot is not rendered in the UI, but there is a blank space instead. Please look at the code for the issues. It will be great if you post for a solution before the weekend, as we have to demo the chart on Monday. TIA!!
Here is the code-snippet-
```cs
using OxyPlot;
using OxyPlot.Series;
using OxyPlot.Axes;
using OxyPlot.Wpf;
using OxyPlot.Xps;
Private void CreateControlPlot()
{
Grid chartContentGrid = null;
Plot plot = new Plot { Height = 500, Width = 500 };
PlotModel plotModel = CreateControlLevelChart(1);
Binding plotBinding = new Binding();
plotBinding.Source = plotModel;
plot.SetBinding(Plot.ModelProperty, plotBinding);
plot.SetValue(Grid.RowProperty, 0);
chartContentGrid.Children.Add(new ContentPresenter { Content = plot });
}
private PlotModel CreateControlLevelChart(int level)
{
var controlPlotModel = new PlotModel();
controlPlotModel.LegendSymbolLength = 24;
controlPlotModel.Title = "Levey Jennings: Control Report - Level " + level;
// x-axis (Result Date)
var linearXaxis = new OxyPlot.Axes.DateTimeAxis();
linearXaxis.Position = AxisPosition.Bottom;
linearXaxis.Angle = 90;
controlPlotModel.Axes.Add(linearXaxis);
// y-axis (Concentration)
var linearYaxis = new OxyPlot.Axes.LinearAxis();
linearYaxis.Position = AxisPosition.Left;
controlPlotModel.Axes.Add(linearYaxis);
// add Result date vs concentration series
var concentrationSeries = new OxyPlot.Series.ScatterSeries();
concentrationSeries.MarkerFill = OxyColors.SkyBlue;
concentrationSeries.MarkerSize = 6;
concentrationSeries.MarkerStroke = OxyColors.Green;
concentrationSeries.MarkerStrokeThickness = 5;
concentrationSeries.MarkerType = MarkerType.Circle;
concentrationSeries.Title = "Result Date vs Concentration";
// add mean series
var meanSeries = new OxyPlot.Series.LineSeries();
meanSeries.Color = OxyColors.SkyBlue;
meanSeries.MarkerFill = OxyColors.Red;
meanSeries.MarkerSize = 6;
meanSeries.MarkerStroke = OxyColors.Yellow;
meanSeries.BrokenLineThickness = 3;
meanSeries.MarkerStrokeThickness = 5;
meanSeries.MarkerType = MarkerType.Circle;
meanSeries.Title = "Mean";
//add sd series
var sdSeries = new OxyPlot.Series.LineSeries();
sdSeries.Color = OxyColors.SkyBlue;
sdSeries.MarkerFill = OxyColors.Black;
sdSeries.MarkerSize = 6;
sdSeries.MarkerStroke = OxyColors.Green;
sdSeries.BrokenLineThickness = 3;
sdSeries.MarkerStrokeThickness = 5;
sdSeries.MarkerType = MarkerType.Circle;
sdSeries.Title = "Mean";
// add the points to the series
foreach (var data in _data)
{
concentrationSeries.Points.Add(CreateChartScatterPoint(data.ResultDate, data.Concentration));
meanSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.Mean));
sdSeries.Points.Add(CreateChartDataPoint(data.ResultDate, data.StandardDevation));
}
// add the series to the plot model
controlPlotModel.Series.Add(concentrationSeries);
controlPlotModel.Series.Add(meanSeries);
controlPlotModel.Series.Add(sdSeries);
return controlPlotModel;
}
```
↧
↧
Created Unassigned: Support path drawing [10219]
Add support for drawing paths in `IRenderContext`
http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.graphicspath(v=vs.110).aspx
http://www.w3.org/TR/SVG/paths.html
http://msdn.microsoft.com/en-us/library/system.windows.shapes.path.aspx
http://developer.android.com/reference/android/graphics/Path.html
https://developer.apple.com/library/ios/documentation/2ddrawing/conceptual/drawingprintingios/BezierPaths/BezierPaths.html
http://msdn.microsoft.com/en-us/library/system.drawing.drawing2d.graphicspath(v=vs.110).aspx
http://www.w3.org/TR/SVG/paths.html
http://msdn.microsoft.com/en-us/library/system.windows.shapes.path.aspx
http://developer.android.com/reference/android/graphics/Path.html
https://developer.apple.com/library/ios/documentation/2ddrawing/conceptual/drawingprintingios/BezierPaths/BezierPaths.html
↧
New Post: Discontinuous LineSeries
Hi
At the moment I'm using a LineSeries, to view my data. But sometimes there might be missing datapoints, which I would like to be made aware of. I was thinking that what I want is something like LineSeries, but allowing discontinuities. For instance, such that I can specify a number (or a timespan in my case), and when two consecutive datapoints are further apart than that, no line would be drawn between them. I assume that this is not already a part of OxyPlot, but is it possible for me to implement? I have no idea where to start.
At the moment I'm using a LineSeries, to view my data. But sometimes there might be missing datapoints, which I would like to be made aware of. I was thinking that what I want is something like LineSeries, but allowing discontinuities. For instance, such that I can specify a number (or a timespan in my case), and when two consecutive datapoints are further apart than that, no line would be drawn between them. I assume that this is not already a part of OxyPlot, but is it possible for me to implement? I have no idea where to start.
↧
New Post: Discontinuous LineSeries
Try to add a
DataPoint.Undefined
or set one of the coordinates to NaN
. This should create a break in the line. Also see the BrokenLineStyle
and BrokenLineColor
properties if you want to show a line where the break is.↧
New Post: Can't get OxyPlot.XamarinAndroid working.
StyleCop is a prerequisite to build the OxyPlot core library (but it is not needed to use the library).
↧
↧
New Post: Drag & Drop
- WPF? I think this must be done using the drag/drop features in WPF, I don't think the PlotController can help you here.
- Buttons must be in an overlay, they are not supported in the plot model. See Source\Examples\WPF\WpfExamples\Examples\OverlayDemo
- The tracker should work with many LineSeries. The
PlotModel
has aHitTest
method you can use to do hit testing.
↧
New Post: Discontinuous LineSeries
Yeah, I thought of that. But there is no way to achieve this without adding a lot of NaNs? Like writing a new Series-class?
↧
New Post: Customizing the selected area annotation
I'm using the WPF version and I want to be able to customize (color and border) of the resize annotation which is displayed when I hold down the mouse button and drag over an area in the plot.
Is this possible, and if so is there an example for it?
thanks
Ollie.
Is this possible, and if so is there an example for it?
thanks
Ollie.
↧
New Post: ArrowAnnotations color
Hello) Can anybody help me? I' m using oxyPlot for my wpf project, and i'm trying to display a lot of arrows with different colors.
Thanks
var arrow = new ArrowAnnotation();
arrow .Text = number.ToString();
if (number < 2)
arrow .Color = OxyColors.Green;
else
arrow .Color = OxyColors.Red;
arrow.StartPoint = point + 5;
arrow.EndPoint = point;
arrow.YAxisKey = "Spread";
SpreadModel.Annotations.Add(arrow);
The variable - number is always different, but arrows are always the same color(depends of what number was the last). Thanks
↧
↧
New Post: Can't get OxyPlot.XamarinAndroid working.
Hi,
as is said i removed it before building the library and it worked.
I may have found a bug, but I'm not sure if it really is one or I'm just don't use it right.
In my project I have a ColumnSeries and i put alot of ColumnItems in it (~50) and it should start from a desired position with the CategoryAxis.StartPosition property there is nothing drawn in the PlotModel. It actually deletes the hole CategoryAxis. I need to set it to an explicit value from the items i get. I need to show data between specific ages (from 40 to 95) then i need to let it start from 40.
It would be good if the CategoryAxis labels could be invisible, with the amount of ColumnItems i have it's looks really ugly, because they're overlaping. Or something like showing every fifth position.
Btw: Great Library, it's really really powerful. Excellent work.
as is said i removed it before building the library and it worked.
I may have found a bug, but I'm not sure if it really is one or I'm just don't use it right.
In my project I have a ColumnSeries and i put alot of ColumnItems in it (~50) and it should start from a desired position with the CategoryAxis.StartPosition property there is nothing drawn in the PlotModel. It actually deletes the hole CategoryAxis. I need to set it to an explicit value from the items i get. I need to show data between specific ages (from 40 to 95) then i need to let it start from 40.
It would be good if the CategoryAxis labels could be invisible, with the amount of ColumnItems i have it's looks really ugly, because they're overlaping. Or something like showing every fifth position.
Btw: Great Library, it's really really powerful. Excellent work.
↧
New Post: Drawing Toolbar Example
Scratch the idea of allowing the devs to add series and axes through the designer, after talking to the devs that'll be using the control and thinking about it, figured it'd be best to just have methods to handle it.
Been looking myself, but you wouldn't happen to have any good resources on pattern implementation for custom user controls in C#? Or I guess if it's even needed/recommended for user controls? Just going off a book a co worker let my borrow and various msdn posts.
Been looking myself, but you wouldn't happen to have any good resources on pattern implementation for custom user controls in C#? Or I guess if it's even needed/recommended for user controls? Just going off a book a co worker let my borrow and various msdn posts.
↧
New Post: Methods are missing on OxyPlot.Wpf when using NuGet
Hi everbody,
I just started working with OxyPlot on my WPF project. So the first thing that I noticed is that when I import OxyPlot.Core and OxyPlot.Wpf using NuGet there are some methods missing, e.g. the method RefreshPlot(bool), but there are even more missing. I found another OxyPlot DLL on GitHub where these methods are included. Of course I can use this DLL but I just want to ask if I am doing anything wrong importing this references? Or why are some methods missing when I import the OxyPlot references?
Thanks to everybody in advance!!!
I just started working with OxyPlot on my WPF project. So the first thing that I noticed is that when I import OxyPlot.Core and OxyPlot.Wpf using NuGet there are some methods missing, e.g. the method RefreshPlot(bool), but there are even more missing. I found another OxyPlot DLL on GitHub where these methods are included. Of course I can use this DLL but I just want to ask if I am doing anything wrong importing this references? Or why are some methods missing when I import the OxyPlot references?
Thanks to everybody in advance!!!
↧