I cant seem to figure out how to adjust the X-Axis labels to display horizontally rather than vertically. I cant even apply an angle to them. No matter what setting I try the x-axis labels never seem to move. Here is my code snippet that applies to the x-axis.
chart.Axis.X.Labels.SeriesLabels.Orientation = TextOrientation.Custom; (also tried TextOrientation.Horizontal) chart.Axis.X.Labels.SeriesLabels.OrientationAngle = 0; chart.Axis.X.Labels.VerticalAlign = StringAlignment.Near;
Hi,
In some cases the Orientation settings have overrided to prevent the labels from
colliding with each other.
Try to using rotate the chart or you can handle ChartDrawItem event to
redraw the labels for a X, Y, Z axis:
Rotating:
this.UltraChart1.Transform3D.YRotation += 10;
Handling ChartDrawItem;
protected void UltraChart1_ChartDrawItem(object sender,
Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e)
{
Text t = e.Primitive as Text;
if (t != null && t.Path != null && t.Path.IndexOf("Grid.Y") != -1)
t.labelStyle.Orientation = TextOrientation.Horizontal;
//t.labelStyle.RotationAngle = -90;
}