MSChart coordinates display incomplete problem

Source: Internet
Author: User

A while ago to do development to use Microsoft's MSChart control, although the function is powerful, but never used, has been groping, a small problem spent half a day to study. Finally the x axis coordinates display incomplete problem to solve, of course, also find a lot of information on the Internet to be done, today to make a summary for later friends.

X axis If more than 9 digits, it can not be fully displayed, will be a separate display, so that people are very uncomfortable, in fact, as long as the following settings:

Chart1.chartareas[0].   Axisx.interval = 1; Set the x-axis coordinates at an interval of 1
Chart1.chartareas[0].  Axisx.intervaloffset = 1; To set the x-axis coordinate offset to 1
Chart1.chartareas[0].   AxisX.LabelStyle.IsStaggered = true; Whether the settings are interleaved, such as the time of the data is divided into two lines to display

To put it bluntly, it's really simple. It's really a headache for people who haven't played MSChart.

Look at the following picture effect: The first one is not set, the second is set.

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.