MsChart<4.1> 雷达图Radar Chart

 雷达图(只有一个产品时):

将Series1的Color=“Transparent”,设置为透明,Or是整个区域的颜色。是一个产品的趋势时候还无所谓,如果是两个产品的前面的就会覆盖后面的趋势图。

HTML
 1 <asp:Chart ID="Chart3" runat="server" Width="768px" Height="600px" BackColor="WhiteSmoke" BackSecondaryColor="AliceBlue" BorderlineDashStyle="Solid" BorderlineColor="Gray" BackGradientStyle="DiagonalLeft">
2 <Series>
3 <asp:Series Name="Series1" Color="Transparent" BorderColor="#0066FF" BorderWidth="2"></asp:Series>
4 </Series>
5 <ChartAreas>
6 <asp:ChartArea Name="ChartArea1">
7 <AxisY>
8 <MajorGrid LineColor="#999999" LineDashStyle="Solid" />
9 </AxisY>
10 <AxisX>
11 <MajorGrid LineColor="#999999" LineDashStyle="Solid" />
12 <LabelStyle Font="Microsoft Sans Serif, 8pt" />
13 </AxisX>
14 </asp:ChartArea>
15 </ChartAreas>
16 </asp:Chart>

后台代码:

View Code
1  Chart3.Series["Series1"].Points.DataBind(dt.DefaultView, "Feature", "FeatureScore", "LegendText=Feature,YValues=FeatureScore,ToolTip=FeatureScore");
2 Chart3.Series["Series1"].ChartType = SeriesChartType.Radar;
3 Chart3.Series["Series1"].IsValueShownAsLabel = true;
4 Chart3.DataBind();

 

posted @ 2011-12-12 16:00  eva.xiao  阅读(3402)  评论(0编辑  收藏  举报