ZedGraph教程

更新时间:2023-07-25 15:04:22 阅读: 评论:0

ZedGraph 是一个非常优秀的开源的作图控件
1、在 vs 中使用 ZedGraph
2 基本一些概念
几个注意点:
图片的保存路径设置:RenderedImagePath 属性中设置,程序对该文件夹应该是有写和修改权限的
图片的输出格式:OutputFormat 属性中设置,Png 的推荐,比较清晰。
Chart
我不了解
ChartBorder
图表区域的边框设置
ChartFill
图表区域的背景填充
Legend
图表的注释标签显示设置项目,一组数据对应一种颜色的注释
IsHStack
当有多个显示项的时候设置  Y  轴数据是叠加的还是分开的
Xaxis
雅思考试的内容图表区域的  X  轴相关信息设置
AxisColor
坐标轴颜色
Cross
坐标的原点,可以设置坐标的偏移程度
CrossAuto
原点自动设置:True  的话  Cross  的设置就无效了。
FontSpec
X  轴标题字体相关信息
Angle
X  轴标题字体显示时候的角度,0为水平 90为垂直
jag lskar dig啥意思
Fill
X  轴标题字体填充信息
ColorOpacity
透明度
IsScaled
设置  X  轴标题字体显示大小是否根据图的比例放大缩小
RangeMax
指责英文
填充时候的最大倾斜度(有过渡色,没试过)
RangeMin 
填充时候的最小倾斜度(有过渡色,没试过)
StringAlignment
X  轴标题字体排列(不清楚,没试过)
IsOmitMag
是否显示指数幂(10次方,没试过,似乎与  IsUTenPower  有关系)
advertiments
IsPreventLabelOverlap
坐标值显示是否允许重叠,如果Fal的话,控件会根据坐标值长度自动消除部分坐标值的显示状态
IsShowTitle
X  轴标题是否显示
IsTicsBetweenLabels
两个坐标值之间是否自动显示分隔标志
IsUTenPower
是否使用10次幂指数
IsZeroLine
当数据为0时候是否显示(在饼状图显示的时候有用)
IsVisible
是否显示  X  轴
MajorGrid 
大跨度的  X  轴表格虚线线显示信息
DashOff
虚线中孔间距
DashOn
虚线单位长度
MajorTic
大跨度的  X  轴刻度信息
IsInside
在  Chart  内部是否显示
IsOutSide
99宿舍六级成绩查询在  Chart  外部是否显示
IsOpposite
在对面的轴上是否显示
MinorGrid
小跨度的  X  轴表格虚线显示信息
MinorTic
小跨度的  x  轴刻度信息
MinSpace 
刻度和轴之间的距离(没试过)
Scale
刻度值的一些设定
IsRever
X  轴的刻度值从高到低还是从低到高
MajorStep
大刻度步长
MajorStepAuto
是否自动设置大刻度步长
MajorUnit
大刻度步长单位
Max
工程技术管理刻度最大值
MaxAuto
根据输入数据自动设置刻度最大值
Min
刻度最小值
MinAuto
根据输入数据自动设置刻度最小值
MinGrace
外贸业务员英文简历不清楚,没试过
MinorStep
小刻度步长
MinorStepAuto
是否自动设置小刻度步长
MinorUnit
小刻度单位
Type
数据显示方式
Liner
直接现实(自动)
Date
按日期方式显示
Log
按指数幂方式显示
Ordinal
顺序显示
Y2Axis
第二个  Y  轴坐标信息显示(具体设置看  X  轴)
Yaxis
第一个  Y  轴坐标信息显示(具体设置看  X  轴)
BarBa
在生成柱状图的时候设置柱状是基于  X  轴还是其他轴
BarType
柱状的类型叠加或其他。
IsFontsScaled
图比例变化时候图表上的文字是否跟着自动缩放
IsIgnoreInitial
是否忽略初始值
IsIgnoreMissing
是否忽略缺省值
IsPenWidthScaled
图比例变化时候图表上的画笔的粗细是否跟着自动缩放
IsShowTitle
图表标题是否显示
PaneFill 
Pane  的一些填充信息
BaDimension
缩放比例基数(可以试试效果)
IsImageMap
不清楚干吗用的
AxisChaneged
是否允许自动绘图(没试过,一般都  true,动态绘图)
CacheDuration 
Cache  保存时间0
OutputFormat
输出格式
RenderedImagePath
输出路径
RenderMode
输出模式,不太清楚一般都是  ImageTag,另一个输出的是乱码不是图片。对于图表而言,一般是三种表现形式:柱状图、饼状图和点线图。
Class
Description
MasterPane
英语思维导图怎么画A class to manage multiple GraphPane objects, derived from PaneBa. U of the MasterPane class is optional, as the GraphPane class can be ud directly for a single pane. Also provides methods for layout, arrangement, and management of the individual GraphPane objects.
GraphPane
The primary class for the graph, derived from PaneBa. Includes all other class as properties. Also controls the pane title, the pane frame and axis frame, backgrounds, etc.
XAxis, YAxis, Y2Axis
Children of the Axis class. The class include many aspects of the axis display, including tics, grids, colors, pens, fonts, labels, and styles.
Scale
A class instance maintained by the Axis class. Contains the scale range, step sizes, formats, and display options for the scale. Comes in variants for Linear, Log, Text, Date, Ordinal, Exponent, LinearAsOrdinal, and DateAsOrdinal scales.
Legend
The class that describes the location, font, colors, etc., ud to draw the legend.
CurveItem
An abstract ba class that contains data for a single curve. LineItem, BarItem, HiLowBarItem, ErrorBarItem, PieItem, StickItem, OHLCBarItem, and JapaneCandleStickItem are all derived from this class.
CurveList
A collection class to maintain a list of CurveItem objects. The order of the curves in the list controls the Z-Order for drawing. The last curve in the list will appear behind all other curves.
GraphObj
An abstract ba class that includes position information for a variety of supplemental graphic objects on a plot. TextObj, ImageObj, LineObj, ArrowObj, EllipObj, BoxObj, and PolyObj are derived from GraphObj.
GraphObjList
A collection class to maintain a list of GraphObj objects. The order of the objects in the list, plus a ZOrder property, control the Z-Order for drawing. The last item in the list will appear behind all other items with the same ZOrder value.
FontSpec
A utility class that includes information about the font family, color, angle, size, style, frame, and background fill of the text on the graph. Each class that includes text information will contain one or more FontSpec objects to specifically describe the associated fonts.
Fill
A utility class that includes characteristics of background color fills. Each object that has color fill capability will contain one or more Fill objects to specifically describe the associated color fill.
Border
A utility class that includes characteristics of object borders. Each object that has border capability will contain one or more Border objects to specifically describe the associated border color and line properties.
相信英文
Location
A general class for handling the location of graphic objects on the plot.
PointPair
A data struct that encapsulates a single pair of double values reprenting an (X,Y) data point. This is the internal data storage format for the value arrays in each CurveItem.
PointPairList
A collection class to maintain a list of PointPair objects.
XDate
This class encapsulates a single date-time value (stored as a System.Double), plus a wide array of methods to convert between XL date, Astronomical Julian Day number, Gregorian Calendar date, fractional year, etc. See the discussion of Date-Time axes below, for details.
Member ->> Description
AxisChange()() ->> This performs an axis change command on the graphPane.
BeenDispod ->> This checks if the control has been dispod. This is synonymous with the graph pane having been nulled or dispod. Therefore this is the same as ZedGraphControl.GraphPane == null.

本文发布于:2023-07-25 15:04:22,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/188389.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:显示   设置   是否   自动   时候
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图