C#:油漆自己的条形图 [英] C#: Paint own Bar Chart

查看:280
本文介绍了C#:油漆自己的条形图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过描绘 C#一个简单的柱状图,但我从来没有尝试过的图形和绘图的命名空间。我想产生一个开始和结束的图形,然后以某种方式重复的图像(以显示长度),但我不知道如何做到这一点。

I'm trying to paint a simple bar chart via C# but I've never experimented with the Graphics and Drawing namespaces. I thought of generating a "start" and "end" graphic and then repeating an image somehow (to show a "length") but I have no idea how to do this.

我会很开心,如果你能在正确的方向指向我和/或如果你有样本code做到这一点。

I'd be really happy if you can point me in the right direction and/or if you have sample code to do this.

推荐答案

我不得不同意爱欲。有很多非常不错的图形库来完成你想要的东西。最好的我遇到:

I've got to agree with Eros. There are lots of very good graphing libraries to accomplish what you want. The best I've come across:

  • Microsoft图表控件 - 甚至还有一个Visual Studio <一href="http://www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&displaylang=en"相对=nofollow>插件和良好的教程
  • FLOT - 这一个是基于jQuery,用于Web应用程序的那么好。
  • 谷歌图 - 简单的API,甚至还有的 ASP.Net控制
  • Microsoft Chart Controls - There's even a Visual Studio plugin and a good tutorial.
  • Flot - This one is jQuery based, so good for web apps.
  • Google Chart - Simple API and even an ASP.Net Control

这篇关于C#:油漆自己的条形图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆