Page 1 of 1

Problems with TColorGridSeries

Posted: Tue Jan 07, 2020 1:09 pm
by 16487291
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.

Re: Problems with TColorGridSeries

Posted: Thu Jan 16, 2020 11:43 am
by yeray
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 9679 times

Re: Problems with TColorGridSeries

Posted: Thu Jan 16, 2020 11:50 am
by yeray
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 791 times