
Hi
I am not able to get a smooth line, it has descrete steps in it. I have tried with and without aggregation and they are still there. For example, if I use a pure sine wave, you can see the steps:
Without aggregation:
https://www.dropbox.com/s/mzlxk1l5lv5tfgn/Capture5.PNG?dl=0
With aggregation, the line just becomes 'bumpy':
https://www.dropbox.com/s/ceoqy3l70ftx2rd/Capture4.PNG?dl=0
It is as though only certain angles of line can be rendered (integer perhaps?)
code I am using:
Xaml:
<charts:XYChart IsLegendVisible="True" PaddingPercentage="0" LegendHorizontalPosition="LeftInside"
GridLineMajorVisibility="Y" Margin="73,64,36,47">
<charts:XYChart.SeriesStyleSelector>
<charts:SeriesPaletteStyleSelector>
<charts:Palette Kind="Roman"/>
</charts:SeriesPaletteStyleSelector>
</charts:XYChart.SeriesStyleSelector>
<charts:XYChart.YAxes>
<charts:XYDoubleAxis x:Name="yAxis" Position="FarEdge" AreMajorTicksVisible="True" Minimum="0.0" Maximum="80.0" TickMajorInterval="10.0" Title="Stock Value"/>
</charts:XYChart.YAxes>
<charts:LineSeries ItemsSource="{Binding ElementName=CTLiveMainWindow, Path=ChartData1}" YAxis="{Binding ElementName=yAxis}" Description="Cyberdyne" IsAggregationEnabled="True" YPath="Amount" XPath="Index" LineKind="Normal" Name="lineSeries"/>
</charts:XYChart>
c#:
Style style = new System.Windows.Style();
style.Setters.Add(new Setter(Shape.StrokeThicknessProperty, 1.0));
lineSeries.LineStyle = style;
for (int i = 0; i <= 1800; i++)
{
double value = Math.Sin(i / 100.0) * 40.0 + 40.0;
var newSalesData1 = new SalesData(DateTime.Now, value, i);
chartData1.Add(newSalesData1);
}
Thanks
Julian