Hi,
I currently have a column series using the xamdatachart which basically tracks open and close tickets in our sharepoint lists. I was able to create 3 series of observable collections of historical data and binding it to here. There is a requirement to add a new series which is basically a projected number of tickets that will be closed in the current month (May). So what I want to do is make May and future months a stacked column with total open and the "projected closed series"
I couldn't find an examples on how to do this, can someone point me to the right direction.
Also, is there anyway that I can remove the display of all the future series with zeros? (May - Dec)
thanks ahead.
Hello Steven,
You can check the sample in the Samples Browser under xamDataChart / Display - Legends / Legend Item Display Order section, which shows how you can reverse the order of the items in the Legend, which for the moment is your best option.
Thanks for your help. I now have another question.
I understand that the order of the legend is order by the way my series are being added to the xamDataChart.However, looking my example, I combined a stacked column series and column series. Now there's a requirement to change order of the Legend while maintaining the series order in the chart. (see picture example). I need to just move Projected Closed to the bottom.
I was able to find something similar but for a xamWebChart but couldn't apply it to a xamdataCharthttp://ko.infragistics.com/community/forums/p/49819/262641.aspx#262641
Here are my xaml snippets to add each series and the legend. How would I go about doing what seems like a simple thing?many THanks!
<ig:StackedColumnSeries XAxis="{Binding ElementName=xamDemandLogXAxis}" YAxis="{Binding ElementName=xamDemandLogYAxis}" Legend="{Binding ElementName=TitleLegend}" ItemsSource="{Binding}"> <ig:StackedColumnSeries.Series> <ig:StackedFragmentSeries Title="Projected Closed" Brush="#FF2D63C3" ValueMemberPath="ProjectedClosed"> <ig:StackedFragmentSeries.MarkerTemplate> <DataTemplate > <Grid Width="40" Height="30" Margin="0,0,0,10"><TextBlock Text="{Binding Item.ProjectedClosed, Converter={StaticResource ResourceKey=ColumnValue}}" Foreground="Beige" FontSize="12" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Top"></TextBlock></Grid></DataTemplate></ig:StackedFragmentSeries.MarkerTemplate></ig:StackedFragmentSeries>
Legend Snippet
<ig:Legend x:Name="TitleLegend" Content="Legend"
VerticalAlignment="Top" HorizontalAlignment="Right"> </ig:Legend>
Hello Steve,
Thank you for the feedback. I am glad that you have found a solution to your issue. Please do not hesitate to contact us if you have any questions.
nevermind. figured it out right after i posted the question.
using a XamDock.
Thanks Gergana,
I was able to follow your example to get this. however for the null / 0 issue. Sorry if I didn't explain it correctly. my concern was all the zeros showing up in the columns with zeros. I basically had to use a valueconverter to convert zero values to "" blank empty strings. Just wanted to make a mention here for future reference in case someone runs into similar issues.
Now I have a new question. Is there an easier way of putting a Heading on my YNumericAxis ? I was thinking of transposing the heading "Tickets" vertically along the YAxis. (see picture)