This is how my chart looks when I use "chart.Axis.X.Margin.Near.Value = 0;". I want to have a little space between the Y axis and the data column, so I put in "chart.Axis.X.Margin.Near.Value = 3;". Now my chart looks like this:
I get the space between the column and the Y-axis, but there is an undesirable gap in the X-axis.
Any suggestions for a resolution?
private void Chart_FillSceneGraph(object sender, FillSceneGraphEventArgs e) { Axis yAxis = e.Grid["Y"] as Axis; foreach (Primitive currentPrimitive in e.SceneGraph) { Line l = currentPrimitive as Line; if (l != null && l.p1.Y == l.p2.Y) { // this should be the x axis line l.p1.X = yAxis.startPoint.X; } } }
I have the same problem. In general I would like my columns to have the labels centered under them, and to have some space to the left of the first column.