62,074
社区成员
发帖
与我相关
我的任务
分享
// create a ChartSpace object
ChartSpace laySpace = new ChartSpaceClass();
//add chart to laySpace object
ChChart InsertChart = (ChChart)laySpace.Charts.Add(0);
// column clustered chart
InsertChart.Type = ChartChartTypeEnum.chChartTypePie;
// if this chart need legend
InsertChart.HasLegend = true;
// title of the chart
InsertChart.HasTitle = true;
InsertChart.Title.Caption = sTitle;