Filodo
Filodo

Reputation: 11

TeeChart C# Points series custom width

The TeeChart Points series has the GetPointerStyle event can be used to change the color and the style of each point of the series, but there is a way to change the width property of each point of the series?

Upvotes: 1

Views: 140

Answers (1)

Yeray
Yeray

Reputation: 5039

You can use GetPointerStyle to modify the Series' HorizSize and VertSize properties. Ie:

private void Points1_GetPointerStyle(CustomPoint series, GetPointerStyleEventArgs e)
{
  if (e.ValueIndex % 4 == 0)
  {
    series.Pointer.HorizSize = 4;
    series.Pointer.VertSize = 4;
  }
  else
  {
    series.Pointer.HorizSize = 2;
    series.Pointer.VertSize = 2;
  }
}

Upvotes: 1

Related Questions