.net 4.0图表控件自定义网格线
是否可以自定义网格线的显示方式。我有两张图表,一张显示每日数据 - 以时间为 x 轴。我希望网格线按整点显示,或者例如每 2 小时显示一次。在第二个图表中,x 轴跨越日期范围,因此我希望网格线代表每天,例如每 5 天。
Is it possible to customise how the grid lines appear. I have two charts one shows daily data - with Time as x axis. I would like grid-line to show on the hour or for example every 2 hours. In the second chart the x axis is across a date range so I would like grid-line to be for every day or for example every 5 days.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置 ChartArea 的 AxisX 的 IntervalType 和 Interval 属性:
You can set the ChartArea's AxisX's IntervalType and Interval properties: