MSChart和填充雷达图

时间:2014-07-12 00:37:34

标签: c# asp.net graph mschart

任何人都可以告诉我如何做一个"填充雷达"使用MSChart的图表?我能够创建我的图表,一切都很好,但我想创建像Excel一样的F Filled Radar,而不是普通的雷达。

我搜索过高低,但找不到任何对填充雷达图的参考。

感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

Sample Environment for MSChart有一个例子:

// Populate series data
double[]    yValues = {65.62, 75.54, 60.45, 34.73, 85.42, 55.9, 63.6, 55.2, 77.1};
string[]    xValues = {"France", "Canada", "Germany", "USA", "Italy", "Spain", "Russia", "Sweden", "Japan"};
chart1.Series["Default"].Points.DataBindXY(xValues, yValues);

// Set radar chart type
chart1.Series["Default"].ChartType = SeriesChartType.Radar;

// Set radar chart style (Area, Line or Marker)
chart1.Series["Default"]["RadarDrawingStyle"] = "Area";

// Set circular area drawing style (Circle or Polygon)
chart1.Series["Default"]["AreaDrawingStyle"] = "Polygon";

// Set labels style (Auto, Horizontal, Circular or Radial)
chart1.Series["Default"]["CircularLabelsStyle"] = "Horizontal";

// Show as 3D
chart1.ChartAreas["Default"].Area3DStyle.Enable3D = true;

其中呈现以下图像:

Radar Chart