如何用颜色填充 ASP.Net 样条图控件下方的区域?
我有一个 ChartType“Spline”的 ASP.Net 图表控件、一个 ChartArea 和一个 Series(它是一个迷你图)。我只是想知道是否有人知道如何为线条下方的区域着色 - 我似乎找不到允许我在不着色整个背景的情况下执行此操作的属性。
提前致谢
I have an ASP.Net Chart Control of ChartType "Spline", one ChartArea and one Series (it's a sparkline). I was just wondering if anyone out there knew how I could color the area underneath the line - I can't seem to find the property that allows me to do this without coloring the entire background.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要有一个 ChartType 为 Area 的图表才能实现这种类型的外观(类似于谷歌分析)。我已经尝试过了,它确实有效,尽管我不确定如何使线条成为一种特定颜色,而下面的区域成为第二种颜色?
http://social. msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/981cc4df-2b23-4557-8d89-0b45d553fecc/
You need to have a chart with a ChartType of Area to achieve this type of look (similar to google analytics). I have tried it and it does work although i'm not sure how you might get the line to be one particular colour and the area underneath to be a second colour?
http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/981cc4df-2b23-4557-8d89-0b45d553fecc/