TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
jradke
- Newbie
- Posts: 6
- Joined: Fri Oct 25, 2019 12:00 am
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:
-
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.
-
The same problem happens for the highest X Value (when I click onto the most right column).
-
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?
-
Exporting the chart to PDF with TeeSaveToPDFFile deliveres a complete wrong image.
-
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 767 times
Kind regards
JRadke
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Jan 16, 2020 11:43 am
Hello,
jradke wrote: ↑Tue Jan 07, 2020 1:09 pm
-
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.
-
The same problem happens for the highest X Value (when I click onto the most right column).
-
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 (27.04 KiB) Viewed 9734 times
-
Yeray
- Site Admin
- Posts: 9612
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Jan 16, 2020 11:50 am
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):