Hi all,
being a TeeChart newbie, I'm not sure how to solve this one:
I have a Chart with a number of TLineSeries representing data logged at a given interval. The X-axis represents time obviously.
Asynchronus to this logging, some events might happen that should be represented on the same X-axis. The text describing the event could be a hint when the mouse hovers over each point, or even printed next to the points.
I tried adding a TPointSeries, where I can add events at different X-values (times), but this approach has (at least) two backsides:
1) I would like to avoid the events-series to show up in the legend.
2) The Label added with TPointSeries.AddXY(Time, 0, 'Label') is put on the X-axis instead of the date/time info that used to be there.
Any ideas ?
TIA
Søren
Point in time events
-
- Newbie
- Posts: 17
- Joined: Thu Dec 07, 2006 12:00 am
- Location: Sønderborg, Denmark
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Søren,
Try forcing your bottom axis to display series values using this:
This can be easily solved using this:1) I would like to avoid the events-series to show up in the legend.
Code: Select all
Series1.ShowInLegend:=false;
2) The Label added with TPointSeries.AddXY(Time, 0, 'Label') is put on the X-axis instead of the date/time info that used to be there.
Try forcing your bottom axis to display series values using this:
Code: Select all
Chart1.Axes.Bottom.LabelStyle:=talValue;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Thu Dec 07, 2006 12:00 am
- Location: Sønderborg, Denmark
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Thu Dec 07, 2006 12:00 am
- Location: Sønderborg, Denmark
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Søren,
Yes, this can be done setting arrow's length:
Notice that negative values for ArrowLength are also supported.
Or another option is setting custom marks position as shown here.
Yes, this can be done setting arrow's length:
Code: Select all
Series1.Marks.ArrowLength:=20;
Or another option is setting custom marks position as shown here.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 17
- Joined: Thu Dec 07, 2006 12:00 am
- Location: Sønderborg, Denmark