0

我显示了 4 条数据:基本销售、追加销售、取消、无销售

我希望基础销售和追加销售在堆叠列中,取消和无销售在他们自己的未堆叠列中。

这就是我创建系列的方式:

    //--- set base package series
    Series BasePackageSeries = new Series("BasePackageSeries");
    BasePackageSeries.ChartType = SeriesChartType.StackedColumn;
    BasePackageSeries.Color = ColorTranslator.FromHtml("#146c00"); //--- dark green

    //--- set upsell package series
    Series UpsellPackageSeries = new Series("UpsellPackageSeries");
    UpsellPackageSeries.ChartType = SeriesChartType.StackedColumn;
    UpsellPackageSeries.Color = ColorTranslator.FromHtml("#1fa700"); //--- lighter green

    //--- set civ series
    Series CIVSeries = new Series("CIV");
    CIVSeries.ChartType = SeriesChartType.Column;
    CIVSeries.Color = Color.Gold;

    //--- set no sales series
    Series NSSeries = new Series("No Sales");
    NSSeries.ChartType = SeriesChartType.Column;
    NSSeries.Color = Color.Red;

添加后,前 3 个显示为堆叠,而 No Sales 是单独的(可能是因为它太大了)。我想要前 2 个堆叠,最后 2 个自己堆叠。关于如何实现我想要的任何建议?

我通过循环手动生成数据点。如果你需要看,请告诉我。

4

0 回答 0