Microsoft mschart initial experience

Source: Internet
Author: User

Recently, we need to develop a simple data statistics tool to help the market perform operation analysis. The first phase of the demand is relatively simple, that is, to perform aggregation operations on server data based on time. Before I started, I checked some materials. Currently, the controls for graphical reports mainly include third-party paid products such as devexpress, open-source zedgraph, and Microsoft 3.5 plug-in mschart. The first two have their own merits in terms of graphic effects and operational efficiency. However, considering the accuracy and stability, Ms's own control was finally decided. It is said that the control has been integrated in the latest 2010 and has not been verified.

 

Mschart inherits the ease-of-use features of Microsoft controls. Therefore, we recommend that you download and install the content in the Appendix. After installation, the data tab of the Toolbox will have an additional control named chart, familiarize yourself with the main objects and attributes as described below. It is worth mentioning that this control supports dynamic display during design and has two versions: Web and client. You only need to add some default data and switch the graph type to see different effects, I have to say that Ms will be encapsulated to the extreme, so there is no demo or text to illustrate. Mschart mainly involves the following objects:

Chart class -- this is our main character. All the images are displayed here. Of course, the most effective helper of a hero is series attribute;

Series class-Major graphics rendering implementers, based on the calculation of points attributes and the specified charttype and chartarea attributes, determine the shape, type, and position of the graphics;

Datapoint class-data storage object. You can set one X value and one or more y values;

Seriescharttype class-lists more than 30 common report types, including the most commonly used column charts, line charts, and pie charts.

 

Note:

1. Some attributes exist in series and datapoint objects at the same time. Setting an attribute for a series object will take effect for all the datapoint objects contained in it, but directly setting a datapoint has a higher priority;

2. If the attribute contains a comma (,), The Escape Character "\" must be added;

3. By default, the ChartArea attribute is the first available display area that can be queried. to hide an existing Series, set its ChartArea to a null string;

4. Currently, in addition to the Bubble, Candlestick, and Stock types, only one Y value is required for the other types. For example, the stock price curve has the highest, lowest, opening, and closing value every day.

 

 

Appendix 1: Assembly Installation Package

Appendix 2: toolbox Extension

Appendix 3: Help document

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.