Describes common attributes and events of mschart.

Source: Internet
Author: User

Describes common attributes and events of mschart.

Mschart element composition

The most common attributes include

Chartareas: adds multiple drawing areas. Each drawing area contains independent chart groups and data sources. It is used when multiple chart types are incompatible in one drawing area.

Alignmentorientation: alignmentorientation defines the alignment between two drawing areas.

Alignmentstyle: alignentstyle is an alignment type that defines the elements used between charts.

Alignwithchartarea: Specifies the name of the alignwithchartarea.

Innerplotposition: The position attribute of the chart in the drawing area.

Auto: whether to automatically align.

Height: the height of the chart in the drawing area (percentage, value range: 0-100)

Width: the width of the chart in the drawing area. The value ranges from 0 to 100)

X, Y: coordinates of the chart in the upper left corner of the drawing Area

Position: The position attribute of the drawing area, which is the same as innerplotposition.

Name: name of the drawing area.

Axis: Coordinate Axis set

Title: Axis title

Titlealignment: Axis title alignment

Interval

Intervaloffset: the offset of the Axis scale.

Minorgrid: Secondary guides

Minortickmark: secondary dial

Majorgrid: main guides

Majortickmark: Main dial

Performanceid: the data source of mschart.

Legends: a legend.

Palette: Specifies the chart appearance.

Series: the most important attribute. A chart set is the final set of pie charts, bar charts, line charts, and point charts. Multiple compatible types can be placed in one drawing area, form a composite graph.

Isvalueshownaslabel: whether to display the data point label. If it is true, each data value is displayed in the chart.

Labelformat: data point label text format

Labelangle: label font Angle

Name: Chart name

Points: data point set

Xvaluetype: X axis type

Yvaluetype: Y axis type

Xvaluemember: the data source bound to the X coordinate. (If the data source is table, enter the name of the field to be displayed)

Yvaluemembers: the data source bound to the Y coordinate. (If the data source is table, enter the name of the field to be displayed. The Y coordinate can have two values)

Chartarea: name of the drawing area to which the chart belongs

Charttype: Chart type (such as column, pie, line, and point)

Legend: name of the legend used by the chart

Titles: Title set.

Width: the width of mschart.

Height: the height of mschart.

Common events:

Series1.points. databind ()
Bind a data point set. If you want to add charts of different data sources to a chart area (chartarea) of an mschart control, use this method to bind the data point set. You can bind the values of specified fields in the table to the specified coordinate axis.

Mschart1.databind ()
Bind a data source to the entire mschart. All charts in this mschart can use this data source as the statistical source.

Article Source: DIY tribe (http://www.diybl.com/course/4_webprogram/asp.net/netjs/20090309/160316.html)

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.