2010-07-04 56 views

回答

1

在MS圖表控制的情況下,如果使用堆積條形圖/堆積柱類型,可以組不同系列成單獨的基團通過將StackedGroupName自定義屬性

// Set the first two series to be grouped into Group1 
Chart1.Series["LightBlue"]["StackedGroupName"] = "Group1"; 
Chart1.Series["Gold"]["StackedGroupName"] = "Group1"; 

如果下載MS圖表樣本(http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=4418),您可以在 /WebSamples/ChartTypes/BarColumnCharts/Stacked/StackedChart.aspx - 分組選項中看到與要查找的內容非常相似的內容。

希望這會有所幫助!