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
4110
Angled datapoint captions
posted

I have a scatter chart that displays the label values over the data points, however, they overlap. Is there a way to angle them, say at a 45degree angle like the mock-up below? Thanks much.

Parents
No Data
Reply
  • 26458
    Offline posted

    You can try something like this:
    private void ultraChart1_ChartDrawItem(object sender, Infragistics.UltraChart.Shared.Events.ChartDrawItemEventArgs e)
    {
        Text text = e.Primitive as Text;
        if (text != null && text.Path == null)
        {
            text.labelStyle.RotationAngle = 45;
            text.labelStyle.Orientation = TextOrientation.Custom;
        }
    }

    This will rotate the labels inside the chart's plotting are and leave the axis labels untouched.

Children