Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
229
repeated values on Y axis
posted

 Hi all,

sometimes(it happens sometimes) I get repeated values on Y axis(ColumnChart3D), like this:

8 (maxval)

4

3

2

1 (minval)

Here my code snippet for axis customization(maxval and minval are dynamic-calculated values): 

[ASPX page] 

<Y Visible="True">
<Labels ItemFormatString="&lt;DATA_VALUE:#&gt;" VerticalAlign="Center" Font="Verdana, 7pt" FontColor="#C8C8C8" Orientation="Horizontal" Visible="True" HorizontalAlign="Far" />
<Margin>
<Far MarginType="Percentage" Value="0"></Far>
<Near MarginType="Percentage" Value="0"></Near>
</Margin>
</Y>

[CS page]

this.MyChart.Axis.Y.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Custom;
this.MyChart.Axis.Y.RangeMin = [calculated min value, i.e. 8];
this.MyChart.Axis.Y.RangeMax = [calculated max value, i.e. 1];
this.MyChart.Axis.Y.NumericAxisType = Infragistics.UltraChart.Shared.Styles.NumericAxisType.Linear;
this.MyChart.Axis.Y.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.DataInterval;
this.MyChart.Axis.Y.TickmarkIntervalType = Infragistics.UltraChart.Shared.Styles.AxisIntervalType.Ticks;
this.MyChart.Axis.Y.TickmarkInterval = 2;

Something wrong/missing in the code? Any ideas? 

Thanks in advance