Multiple ViewXY Chart Types
Moderator: Queue Moderators
Multiple ViewXY Chart Types
I have a area series displaying some data and I want to display a polygon series on top of it. I have not been able to get any other series besides a area series to show up on the chart while the original area series is being displayed. Is there some sort of setting I am missing?
Regards,
Aaron
Regards,
Aaron
Re: Multiple ViewXY Chart Types
Hi Aaron.
Are your polygon points inside the view? I mean, are you using correct values so that polygon is drawn to visible area? Make sure that polygon series' Behind property is false.
I just tested area/polygon rendering using the demo application and it worked just fine. I copied AddPolygon method from ExamplePolygon to ExampleAreaXY and also copied the first call of AddPolygon and placed it before chart.EndUpdate() in ExampleAreaXY. I modified the points so that it draws a rectangle. Here's a screen capture:
Are your polygon points inside the view? I mean, are you using correct values so that polygon is drawn to visible area? Make sure that polygon series' Behind property is false.
I just tested area/polygon rendering using the demo application and it worked just fine. I copied AddPolygon method from ExamplePolygon to ExampleAreaXY and also copied the first call of AddPolygon and placed it before chart.EndUpdate() in ExampleAreaXY. I modified the points so that it draws a rectangle. Here's a screen capture:
Re: Multiple ViewXY Chart Types
Could it possible be something to do with the amount of points the polygon is created from? Some background on the application I am trying to use this for. I have a set of data in a area series that I am selecting from then I am trying to fit a bell curve shape to a peak in the graph. I can tell that the points I have are correct and located in the view because if I turn on the text to the polygon it shows up right where the polygon I am trying to draw should be located as shown in the attached image.
Here is the same example except I am using a area series to plot the bell curve shape: In the first image the polygon is constructed from about 500 points. My code for adding the polygon is as follows:
Here is the same example except I am using a area series to plot the bell curve shape: In the first image the polygon is constructed from about 500 points. My code for adding the polygon is as follows:
Code: Select all
Color assignedColor = Colors.Red;
PolygonSeries ps = new PolygonSeries(_chart.ViewXY, _chart.ViewXY.XAxes[0], _chart.ViewXY.YAxes[0]);
ps.Fill.Color = assignedColor;
ps.Fill.GradientColor = ChartTools.CalcGradient(assignedColor, Colors.Black, 50);
ps.Title.Visible = true;
ps.Title.Color = ChartTools.CalcGradient(assignedColor, Colors.Black, 80);
ps.Title.Text = "Polygon";
ps.Title.Shadow.Style = TextShadowStyle.HighContrast;
ps.Behind = false;
ps.Points = points.ToArray();
_chart.ViewXY.PolygonSeries.Add(ps);
_chart.InvalidateVisual();
_chart.ViewXY.FitView();
_chart.EndUpdate();
Re: Multiple ViewXY Chart Types
500 points is not a problem. Have you tried without that call to InvalidateVisual method?
Re: Multiple ViewXY Chart Types
I got this to work using lightning chart in a separate project with the same data points, so it appears there is just some small error in the way I am setting up this particular chart.
Re: Multiple ViewXY Chart Types
It seems my problem is that I cannot create a logarithmic y axis and display polygons at the same time. I changed the code above to a linear y axis and it shows the polygon. With a logarithmic axis it will only show the title.text of the polygon. Have you experienced this issue before?
Regards,
Aaron
Regards,
Aaron
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Multiple ViewXY Chart Types
There's a bug in polygons in log axes. We'll make new version asap with the fix. Sorry for the trouble.
LightningChart Support Team, PT
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Multiple ViewXY Chart Types
We've fixed the issue. New version of LightningChart will be available on Monday June 10th at the latest.
LightningChart Support Team, PT
Re: Multiple ViewXY Chart Types
I really appreciate the timely fix. Thanks for your help.
Re: Multiple ViewXY Chart Types
Hello, its the 10th now and I'm wondering where do I go to on arction.com to download updated dlls.
Regards,
Aaron
Regards,
Aaron
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Multiple ViewXY Chart Types
Hi Aaron,
yes, it's 10th, and 5.1.6 is now available.
http://www.arction.com/downloads
Sorry to keep you waiting.
yes, it's 10th, and 5.1.6 is now available.
http://www.arction.com/downloads
Sorry to keep you waiting.
LightningChart Support Team, PT
Re: Multiple ViewXY Chart Types
Downloaded it and its working great. You guys are awesome.