向 Microsoft Chart Controls 图表添加页脚
是否可以将页脚线添加到使用 Microsoft Chart Controls for .net 4 创建的图表中。我想在该行的左侧放置一个徽标(png 图像),在右侧放置一个文本。
作为一种可能性,我想到在渲染图表或设置背景图像后将页脚添加到结果图像中,但也许我错过了一个集成的、更好的可能性?
Is there a possibility to add a footer line into a chart created with Microsoft Chart Controls for .net 4. I would like to place a logo (png-image) on the left side and a text on the right side of this line.
As a possibility, it came into my mind to add the footer to the resulting image after rendering the chart or setting a background image, but maybe there is an integrated and better possibility that I have missed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
图表示例中有一节介绍如何使用 PrePaint 和 PostPaint 事件来自定义图表。向 PrePaint 添加处理程序可以帮助您自定义图形画布。
图表功能>定制和活动>预绘制和后绘制事件。
顺便说一句,样本在这里:
http://archive.msdn.microsoft.com/mschart
The chart samples have a section on using PrePaint and PostPaint events to customize the graphs. Adding a handler to the PrePaint could help you with customizing the graph canvas.
Chart Features > Customization and Events > PrePaint and PostPaint Events.
The samples are here btw:
http://archive.msdn.microsoft.com/mschart