Search code examples
c#asp.netdotnetcharting

Dot Net Charting - Stack two series, leave the other as normal bar chart


I have a dotnetcharting graph with 3 series. I can change the style of the whole graph to stacked.

ChartIn.YAxis.Scale = Scale.Stacked;

But I want to just stack two out of the three series. So that for each there are two bars combined into one stack with another whole bar next to it.

Can this be done?


Solution

  • In the end I made the data I wanted separated from the stack into a separate filled line series. Not ideal but it looked fine.

    ChartThree.SeriesCollection[3].Type = SeriesType.AreaLine;