How to set the width of columns? About Chart Control for. net

Source: Internet
Author: User

Sorry, my English is poor!

Haha, I asked a question in English for the first time. This is my opening remarks. In the description, there must be a lot of loopholes in the syntax, but I still got the answer soon. It seems that foreign friends can still understand my Chinese English.

My problem is about Chart Control for. net, and I want to solve the control of the Image Width in bar chart. This is because, if you allow it to be automatically arranged, if there are few projects on the X axis, the bar chart will be displayed very wide, and users are not satisfied.

Peter gave the following answer:

 

If you want to specify the number of pixels, you can do something like this:

Chart1.series [0] "pixelpointwidth"] = "20 ";

 

Or if you want to set the width based on the size of the space between the intervals, you can do something like this:

Chart1.series [0] ["pointwidth"] = "0.5 ";

 

Finally, I chose the first method to solve my problem.

Finally, thank Peter, the Internet, and all www.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.