c# 中Teechart 的坐标点的相关设置

 

一   .坐标点的设置

//每个坐标点描出来
teeChart1.Series(0).asLine.Pointer.Visible = true;

//设置坐标点的大小
teeChart1.Series(0).asLine.Pointer.HorizontalSize = 2;
teeChart1.Series(0).asLine.Pointer.VerticalSize = 2;

//坐标点是否可见
teeChart1.Series(0).asLine.Pointer.Pen.Visible = false;

//设置所有坐标点的颜色

//红色
UInt32 colorRed = (uint)(((uint)0 << 16) | (ushort)(((ushort)0 << 8) | 255));
//黄色
UInt32 colorYellow = (uint)(((uint)0 << 16) | (ushort)(((ushort)255 << 8) | 255));

//内部填充

teeChart1.Series(0).asLine.Pointer.Brush.Color = colorRed;

//边框的颜色
teeChart1.Series(0).asLine.Pointer.Pen.Color = colorRed;

 

//设置单个坐标点的颜色(i是哪个坐标点)可以在描点的时候进行设置

teeChart1.Series(0).PointColor[i] = colorRed;

 

 //找到图上描点的最大值和最小值

YMax = teeChart1.Series(0).YValues.Maximum;
YMin = teeChart1.Series(0).YValues.Minimum;

 

//横坐标显示在上轴刻度

  teeChart1.Series(0).HorizontalAxis = EHorizontalAxis.aTopAxis;

 

posted @ 2021-06-07 10:30  安相遇  阅读(754)  评论(0编辑  收藏  举报