Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all 2061 articles
Browse latest View live

Closed Unassigned: Text alignment within PolygonAnnotation [10182]

$
0
0
Is it possible to set the alignment of the text within a PolygonAnnotation?

I've been looking through the documentation, but can't find anything.

I use a PolygonAnnotation to overlay a ScatterSeries, but unfortunately the describing text appears right where the most interesting points are.

I'm thinking along the line of: HorizontalTextAlignment="Left" etc.

Source code checked in, #b4338fdfff9e

$
0
0
#10185: BarSeries/ColumnSeries - fix issue when setting ItemsSource to a list of ColumnItem/BarItem. Refactoring to make it consistent with DataPointSeries.

Closed Unassigned: ColumnSeries/BarSeries without CategoryAxis [10185]

$
0
0
ColumnSeries/BarSeries do not show up when CategoryAxis is not defined

https://oxyplot.codeplex.com/discussions/542762

New Post: ColumnSeries

$
0
0
The issue should be solved. There was a bug when setting ItemsSource to a list of ColumnItem/BarItem...

New Post: HeatMapSeries Update Bug

$
0
0
I forgot this was already implemented. Right, when the image = null the image will be regenerated next time the heatmapseries is rendered. Does this solve your problem? Remember to invalidate both the HeatMapSeries and the PlotModel.

New Post: NuGet status for OxyPlot.Metro package?

$
0
0
  1. No, it is not relying on any 8.1 functionality. The build machine only has VS 2013 installed and I am worried that it will be difficult to build for 8.0 there. If anyone really needs support for 8.0, please add a request in the issue tracker.

Source code checked in, #ef83106d0fba

$
0
0
Fix compilation warnings (file headers, tabs, spelling)

Commented Unassigned: ScatterSeries and LinearColorAxis on the same plot [10184]

$
0
0
Hey Objo, Great software - I really love using OxyPlot.

I've run into an issue where I can't plot a ScatterSeries over a HeatMapSeries - and it seems to hinge on LinearColorAxis. For example, this code happily plots a scatter series;

```

var scatterSeries = new ScatterSeries();
for (var i = 0; i < npoints; i++)
scatterSeries.Points.Add(new ScatterPoint((double)i / npoints, random.NextDouble()));
plotModel.Series.Add(scatterSeries);

```
and this plots a line series
```
var lineSeries = new LineSeries();
for (var i = 0; i < npoints; i++)
lineSeries.Points.Add(new DataPoint((double)i / npoints, random.NextDouble()));
plotModel.Series.Add(lineSeries)
```
but adding
```
var hmLegendAxis = new LinearColorAxis();
plotModel.Axes.Add(hmLegendAxis);
```
(for the HeatMapSeries - before or after the scatter plot code) prevents the scatter plot being drawn, but not the line plot. I can post a full code excerpt if this doesn't make sense.

Thanks, Dan

Comments: I modified the method that resolves the color axis. If the `ColorAxisKey` is set but not found, no color axis is used. Try to set `ColorAxisKey = string.Empty` in the scatterSeries in your code. I added your example under "Closed issues" and added another example "Two ScatterSeries" under "ScatterSeries". Thanks for reporting the issue!

Closed Unassigned: ScatterSeries and LinearColorAxis on the same plot [10184]

$
0
0
Hey Objo, Great software - I really love using OxyPlot.

I've run into an issue where I can't plot a ScatterSeries over a HeatMapSeries - and it seems to hinge on LinearColorAxis. For example, this code happily plots a scatter series;

```

var scatterSeries = new ScatterSeries();
for (var i = 0; i < npoints; i++)
scatterSeries.Points.Add(new ScatterPoint((double)i / npoints, random.NextDouble()));
plotModel.Series.Add(scatterSeries);

```
and this plots a line series
```
var lineSeries = new LineSeries();
for (var i = 0; i < npoints; i++)
lineSeries.Points.Add(new DataPoint((double)i / npoints, random.NextDouble()));
plotModel.Series.Add(lineSeries)
```
but adding
```
var hmLegendAxis = new LinearColorAxis();
plotModel.Axes.Add(hmLegendAxis);
```
(for the HeatMapSeries - before or after the scatter plot code) prevents the scatter plot being drawn, but not the line plot. I can post a full code excerpt if this doesn't make sense.

Thanks, Dan

Commented Unassigned: WPF program on Windows XP [10183]

$
0
0
I use OxyPlot chart at my WPF program.
And build it will .Net 4.0

It works well on windows 7 and windows 8.1.
But it can not run at XP.
Comments: What does can not run mean? Exception? Any error message?

Commented Unassigned: Issue with binding LineSeries to dynamic objects [10181]

$
0
0
When binding a LineSeries to an object that implements ICustomTypeDescriptor, LineSeries can not find dynamic properties set in DataFieldX and DataFieldY. It is because you are using GetType() of objects in ReflectionHelper class. To overcome this problem, you can correct that code like this:

```
public static void FillList(List<DataPoint> target, IEnumerable itemsSource, string dataFieldX, string dataFieldY)
{
PropertyDescriptor px = null;
PropertyDescriptor py = null;
Type t = null;

foreach (var o in itemsSource)
{
if (pix == null || o.GetType() != t)
{
t = o.GetType();
var properties = TypeDescriptor.GetProperties(o);
px = properties(dataFieldX);
py = properties(dataFieldY);
if (px == null)
{
throw new InvalidOperationException(
string.Format("Could not find data field {0} on type {1}", dataFieldX, t));
}

if (py == null)
{
throw new InvalidOperationException(
string.Format("Could not find data field {0} on type {1}", dataFieldY, t));
}
}

double x = Axis.ToDouble(px.GetValue(o));
double y = Axis.ToDouble(py.GetValue(o));

var pp = new DataPoint(x, y);
target.Add(pp);
}
}

```
Comments: I don't think `TypeDescriptor` is available in PCL. Are there other ways to reflect on a dynamic object?

Closed Unassigned: Memory Leak in LineSeries [10151]

$
0
0
As described in this discussion:
https://oxyplot.codeplex.com/discussions/532576#post1215810

When LineSeries is bound to rapidly changing data, it can be observed that stale data which is no longer displayed is not being properly garbage collected. This leak is independent of the storage class that is used in the view model layer; the one test case that avoided the memory leak was by binding the line series to an observable collection, and clearing the observable collection prior to each update, however this process is expected to be extremely inefficient.

The attached project is equivalent to the usage within my application, and exhibits the leak. Eventually, the application should throw an OutOfMemoryException (typically within a few hours), although the leak can be observed rather quickly from a memory profiler.
Comments: Corrected in client code

Source code checked in, #9c0a4b30342f

New Post: ColumnSeries

$
0
0
Hi objo,

thank you!

Where to download the fixed version? The current recommended download is still the one from the first of march.

Thanks,
mirola

New Post: Last axis label of line graph is missing.

$
0
0
When I plot a line series graph in winforms, the last label in the x-axis is getting missed. When panning is done then it appears otherwise its not being shown. Could you help us in resolving this issue.

Created Unassigned: X-Axis in a Line Series with datetime axis is not displaying first and last axis label. [10186]

$
0
0
Hi,
I have generated a line series graph that has datetime axis, when I try to generate the graph for the dates that doesn't have hours(i.e., zero hours it means the starting of the day) for example: 01-April-2014 00:00:00 to 15-April-2014 00:00:00 it could able to plot it with the starting datetime axis label and ending datetime axis label. If I set the dates with hours say like: 01-April-2014 16:00:00 to 15-April-2014 16:00:00, starting datetime axis label and ending datetime axis label are not being shown in the graph. I have attached an image to this issue. Please suggest how this can be solved.

New Post: AngleAxis labels

$
0
0
I would like to have 0 degrees at the bottom of the polar plot (Example here, don't mind E and W). I've been playing with StartAngle and EndAgnle but I can't work this out. Is this even possible?

This is the code:
            var angleAxis = new AngleAxis();
            angleAxis.MajorStep = 45;
            angleAxis.Minimum = -180;
            angleAxis.Maximum = 180;
            angleAxis.MinorStep = 9;
            plotModel.Axes.Add(angleAxis);
Everything is almost ok with this, but 0 degrees are postion at left and 180 at right, I want 0 to be bottom and 180 top.

New Post: Displaying message and axes on mouse click on the line serie

$
0
0
Thanks for your answer. I understand you are gently letting people know that some help would be greatful.
I understand that.
I have myself 2 kids and that is my first time using oxyplot.
Be ensured that by time passing by, if I am getting experienced, I will help the best I can.

Source code checked in, #0378942ea44f

Source code checked in, #6aaa4ddb41bb

$
0
0
Axis: mark ShowMinorTicks obsolete Wpf.Axis: remove ShowMinorTicks
Viewing all 2061 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>