Mschart use navigation

Source: Internet
Author: User

Microsoft's new chart control mschart relies on the framework3.5 SP1 environment. It looks pretty in terms of the effect it has made. I have recently spent some time studying it. It is easy to use and has powerful functions. We suggest you try it.

 

2-dimensional column chart

2-dimensional dimension chart

3-dimensional chart

3-dimensional pie chart

3D pyramid chart

3-dimensional column chart

  1. Start with installation ,:
    1. Control: Microsoft Chart Control for Microsoft. NET Framework 3.5 (Microsoft chart controls for Microsoft. NET Framework 3.5)
    2. Language Pack: Microsoft chart controls for Microsoft. NET Framework 3.5 Language Pack
    3. Vs2008 Integrated Control: Microsoft chart controls add-on for Microsoft Visual Studio 2008
    4. Documentation (Microsoft chart controls for. NET Framework Documentation)
    5. Example of winform and Asp.net (samples environment for Microsoft chart controls)
  2. Add to project:
    1. After three items in 1 are installed, the mschart control will appear in the toolbar of s2008.

       

    2. Drag to the interface:

       

  3. Describes common attributes and events of mschart.
    1. Mschart element composition

       

    2. The most common attributes include
      1. 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.
        1. Alignmentorientation: alignmentorientation defines the alignment between two drawing areas.
        2. Alignmentstyle: alignentstyle is an alignment type that defines the elements used between charts.
        3. Alignwithchartarea: Specifies the name of the alignwithchartarea.
        4. Innerplotposition: The position attribute of the chart in the drawing area.
          1. Auto: whether to automatically align.
          2. Height: the height of the chart in the drawing area (percentage, value range: 0-100)
          3. Width: the width of the chart in the drawing area. The value ranges from 0 to 100)
          4. X, Y: coordinates of the chart in the upper left corner of the drawing Area
        5. Position: The position attribute of the drawing area, which is the same as innerplotposition.
        6. Name: name of the drawing area.
        7. Axis: Coordinate Axis set
          1. Title: Axis title
          2. Titlealignment: Axis title alignment
          3. Interval
          4. Intervaloffset: the offset of the Axis scale.
          5. Minorgrid: Secondary guides
          6. Minortickmark: secondary dial
          7. Majorgrid: main guides
          8. Majortickmark: Main dial
      2. Performanceid: the data source of mschart.
      3. Legends: a legend.
      4. Palette: Specifies the chart appearance.
      5. 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.
        1. Isvalueshownaslabel: whether to display the data point label. If it is true, each data value is displayed in the chart.
        2. Label: data point label text
        3. Labelformat: data point label text format
        4. Labelangle: label font Angle
        5. Name: Chart name
        6. Points: data point set
        7. Xvaluetype: X axis type
        8. Yvaluetype: Y axis type
        9. Xvaluemember: the data source bound to the X coordinate. (If the data source is table, enter the name of the field to be displayed)
        10. 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)
        11. Chartarea: name of the drawing area to which the chart belongs
        12. Charttype: Chart type (such as column, pie, line, and point)
        13. Legend: name of the legend used by the chart
      6. Titles: Title set.
      7. Width: the width of mschart.
      8. Height: the height of mschart.
    3. Common events:
      1. 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.
      2. Mschart1.databind ()
        Bind a data source to the entire mschart. All charts in this mschart can use this data source as the statistical source.

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.