Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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))
Posted
Updated 26-Dec-18 23:48pm
Comments
[no name] 27-Dec-18 5:22am    

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900