如何创建断开线图?
我正在使用 Silverlight 和 WPF 证券交易所应用程序。我正在尝试创建一个类似散线图的图表。
我怎样才能绘制这个图表?可以用Silverlight Toolkit graph来完成吗?或者有人可以向我推荐任何简单但美观的图表库吗?
我用paint画了图表图像供您参考。
I am working with Silverlight and WPF stock exchange application. I'm trying to create a graph like scattered line graph.
How can I draw this chart? Can it be done by Silverlight Toolkit graph? Or can any one suggest me any easy but nice looking charting library?
I have drawn the chart image in paint for your reference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 Visifire 轻松创建上述图表。我已附上以下 XAML 代码。
正如你所看到的,我在这里使用了带有虚线的单个系列。
下面是上面图表 XAML 的图像。
You can create the above chart easily using Visifire. I have attached the following XAML code for the same.
As you can see, I have used single series here with broken lines.
Below is the image for the above chart XAML.
为什么不直接使用标准的 WPF/Silverlight 绘图方法?由于您的要求不是太复杂,您可以直接扔一个带有一些线条和矩形的画布:
然后您可以轻松添加边缘:
您还可以通过更改画笔来根据需要自定义节点和线条的样式。
希望有帮助!
Why not just use the standard WPF/Silverlight drawing methods? Since your requirements are not too complex, you could just throw a canvas with some lines and rectangles:
Then you can add edges easily:
You can also customize the styles of the nodes and lines as you want by only changing the brushes.
Hope it helps!
您想要漂亮的图表吗?那我建议你看看Visifire。您可以从 Visifire 图表库查看以下示例。
http://visifire.com/silverlight_spline_charts_gallery.php
You want beautiful chart right? Then I Suggest you to look into Visifire. You can have a look to the following example from Visifire Chart Gallery.
http://visifire.com/silverlight_spline_charts_gallery.php