Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
var lineChart = new Line();
lineChart.LinePen.Width = 2;
lineChart.Pointer.Style = PointerStyles.Circle;
lineChart.Pointer.Visible = true;
tChart1.Series.Add(lineChart);
lineChart.FillSampleValues(10);
lineChart.GetPointerStyle += line_GetPointerStyle;
}
void line_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.GetPointerStyleEventArgs e)
{
if ((e.ValueIndex == 3) || (e.ValueIndex == 6))
series.LinePen.Style = Steema.TeeChart.Drawing.DashStyle.Dash;
else
series.LinePen.Style = Steema.TeeChart.Drawing.DashStyle.Solid;
}
But as the result a segment that leads to point #5 and a segment that leads to point #8 is dashed: I use Steema.TeeChart.NET 4.2022.05.26 on .NET 5.0 (that also reproduces with latest Steema.TeeChart.NET 4.2022.08.23).
Looks like a bug or am I missing something?