//创建表空间
ChartSpace
chartSpace = new ChartSpaceClass();
//填加图表
ChChart
chChart = chartSpace.Charts.Add(0);
//设定雷达图
chChart.Type = ChartChartTypeEnum.chChartTypeRadarLine;
//标题
chChart.HasTitle = true;
chChart.HasLegend = true;
chChart.Title.Caption = "test";
chChart.Legend.Border.DashStyle = ChartLineDashStyleEnum.chLineDash;
chChart.Legend.Position = ChartLegendPositionEnum.chLegendPositionRight;
chChart.Axes[1].Scaling.Minimum = 0;
chChart.Axes[1].Scaling.Maximum = 5;
//值设定
string category = "category 1, category 2, category 3";
string value = "4, 4, 3";
chChart.SeriesCollection.Add(0);
//传值
chChart.SeriesCollection[0].SetData(ChartDimensionsEnum.chDimCategories,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, category);
chChart.SeriesCollection[0].SetData(ChartDimensionsEnum.chDimValues,
(int)ChartSpecialDataSourcesEnum.chDataLiteral, value);
Response.ContentType = "image/gif";
Response.BinaryWrite((byte[])chartSpace.GetPicture("gif", 600, 300));
Response.End();