Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
3.00/5 (1 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

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;
 
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