- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
柱状报表(vs2005)(Columnar statements (VS2005))
柱状报表(vs2005)(Columnar statements (VS2005))
使用系统;
使用系统数据;
使用系统配置;
使用系统集合;
使用system.data.sqlclient;
使用system.collections.generic;
使用系统;
使用system.web.security;
使用system.web.ui;
使用system.web.ui.webcontrols;
使用system.web.ui.webcontrols.webparts;
使用system.web.ui.htmlcontrols;
使用System.IO;
/ /绘图命名空间
使用系统图;
使用system.drawing.drawing2d;
使用system.drawing.imaging;
公共部分类直方图:system.web.ui.page
{
protected void page_load(object sender,EventArgs e)
{
这histogramfigure();
}
公共无效histogramfigure()
{
/ / /
/ / / 1、定义绘图类
/ / /
int高度= 600;
int宽度= 900;
位图图像=新位图(宽度,高度);
图G =图形(图像)。FromImage;
/ /指定的点和颜色初始化
LinearGradientBrush刷=新定义线性渐变刷(新的矩形(0, 0,图像宽度,图像。高度),color.blue,color.blueviolet,1.2f,真的);
尝试
{
/ / /
/ / / 2、绘制图框
/ / /
g.fillrectangle(brushes.whitesmoke,0,0,宽度,高度);
/ / /
/ / / 3、绘制横向坐标线和绘制纵向坐标线
/ / /
/ /横向坐标线
笔myPen =新笔(刷,1);
/ /背景坚线
int x = 150;//纵向线左右移动
对于(int = i 0;i 14;i + +)
{
g.drawline(myPen,x,80,x,400);/ / 340 / / 80
/ /每一条坚线间的距离
x=40;
}
笔mypen1 =新笔(刷,2);
/ /纵向坐标距左边的距离
x=100;
/ /加长X轴的背景线80
g.drawline(mypen1,x,80,x,400);
/ /纵向坐标线
/ /背景横向线
y = 166;//横向轴上,下移动
为(int = 0;j<9;j + +)
{
G.
DrawLine (mypen 100 and 700,,,, and); / / 620
Y = y + 26;
}
G.drawline (mypen1 100 and 700,,,, and);
/ / 定义字体 (字体, 字号, 字体类型 (粗体, 正体))
Font Font = new Font (Arial, 10, fontstyle.regular);
Font1 font = new Font (宋体, 10, fontstyle.bold);
/ / /
/ / / 4, 绘制横向坐标值 和 纵向坐标值
/ / /
String [] M = {第一个月, 第二个月, 第三个月, 第四个月, 第五个月};
X = 100; / / 距纵向坐标的距离
For (int K = 0; K M. length; K + +)
{
/ / 每个月到横坐标间的距离
G.drawstring (m [k].Tostring (Blue), Font, Brushes., X, 415);
/ / 每一个月间的距离
X = x + 83;
}
String [] {n = 350, 325, 300, 275, 250, 225, 200, 175, 150, 125, 100};
Y = 90; / / 纵向坐上的标示, 上, 下移动
For (int H = 0; Length; H n. H + +)
{
/ / 移动纵轴上的数据
G.drawstring (N [h].Tostring (Blue), font1, Brushes, and. 63);
/ / 标量间的距离
Y = y + 30;
}
/ / /
/ / / 5, 定义数组存储数据库中统计的数据
/ / /
String [] Year = new String [5]; / / 存储每个年份
Count1 Int32 [] = new Int32 [5]; / / 每一个月的销售额
Count2 Int32 [] = new Int32 [5]; / /
/ / /
/ / / 6, 从数据库中读取报名人数
您可能关注的文档
- 报验注意事项(Inspection notice).doc
- 拉丝油(Drawing oil).doc
- 抽水井回灌井设计探讨(Back to explore the design of irrigation wells pumping wells).doc
- 拉深模(Drawing die).doc
- 拉筋大全图解(Reinforcement diagram Daquan).doc
- 拜访客户细节过程总结(Visit customer details summary).doc
- 拍婚纱照的最基本常识大全(The wedding of the most basic common sense.).doc
- 拳皇97安迪招数心得(The king of fighters 97 Andy experience).doc
- 拉紧装置选择(Tensioning device selection).doc
- 拳皇97毁灭之炎——真克里斯+矢吹真吾心得(The king of fighters 97 destruction Chris + Yabuki Shingo experience really inflammation).doc
- 柱间支撑设计结果(Design results of inter column support).doc
- 柱问题(Column problem).doc
- 柱状堆积图(Column stacking diagram).doc
- 柴油机油底壳进水的原因分析(Analysis of water inlet of diesel engine oil sump).doc
- 柴油机曲轴的疲劳强度评定(Fatigue strength evaluation of diesel engine crankshaft).doc
- 柴油机燃料供给系2(Diesel fuel supply system 2).doc
- 某企业的营销诊断(Marketing diagnosis of an enterprise).doc
- 柴油机燃料供给系(Diesel fuel supply system).doc
- 柴油机气缸垫烧损的原因分析及其预防(Cause analysis and prevention of diesel engine cylinder pad burning).doc
- 标准图集下载--众智网站(Standard atlas download website - trimaran).doc
最近下载
- 供配电安全管理规程供配电安全管理规程.doc VIP
- ACS880 FPNO_21_PROFINET IO通讯调试指导.docx VIP
- 2025年新高考语文试题全国Ⅰ卷(附参考答案) .pdf VIP
- 人教鄂教版五年级上册科学全册单元测试含期中期末及答案.docx
- BH207 GL 12 050风险岗位应急处置管理制度 副本.docx VIP
- 中小学幼儿园基孔肯雅热健康教育课件.pptx VIP
- 2024版社区两委考试题目.pdf VIP
- 河南省南阳市2024-2025学年高二下学期7月期末质量评估政治试题.pdf VIP
- 2024年水发集团有限公司招聘真题.docx VIP
- 2024年无锡市工会社会工作者招聘考试真题 .pdf VIP
文档评论(0)