Hi
I a have XamDataChart connected to a flat data source (i am using mvvm to bind the model to the data source) the charts and the pivot grid works fine . i am looking for a way to add Accumulation line to the chart ? i added the following code
<ig:XamDataChart.Series> <ig:AccumulationDistributionIndicator NegativeBrush="Red" Brush="Green" Thickness="3" TrendLineBrush="DodgerBlue" TrendLineThickness="3" TrendLineType="ModifiedAverage" TrendLinePeriod="5" XAxis="{Binding ElementName=xmYAxis1, Mode=OneWay}" YAxis="{Binding ElementName=olapXAxis, Mode=OneWay}" ItemsSource="{Binding}" OpenMemberPath="Open" CloseMemberPath="Close" HighMemberPath="High" LowMemberPath="Low"> </ig:AccumulationDistributionIndicator> </ig:XamDataChart.Series>
it adds the line to the legend and not displaying the line .is there away to achieve that and combine OlapXAxis with other Series like LineSeries ?
this is the markup for the chart.
<ig:XamDataChart MinHeight="500" Legend="{Binding ElementName=xmLegend}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" x:Name="xmOlapDataChart" VerticalZoombarVisibility="Visible" VerticalZoomable="True" HorizontalZoombarVisibility="Visible" HorizontalZoomable="True"> <ig:XamDataChart.Axes> <charts:OlapXAxis x:Name="olapXAxis" DataSource="{Binding DataSource}" OlapAxisSource="Columns" DefaultSeries="ColumnSeries" YAxis="{Binding ElementName=xmYAxis1}"/> <ig:NumericYAxis x:Name="xmYAxis1" MinimumValue="0" /> </ig:XamDataChart.Axes> </ig:XamDataChart>
Thanks Amir
Hello,
Thank you for your post. I have been looking into it and I can suggest you set the OlapXAxis’ DefaultSeries Property to LineSeries in order to have line series. As for the Accumulation line I can say that currently it cannot be combined with OlapXAxis, but if you want I can log a product idea on your behalf.
Looking forward for your reply.
If i set the OlapXAxis’ DefaultSeries Property to LineSeries i get lines insted off columns .
i need to combine line with column , i saw in samples that it can be achieved view code .
since i am working with MVVM i prefer it to be in xaml,
is there away set the DefaultSeries Property to ColumnSeries and still add LineSeries for a pre calculated Accumulation for each Measure
in the flatDataSource
and then add that to the chart in xaml (or even code behind of the page )?
Thanks
Hello Amir,
As I said in previous post the AccumulationLine is not compatible with OlapXAxis and you are not able to combine them at the moment, but if you want I can log Product idea for this.