ProEssentials是一个非常好用的实时曲线绘图控件,它对绘制图表以及图表分析功能所需要的数据和方法进行了简单封装,可以轻松实现专业图表软件的效果。本文讨论ProEssentials坐标注释(Annotations)的使用以及如何创建自定义的坐标刻度。
用Line Annotations创建坐标刻度
禁用掉ProEssentials默认刻度,使用自定义的刻度线和网格线。
自定义Y轴的参数:
HorzLineAnnotation | Y location of line annotation |
HorzLineAnnotationType | Line type, generally GridTick(7) or GridLine(8) |
HorzLineAnnotationText | 与注释相关的文本,可包含各种justification codes |
HorzLineAnnotationColor | Color of annotation |
HorzLineAnnotationAxis | 多轴时的Axis location (0 - 5) |
HorzLineAnnotHotSpot | 指定非0的hot spot |
自定义X轴的参数:
VertLineAnnotation | X location of line annotation |
VertLineAnnotationType | Line type, generally GridTick(7) or GridLine(8) |
VertLineAnnotationText | 与注释相关的文本,可包含各种justification codes |
VertLineAnnotationColor | Color of annotation |
VertLineAnnotHotSpot | 指定非0的hot spot |
下面这段代码显示了如何创建一个带有文本标签的Y轴:>>>全文