Problems with TColorGridSeries

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
jradke
Newbie
Newbie
Posts: 6
Joined: Fri Oct 25, 2019 12:00 am

Problems with TColorGridSeries

Post by jradke » Tue Jan 07, 2020 1:09 pm

The TColorGridSeries is very useful to plot data of a wind profiler, e.g. to visualize windspeed or direction in different heights.
But there are some problems using TColorGridSeries:
  1. The OnClickSeries event is not fired for data with the highest Z value, that is at clicking into the most upper "line" the event is not triggered.
  2. The same problem happens for the highest X Value (when I click onto the most right column).
  3. Exactly the same problem happens when I use a MarkTipTool to display a hint. Furthermore some values in the Legend will be highlighted when I click any of the first 20 data in the chart. Why?
  4. Exporting the chart to PDF with TeeSaveToPDFFile deliveres a complete wrong image.
  5. In case there are time gaps in my data the Series will be filled by the last data automatically. Is it possible to avoid this behavior to visualize the gap?
To demonstrate the problems I have attached a small sample program, I hope this makes it traceable.
Attachments
ColorGridTest.zip
(57.03 KiB) Downloaded 769 times
Kind regards
JRadke

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problems with TColorGridSeries

Post by Yeray » Thu Jan 16, 2020 11:43 am

Hello,
jradke wrote:
Tue Jan 07, 2020 1:09 pm
  1. The OnClickSeries event is not fired for data with the highest Z value, that is at clicking into the most upper "line" the event is not triggered.
  2. The same problem happens for the highest X Value (when I click onto the most right column).
  3. Exactly the same problem happens when I use a MarkTipTool to display a hint.
These 3 look as the same problem reported here:
http://bugs.teechart.net/show_bug.cgi?id=541
I'll increment its priority and add a note pointing to your example here.
jradke wrote:
Tue Jan 07, 2020 1:09 pm
Furthermore some values in the Legend will be highlighted when I click any of the first 20 data in the chart. Why?
This seems to be the Hover feature that is highlighting the legend item assuming the index if the legend item corresponds to the index of the cell. This is usually nice in regular series but it may not make much sense when the legend represents a palette.
You can disable it as follows:

Code: Select all

  aSeries.Selected.Hover.Visible:=False;
jradke wrote:
Tue Jan 07, 2020 1:09 pm
Exporting the chart to PDF with TeeSaveToPDFFile deliveres a complete wrong image.
I've been able to reproduce this one so I've adde it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2277
jradke wrote:
Tue Jan 07, 2020 1:09 pm
In case there are time gaps in my data the Series will be filled by the last data automatically. Is it possible to avoid this behavior to visualize the gap?
You could add null points as follows:

Code: Select all

  for I := 0 to ZMAX-1 do begin
    DT := Date + 8*OneHour;
    aSeries.AddXYZ(DT, 0, I, '', clNone);
  end;
ColorGridTest_2020-01-16_10-31-10.png
ColorGridTest_2020-01-16_10-31-10.png (27.04 KiB) Viewed 9765 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problems with TColorGridSeries

Post by Yeray » Thu Jan 16, 2020 11:50 am

Yeray wrote:
Thu Jan 16, 2020 11:43 am
jradke wrote:
Tue Jan 07, 2020 1:09 pm
Exporting the chart to PDF with TeeSaveToPDFFile deliveres a complete wrong image.
I've been able to reproduce this one so I've adde it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=2277
I've already fixed it in the internal sources so the next release will include the fix.
Find attached the resultant pdf (with the gap):
Colorgridtest.zip
(4.8 KiB) Downloaded 799 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply