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
360
Distance between Axis and Label
posted

Hello,

I'm trying to increase the distance between the Y Axis and the axis label in a bar chart.

I tried setting the Axis.Y.Margin.Far and the Axis.Y.Labels.Layout.Padding properties with no success...

Can you help me with this?

 

Thank you in advance


Parents
No Data
Reply
  • 53790
    posted

    Hi,

    One possible approach could be if you are using FillSceneGraph event.  For example:

    private void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)

    {

        TextList.Clear();

        foreach (Primitive pr in e.SceneGraph)

        {

     

            if (pr.GetType() == typeof(Text) && pr.Row != -1 && pr.Column != -1)

            {

                ((Text)pr).Visible = false;

                Text textLable = new Text(new Point(((Text)pr).bounds.X +100, ((Text)pr).bounds.Y + 5), "My custom text + " + ((Text)pr).GetTextString());

                TextList.Add(textLable);

            }

        }

        foreach (var item in TextList.Distinct())

            e.SceneGraph.Add(item);

    }

    Please take a look at the attached video and sample for more details and let me know if you have any questions.

    Regards

Children