Click here to Skip to main content
14,423,188 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am using MS chart control in my application. in that i using column chart to show my data.But i want to show column chart as strigth vertical line.ie. i want to reduce the width of columns in chart.
so is there any property to do that..
can anybody help me
Posted
Comments
wizardzz 2-Dec-10 10:07am
   
Just to clarify, you want to use the column chart, but have the width of the columns very narrow?

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You should look at the free Samples from MS available here[^]. There are examples of how to do many things with MS Chart controls.

If you have a column or bar chart you can set the width with the following line.

float newWidth = 1;

chart1.Series["Default"]["PointWidth"] = newWidth;


For a really small column/bar try a width of 0.1;
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100