Hi Team,
I have placed a marker template for graph as per the below mentioned way.The scale on y axis is not mentioned .For maximum value entry the marker template is not showing up with value.
Any suggestions on this??
Thanks in advance for your awesome support.
Regards,
Sridhar
Hi Rob,
Thanks for your quick response.
I was able to fix the issue by placing dynamic maximum value for interval as mentioned below
private void Chart_OnLoaded(object sender, RoutedEventArgs e) { var dataContext=(ObservableCollection<ReportDistributionGraphUI>) new System.Collections.Generic.List<Infragistics.Controls.Charts.Axis>(((Infragistics.Controls.Charts.XamDataChart) e.OriginalSource).Axes)[0].DataContext ; if (dataContext != null) { var scaleYAxis = 0; var maxScaleIndex = Convert.ToInt32(dataContext.Select(y => y.DataDensityValue).Max()); var minScaleIndex = Convert.ToInt32(dataContext.Select(y => y.NormalizedUpdateRate).Max()); scaleYAxis = (maxScaleIndex > minScaleIndex ? maxScaleIndex : minScaleIndex)+5; ((Infragistics.Controls.Charts.NumericAxisBase) new System.Collections.Generic.List<Infragistics.Controls.Charts.Axis>( ((Infragistics.Controls.Charts.XamDataChart)e.OriginalSource).Axes)[1]).MaximumValue = scaleYAxis;
} }
Hello Sridhar,
The marker template doesn't show up because the template is rendered above the top of the column and the top of the column is at the top edge of the chart so the marker is out of view. In order to see it you will need to increase the maximum such that the highest value in your data will not render at the very top of the chart. Either that or adjust the Margin of the template to push the content down into view. I recommend just updating the Y axis maximum to be slightly higher than your data. If you leave this value blank, the chart will do it for you.