如何从文本框中的值创建饼图 [英] How can I cretae pie chart from values in textboxes
本文介绍了如何从文本框中的值创建饼图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
各位大家好,如何从两个文本框中的值创建饼图?
我有一个系列PLNĚNÍ
textbox1 .text = 67%
textbox2.text = 37%
例如:
Imgur:互联网的神奇之处 [ ^ ]
谢谢
我有什么尝试过:
我试过:
Hello everybody, how can I create pie chart from values in two textboxes ?
I have a series "PLNĚNÍ"
textbox1.text=67%
textbox2.text=37%
example:
Imgur: The magic of the Internet[^]
THANK YOU
What I have tried:
I tried :
graf_posledni_evidence.Series("PLNĚNÍ").Points.Add(Val(TextBox1.Text))
graf_posledni_evidence.Series("PLNĚNÍ").Points.Add(Val(TextBox2.Text))
推荐答案
谷歌是你的朋友:好好经常拜访他。他可以比在这里发布问题更快地回答问题...
一次非常快速的搜索给出了近50万次点击:简单的饼图c - Google搜索 [ ^ ]
包括此Codeproject文章:创建饼图在C#.NET中使用图形 [ ^ ]
代码在C#中,但它非常简单,如果你真的是ca不解决这里有一个在线翻译:代码转换器C#到VB和VB到C# - Telerik [ ^ ]
将来请尝试自己做至少基础研究,而不是浪费你的时间或我们的时间。
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search gave nearly half a million hits: simple pie chart c - Google Search[^]
Including this Codeproject article: Create Pie Chart Using Graphics in C# .NET[^]
The code is in C#, but it's pretty trivial, and if you really can't work it out there is an online translator here: Code Converter C# to VB and VB to C# – Telerik[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
这篇关于如何从文本框中的值创建饼图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文