Possible bug in chart legend for TMapSeries (TeeChart 6)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
zoidberg
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am

Possible bug in chart legend for TMapSeries (TeeChart 6)

Post by zoidberg » Wed Apr 14, 2004 6:27 pm

Possible bug in TeeChart 6 (for C++Builder 6):

When using a TMapSeries that uses palettes, setting (programmatically or interactively)
LegendEvery > 1 and
PaletteSteps to a value that is divisible by LegendEvery
seems lead to one more (final) legend entry than is expected, which value is 0.
Also, the OnGetLegendText callback is called once too many.

Not very nice, at least if the lowest value(s) in the chart are (strongly)negative.

To test, e g
1. start the "new features demo",
2. go to "All features/Chart styles/Extended/Map GIS",
3. press "Edit...",
4. press "Series/Grid 3D/Single/Remove custom colors",
5. select "Series/Grid 3D/Palette",
6. set "Steps" to 16
7. set the next numeric field (wich presumably corresponds to "LegendEvery") to 2.

You could also skip step 6 (and leave "Steps" to the default value of 32), and then expand the window vertically to show more legend entries.

I hope this is enough (and correct) details...
-Inge Viken

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Apr 15, 2004 10:55 am

Hi Inge,

yes, you're correct, it seems to be a bug. thanks for the report. I've added it on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.

Post Reply