mschart 饼图
来源:互联网 发布:mac设置iphone铃声 编辑:程序博客网 时间:2024/04/30 23:52
大家对照线线的样式
前台
<asp:Chart ID="Chart6" BorderlineColor="Green" BorderlineDashStyle="Solid" BorderSkin-BorderColor="Red" BackGradientStyle="TopBottom" BorderlineWidth="1"
runat="server" Palette="None"
PaletteCustomColors="192, 192, 255; Silver" Height="270px">
<legends>
<asp:Legend BorderColor="yellow" BorderDashStyle="Solid" BorderWidth="2" Docking="Bottom" TitleAlignment="Near" Alignment="Center" TitleFont="Trebuchet MS, 14pt" Font="Trebuchet MS, 14pt" Name="Default" LegendStyle="Column"></asp:Legend>
</legends>
<Series>
<asp:Series Name="Default" BorderColor="blue" BorderWidth="1" ChartType="Pie" BackHatchStyle="Percent20">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea BorderDashStyle="Solid" Name="ChartArea1" BorderColor="black" BorderWidth="2">
</asp:ChartArea>
</ChartAreas>
<BorderSkin BorderColor="red" BorderDashStyle="Solid" BorderWidth="2" />
</asp:Chart>
后台
//百分号显示
Chart6.Series["Default"].Label = "#PERCENT{P}";
Chart6.Legends["Default"].Title = "工程总造价: " + "456";
double[] yValues1 = { 40, 50 };
string[] xValues1 = { "已完成", "未完成" };
Chart6.Series["Default"].Points.DataBindXY(xValues1, yValues1);
foreach (DataPoint point in Chart6.Series["Default"].Points)
{
point.LegendText =point.AxisLabel+" "+Chart6.Series["Default"].Label ;
}
//柱图绑定
//数据的绑定还有这个
Chart2.DataSource = ds.Tables[0];
Chart2.Series[Finished].YValueMembers = "TotalMoney";//绑定的列名
Chart2.Series[Unfinished].XValueMember = "score";
- mschart 饼图
- MSChart
- mschart
- MSChart
- MSChart
- mschart
- Mschart
- MSChart
- Mschart学习(MSchart介绍)
- Mschart学习(MSchart介绍)
- MSChart应用
- mschart 控件
- mschart(2)
- MSChart【转】
- mschart示例
- 再探MSCHART
- [MSCHART]柱状图
- Mschart 使用方法
- 在SQL Server Management Studio (SSMS)中使用字体颜色
- android中将静态库链接进动态库成功的例子
- 移除Html标签
- 以谦逊的心态对待每一个人
- rat文件发布
- mschart 饼图
- SqlDataAdapter获取数据,简单的分页
- 五一
- 任何语言都可以用数组,列表或字典来代替选择语句
- W5200-Arduino-以太网-程序库
- 字符集转换函数
- 总结现有的APP推广渠道
- Oracle的OracleDBConsole 不能启动的又一解决新方法
- nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.3: Element 'beans' cannot have