我有一个点图表,我需要识别一个特定的数据点并应用样式,下面的代码对所有的点进行样式化,但是我需要一些点显示在圆形中,一些显示在十字中。
Steema.TeeChart.Styles.Points points = new Steema.TeeChart.Styles.Points(frmApplication.DefInstance.VtChart1.Chart)
points.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
points.Add(xValue, yValue);
你可以使用GetPointerStyle事件来修改Point
points.Add(0, 4);
points.Add(1, 3); //more point add etc
//connect to the GetPointerStyle event to modify specific Point Pointerstyle at runtime.
points.GetPointerStyle += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(point_GetPointerStyle);
}
private void point_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.GetPointerStyleEventArgs e)
{
if (e.ValueIndex == 2)
e.Style = Steema.TeeChart.Styles.PointerStyles.Cross;
else
e.Style = Steema.TeeChart.Styles.PointerStyles.Circle;
}