But for column chart
i want lable behavior setting auto bz no lables cut
but after this setting no lables display for large set
The description is not quite clear to me. Can you please clarify it?
If max >= 0 And max <= 10
Then
ElseIf max >= 11 And max <= 20
ElseIf max >= 21 And max <= 40
ElseIf max >= 41 And max <= 100
Else
UltraChart1.Axis.Y.TickmarkInterval = (max / 10) - ((max / 10)
Mod 10)
End If
''' set x axis
UltraChart1.Axis.X.Labels.SeriesLabels.Orientation = XDW.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing
Me.UltraChart1.Axis.X.Extent = 180
Me.UltraChart1.Axis.Y.Extent = 80
UltraChart1.ColumnChart.ColumnSpacing = 0
Me.UltraChart1.Tooltips.Overflow = XDW.UltraChart.Shared.Styles.TooltipOverflow.ChartArea
UltraChart1.Axis.Y.Visible = True
UltraChart1.Axis.X.Visible =
UltraChart1.Axis.X.ScrollScale.Scale = 1
UltraChart1.Axis.Y.ScrollScale.Scale = 1
UltraChart1.DataSource = dt1
UltraChart1.DataBind()
'''''''''''''''' Datatable dt1 has 3 columns
if rows greater than 60 den x axis lables not visible when we scroll it
UltraChart1.Axis.X.TickmarkStyle = XDW.UltraChart.[Shared].Styles.AxisTickStyle.Smart
UltraChart1.Axis.X.RangeType = XDW.UltraChart.Shared.Styles.AxisRangeType.Automatic
UltraChart1.Axis.X.NumericAxisType = XDW.UltraChart.Shared.Styles.NumericAxisType.Linear
UltraChart1.Axis.X.Labels.ItemFormat = XDW.UltraChart.Shared.Styles.AxisItemLabelFormat.ItemLabel
UltraChart1.Axis.X.Labels.ItemFormat = XDW.UltraChart.Shared.Styles.AxisItemLabelFormat.None
UltraChart1.Axis.Y.NumericAxisType = XDW.UltraChart.Shared.Styles.NumericAxisType.Linear
UltraChart1.Axis.Y.RangeMin = 0
UltraChart1.Axis.Y.RangeMax = max
UltraChart1.Axis.Y.TickmarkInterval = 10
UltraChart1.Axis.Y.TickmarkInterval = 5
UltraChart1.Axis.Y.TickmarkInterval = 3
UltraChart1.Axis.Y.TickmarkInterval = 1
UltraChart1.ChartType = ChartType.ColumnChart
UltraChart1.Axis.Y.RangeType = XDW.UltraChart.Shared.Styles.AxisRangeType.Custom
UltraChart1.Axis.Y.TickmarkStyle = XDW.UltraChart.Shared.Styles.AxisTickStyle.DataInterval
This code is not helpfull since I don't know what you are trying to do. Can you clarify your description as to what you are trying to achieve, and what the issue is? You are setting the Tickmark intervals to 4 different values, and I don't know what your DataSource looks like.
If you can provide a little more detail information I will see if I can recreate your scenario and look into it.
here no matter of tickmark,
i just want axis lables visible when i zoom it using scroll
in the stackcolumnchart when i scroll for large set den axis lables visible when scroll
but not working for columnchart
If the tickmarks don't matter, then you can set the behavior to none to show the labels. The behavior setting prevents the label collision when too many points are plotted. Here is how to set it.
ultraChart1.Axis.X.Labels.Layout.Behavior = AxisLabelLayoutBehaviors.None;
Its not work
Here is a code snippet using ColumnChart with 100 points, set with Tickmark interval of 10, TickmarkStyle of 'DataInterval', and TickmarkType of 'Ticks'.
this.ultraChart1.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.ColumnChart;
NumericSeries ser = new NumericSeries(); Random rand = new Random();
for (int i = 0; i < 100; i++) { ser.Points.Add(new NumericDataPoint(rand.Next( 0, 100), "P" + i, false)); } ultraChart1.Series.Add(ser);
this.ultraChart1.Axis.X.Labels.SeriesLabels.Format = AxisSeriesLabelFormat.None; this.ultraChart1.Axis.X.Labels.ItemFormat = AxisItemLabelFormat.ItemLabel; this.ultraChart1.Axis.X.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
this.ultraChart1.ColumnChart.SeriesSpacing = 0;
this.ultraChart1.Axis.X.ScrollScale.Visible = true; this.ultraChart1.Axis.X.ScrollScale.Scale = 1; this.ultraChart1.Axis.Y.ScrollScale.Visible = true; this.ultraChart1.Axis.Y.ScrollScale.Scale = 1;
this.ultraChart1.Axis.X.RangeType = AxisRangeType.Custom; this.ultraChart1.Axis.X.RangeMin = 0; this.ultraChart1.Axis.X.RangeMax = 100;
this.ultraChart1.Axis.X.TickmarkInterval = 10; this.ultraChart1.Axis.X.TickmarkIntervalType = AxisIntervalType.Ticks; this.ultraChart1.Axis.X.TickmarkStyle = AxisTickStyle.DataInterval;
I will open a case and send a you a sample so we can work together on a sample to recreate the behavior you have experenced.
I will send you an email notification shortly as I open the case.
OS is XP
its happen ,
plz help me i m stuck
Thank you for the information.
Although you did not specify the operating system, but I have tested this on XP and Vista, both with user control and main form, and I haven't seen the behavior you have described.
- What Operating system and platform (32-bit, 64-bit) do you have? - 32bit
- What version and specific build of the control you are using? - 2007 Volume 2 & Build Version: 7.3.20073.38
- What type of data source you have bound to the chart? datatable with in this 4 columns & multiple rows
- Is the chart renderred directly on the form, or from a user control? both , some cases directly on form & from user control
Can you provide more information?
- What Operating system and platform (32-bit, 64-bit) do you have?
- What version and specific build of the control you are using?
- What type of data source you have bound to the chart?
- Is the chart renderred directly on the form, or from a user control?