Board index » delphi » can series have multiple point styles?

can series have multiple point styles?

What I'm trying to do is connect 2 points on a graph - but I want the 2
points to be different in style.

So, can a single lineseries have multiple point styles? how?

OR

can 2 different Pointseries be connected by a line?  how?

Tom

 

Re:can series have multiple point styles?


On Thu, 2 Sep 1999 10:26:50 -0400, "Tom DiCosola" <d...@lsweb.com>
wrote:

Quote
>What I'm trying to do is connect 2 points on a graph - but I want the 2
>points to be different in style.

>So, can a single lineseries have multiple point styles? how?

>OR

>can 2 different Pointseries be connected by a line?  how?

>Tom

You can hook the OnBeforeDrawValues event and use the ChangeStyle
method to make the changes. If you try to do it another way, be
careful as it is possible to set up infinite loops by using methods
that fire a repaint. The ChangeStyle method does not do this so should
be safe.

Steve F (Team B)

Re:can series have multiple point styles?


your solution still changes all of the points in the line to the same
pointer style...

I've come up with a solution by drawing a line between 2 series points:

  begin
    x1 := Chart.series3.CalcXPos(0);
    y1 := Chart.series3.CalcYPos(0);

    x2 := Chart.series3.CalcXPos(0);
    y2 := Chart.series3.CalcYPos(0);
    Chart.Canvas.line(x1, y1, x2, y2);
  end;

Steve Fischkoff (TeamB) <fischk...@compuserve.com> wrote in message
news:37ce9de6.8911986@forums.borland.com...

Quote
> On Thu, 2 Sep 1999 10:26:50 -0400, "Tom DiCosola" <d...@lsweb.com>
> wrote:

> >What I'm trying to do is connect 2 points on a graph - but I want the 2
> >points to be different in style.

> >So, can a single lineseries have multiple point styles? how?

> >OR

> >can 2 different Pointseries be connected by a line?  how?

> >Tom

> You can hook the OnBeforeDrawValues event and use the ChangeStyle
> method to make the changes. If you try to do it another way, be
> careful as it is possible to set up infinite loops by using methods
> that fire a repaint. The ChangeStyle method does not do this so should
> be safe.

> Steve F (Team B)

Other Threads