Hi,
When I created the FastBandRenderableSeries type, I encountered an aliasing problem. When I used AntiAliasing, it still didn’t work.
There is an example of used code:
List<double> xData = GetData("D:\\x.txt");
List<double> yData = GetData("D:\\y.txt");
List<double> y1Data = GetData("D:\\y1.txt");
XyyDataSeries<double, double> splineBanDataSeries = new XyyDataSeries<double, double>();
splineBanDataSeries.Append(xData, yData, y1Data);
var bandSeries = new FastBandRenderableSeries()
{
DataSeries = splineBanDataSeries,
//Name = id,
StrokeThickness = 1,
Fill = Colors.Transparent,
FillY1 = Colors.Transparent,
StrokeY1 = Colors.LightGray,
AntiAliasing = true,
StrokeDashArrayY1 = new double[] { 5, 1 }
};
sciChart.RenderableSeries.Add(bandSeries);
sciChart.ZoomExtents();
Is there any way to correct this error?
Thank you.
- li xiaohang asked 4 months ago
- last edited 4 months ago
-
No, SplineLineRenderableSeries does not support creating a closed area. The ideal result is that two lines are drawn into a closed area. I checked the documentation and only FastBandRenderableSeries can do it. Have you run the example? The closed area shown in the example is what I want. It is needed, but there will be a lot of aliasing in the example.I need to set the line that fills the area, Please tell me how to modify it.
-
The second picture is the correct result we want. The first picture is wrong. Please run our example and tell us how to modify it.
-
Hi Li, Thank you for the clarification. Let’s continue our discussion in the priority support ticket you have also created. We’ll post the update here as soon as we have a working solution. With best regards, Lex S., MSEE, SciChart Technical Support Engineer
- You must login to post comments
Hi Li,
Thanks for your inquiry.
I have noticed the RenderableSeries you refer to doesn’t look like our FastBandRenderableSeries:
https://www.scichart.com/documentation/win/current/webframe.html#The%20Band%20Series%20Type.html
We can recommend taking a look at our custom SplineLineRenderableSeries instead featured in the following example:
https://www.scichart.com/example/wpf-chart/wpf-chart-example-spline-scatter-line-chart/
Is this what you are looking for?
With best regards,
Lex S., MSEE
SciChart Technical Support Engineer
- Lex answered 4 months ago
- You must login to post comments
Please login first to submit.