图表栏前 space

Some space before chart bar

我的代码有三个小节,我需要在它们之前做一些 space:它应该以某个特定值开头,而不是 0;
What I have now
What I want to get (example)

这是我的代码:

        var ch = new Chart();
        ch.Series.Clear();

        var cha = new ChartArea();
        ch.ChartAreas.Add(cha);

        var datePlanSeries = new Series {ChartType = SeriesChartType.Bar };
        var dateAgreedSeries = new Series { ChartType = SeriesChartType.Bar };
        var dateFactSeries = new Series { ChartType = SeriesChartType.Bar };

        datePlanSeries.Points.AddY(durationPlan);
        dateAgreedSeries.Points.AddY(durationAgreed);
        dateFactSeries.Points.AddY(durationFact);

        // And what should I add to each series to "move" it?

        ch.Series.Add(datePlanSeries);
        ch.Series.Add(dateAgreedSeries);
        ch.Series.Add(dateFactSeries);

有一个名为 Range Bar 的图表类型。每个数据点需要 2 Y-values,想想 from-Y 和 to-Y。所以而不是:

var datePlanSeries = new Series {ChartType = SeriesChartType.Bar };

...

datePlanSeries.Points.AddY(durationPlan);

您使用:

var datePlanSeries = new Series { ChartType = SeriesChartType.RangeBar };

...

datePlanSeries.Points.Add(1, 10); // from Y = 1, to Y = 10