设置MS Chart Control for .net饼图图例的文本
来源:互联网 发布:淘宝信息管理系统要求 编辑:程序博客网 时间:2024/06/06 09:45
KeywordReplaced BySupports Multiple Y Values Supports Formatting String#VALXX value of the data point.NoYes#VALYY value of the data pointYesYes#SERIESNAMESeries nameNoNo#LABELData point labelNoNo#AXISLABELData point axis labelNoNo#INDEXData point index in the seriesNoYes#PERCENTPercent of the data point Y valueYesYes#LEGENDTEXTSeries or data point legend textNoNo#CUSTOMPROPERTY(XXX)Series or data point XXX custom property value, where XXX is the name of the custom property.NoNo#TOTALTotal of all Y values in the seriesYesYes#AVGAverage of all Y values in the seriesYesYes#MINMinimum of all Y values in the seriesYesYes#MAXMaximum of all Y values in the seriesYesYes#FIRSTY value of the first point in the seriesYesYes#LASTY value of the last point in the seriesYesYes
利用keyword设置饼图上标签显示的格式,如:
chart1.Series[0].Label = "#VALY[#PERCENT]";
这时,标签显示为Y轴值的大小,并且在后面的中括号中会显示其占百分比。
在实际应用中我发现,在不做这个格式化的情况下,图例中默认显示的是X轴的相应名称,然而,一旦做了这个设置,图例显示的竟然和刚才这个标签的值一样了,这显然不是我想要的结果。但是,在legend的属性里却找不到有text,只有Title和name,title是用来设置图例的标题的,name则是用来指定其名称。
后来,在Series下找到一个LegendText属性,可以满足要求,设置如下:
chart1.Series[0].LegendText = "#VALX";
也利用了一个keyword,即设置其为x轴的对应值。
出处:http://blog.csdn.net/gaofeng2000/archive/2009/03/10/3975097.aspx
- 设置MS Chart Control for .net饼图图例的文本
- 设置MS Chart Control for .net饼图图例的文本
- Chart Control for .net 设置饼图label显示格式
- MS Chart Control中keyword的格式化
- MS Chart Control的常用keyword列表
- MS Chart Control: Getting Started
- MS Chart Control的自定义属性(custom attributes)
- WPF for Chart FX最小化图例空间
- C#使用Ms Chart 实现饼图
- chart.js增加图例的简单方法
- Dundas Chart for .NET
- Dundas Chart for .NET
- barplot条形图的图例位置设置
- ASP.NET Chart Control (ASP.NET图表)
- How to set the width of columns?about chart control for .net
- android MPAndroidChart饼图实现图例后加数字或文本(定制图例)
- MS Chart
- chart.js增加图例
- 60个让你吃惊的小常识
- RtlInitEmptyUnicodeString
- ORACLE中客户端连接服务器端常见问题与解决
- ogre1.7官方SVN下载地址
- Oracle DBA 学习与 成长
- 设置MS Chart Control for .net饼图图例的文本
- 使用Git维护你的网站
- 半角判定的方法
- VFP中连编后运行提示数据表是临时表无法更新
- 我会尽快按您的指示去做某些事情,“农业时代"的用语该信息化了!
- CStdioFile总结
- 网页打不开
- using namespace std 详解
- WIN32汇编显示乱码问题 WSPRINTF