大家看一下这个报表

夜色镇歌 2012-02-21 01:16:20
http://www.96369.net/Indices.aspx?indicesId=65

很多折点。。是怎么实现的
...全文
148 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
欢乐的小猪 2012-02-21
  • 打赏
  • 举报
回复
Chart控件
a11779952 2012-02-21
  • 打赏
  • 举报
回复
//设置
chart2.Legends[0].Enabled = false;//不显示图例
chart2.ChartAreas[0].BackColor = Color.White;//设置背景为白色

chart2.ChartAreas[0].Area3DStyle.Enable3D = true;//设置3D效果
chart2.ChartAreas[0].Area3DStyle.PointDepth =
chart2.ChartAreas[0].Area3DStyle.PointGapDepth = 50;//设置一下深度,看起来舒服点……
chart2.ChartAreas[0].Area3DStyle.WallWidth = 0;//设置墙的宽度为0;

chart2.ChartAreas[0].AxisY.LabelStyle.Format = "0%";//格式化,为了显示百分号
chart2.ChartAreas[0].AxisY.Interval = 0.05;//设置刻度间隔为5%
chart2.ChartAreas[0].AxisX.MajorGrid.Enabled =
chart2.ChartAreas[0].AxisY.MajorGrid.Enabled = false;//不显示网格线

chart2.ChartAreas[0].AxisX.Minimum = 0.5;//设置最小值,为了让第一个柱紧挨坐标轴

chart2.Series[0].Label = "#VAL{P}";//设置标签文本 (在设计期通过属性窗口编辑更直观)
chart2.Series[0].IsValueShownAsLabel = true;//显示标签

chart2.Series[0].CustomProperties = "DrawingStyle=Cylinder, PointWidth=1";//设置为圆柱形 (在设计期通过属性窗口编辑更直观)
chart2.Series[0].Palette = System.Windows.Forms.DataVisualization.Charting.ChartColorPalette.Pastel;//设置调色板

//数据
chart2.Series[0].Points.AddXY("<10",0.201);
chart2.Series[0].Points.AddXY("10~20", 0.395);
chart2.Series[0].Points.AddXY("20~30", 0.173);
chart2.Series[0].Points.AddXY("30~40", 0.136);
chart2.Series[0].Points.AddXY("40~50", 0.059);
chart2.Series[0].Points.AddXY("50~60", 0.015);
chart2.Series[0].Points.AddXY(">60", 0.022);
annywudy_tt 2012-02-21
  • 打赏
  • 举报
回复
横列显示可以有规则的,可以隐身一些模列的坐标
夜色镇歌 2012-02-21
  • 打赏
  • 举报
回复
但也有可能是把右击事件处理了。。[Quote=引用 2 楼 leefwu 的回复:]

是一张图片
[/Quote]
夜色镇歌 2012-02-21
  • 打赏
  • 举报
回复
显示的日期都是隔14天,我能让他隔一个月吗?
buyong 2012-02-21
  • 打赏
  • 举报
回复
夜色镇歌 2012-02-21
  • 打赏
  • 举报
回复
我用vs上边的chart控件就做不出这个效果。。。为什么啊

这是数据库的测试数据

1 2012-2-16 12:38:18 14124
2 2012-2-16 12:39:18 15125
4 2012-2-16 12:40:18 19125
5 2012-2-16 12:41:18 17555
6 2012-3-17 12:42:18 10525
8 2012-3-17 12:43:18 18155
9 2012-3-17 12:44:18 15122
10 2012-3-17 12:45:18 15155
11 2012-4-17 12:46:18 15317
12 2012-4-18 12:47:18 15455
13 2012-4-18 12:48:18 14567
14 2012-4-18 12:49:18 17764
15 2012-4-18 12:50:18 15555
16 2012-5-18 12:51:18 11111
17 2012-5-19 12:38:18 17737
18 2012-5-19 12:39:18 14373
19 2012-5-19 12:40:18 15374

[Quote=引用 3 楼 crackdung 的回复:]

哎,大驚小怪,很多圖表都有這個功能
[/Quote]
crackdung 2012-02-21
  • 打赏
  • 举报
回复
哎,大驚小怪,很多圖表都有這個功能
leefwu 2012-02-21
  • 打赏
  • 举报
回复
是一张图片
夜色镇歌 2012-02-21
  • 打赏
  • 举报
回复
鼠标放上去的时候会显示数据,但是又像一张图片。

迷糊了

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧