Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Visual Studio 2010 C# - Help with pie chart design

$
0
0

Hey guys. I have a finished chart and was thinking about improving it so it would be much easier for the customer to read the information it shows.

This is the chart I'm working on: http://www.host4images.com/images/962chart.png

As you can see one way to know the percentage of each article is checking the color it has and then looking for it in the right list (it could be up to 10 - 20 articles)

Second way is going over the article on the pie with the mouse, that will show the percentage as well.

But. I was thinking it would be much better if the pie chart shows article and percentage by itself, so the customer wouldn't have to do anything to access this information, not even think about it. 

Actual code of my chart is very simple:

 dt = new DataTable();
                    dt.Load(cmdo.ExecuteReader());

                    chart2.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = true;

                    chart2.Series["Series1"].XValueMember = "Articulos";
                    chart2.Series["Series1"].YValueMembers = "Cantidad";

                    chart2.DataSource = dt;

I only have edited it using series collection editor as u can see here: http://www.host4images.com/images/820series.png

Any help will be very much appreciated. :)


Viewing all articles
Browse latest Browse all 31927

Trending Articles