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
145
how to increase axes length?
posted

Hello friend

 

please help me to increase the length of x-axis in column chart

i have put some margin on the x-axis of near side, so the x-axis is not start from the origin point

but i want to start the x-axis from the origin point 

please help me urgently

 

Thank You

pethanin

  • 37874
    posted

    Hi pethanin,

    If you need any further assistance on the matter please do not hesitate to ask.

  • 37874
    posted

    Hi pethanin,

     

    I suggest that you handle the FillSceneGraph event of the chart. From the event handler you could access the X and Y axes and create a line between their start points:

     

        protected void UltraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)

        {

            IAdvanceAxis xAxis = (IAdvanceAxis)e.Grid["X"];

            IAdvanceAxis yAxis = (IAdvanceAxis)e.Grid["Y"];

     

            Line l = new Line(((Infragistics.UltraChart.Core.Layers.Axis)(yAxis)).axisLineStart, ((Infragistics.UltraChart.Core.Layers.Axis)(xAxis)).axisLineStart);

            e.SceneGraph.Add(l);

        }

     

    Please let me know if this helps.