hi,
how to show data labels vertically ,its useful when the data value is larger .other chart vendor has this facility.I will send you image of one such chart
set axis label orientation to VerticalLeftFacing/VerticalRightFacing
ultraChart1.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing
no i dont want axis label to set vertically ,in fact i want to set charttext orientation of chart
ChartText doesn't have support for vertical orientation. However, Annotations can be vertically oriented. But I think the best way to do this is through a FillSceneGraph event handler:
using Infragistics.UltraChart.Resources.Appearance;using Infragistics.UltraChart.Core.Primitives;using Infragistics.UltraChart.Shared.Events;using Infragistics.UltraChart.Shared.Styles;
private void ultraChart1_FillSceneGraph(object sender, FillSceneGraphEventArgs e){ List<Text> newTextPrimitives = new List<Text>(); LabelStyle labelStyle = new LabelStyle(); labelStyle.Orientation = TextOrientation.VerticalLeftFacing; foreach (Primitive currentPrimitive in e.SceneGraph) { Box currentBox = currentPrimitive as Box; if (currentBox != null && currentBox.Row > -1 && currentBox.Column > -1) { // this is a column in the column chart double currentDataValue = Convert.ToDouble(currentBox.Value); Text newTextPrimitive = new Text(currentBox.rect, currentDataValue.ToString("0.0"), labelStyle); newTextPrimitives.Add(newTextPrimitive); } } e.SceneGraph.AddRange(newTextPrimitives.ToArray());}