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
Hi pethanin,
If you need any further assistance on the matter please do not hesitate to ask.
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.