Possible bug in chart legend for TMapSeries (TeeChart 6)
Posted: 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...
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...