我试图通过描绘 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 插件和良好的教程。 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