如何使用一个Chart,则首先必须要了解其组织结构,其次知道其API。
Chart元素
首先,来看看Chart组成元素。
Axis Label:坐标轴标签 |
|
Axis Title:坐标轴标题 |
|
Chart Area:Chart区域 |
集合。由一个或多个Chart组成。 |
Chart Picture:Chart图片 |
表示整个图像的照片。 |
Chart Series:Chart系列 |
集合。由一组相关的数据点(data points)组成。 |
Legend:图例 |
集合。数量不限。 |
Grid Lines:网格线 |
|
Tick Marks:刻度 |
分主次,分横纵。 |
Plot Area:绘图区域 |
|
Title:标题 |
集合。 |
Value Label:值标签 |
文本元素——Titles
使用TitleCollection属性获得。标题可以作为文本元素或标签元素放置在Chart的任何地方。
l 轴标题:Axis Titles
l 图例标题:Legend Titles
l 轴标签:Axis Labels - displays the axis scale values.
l 值标签:Value Labels - displays information about the data.
l 图例文本:Legend Text - explains series information in the legend.
l 批注文本:Annotation Text
外观属性
主要的外观性质:
l 各种样式的渐变颜色;
l 多种影线(Hatching)模式;
l 背景透明度。