mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 20:30:33 +02:00
TAChart: Make default legend entry of TColorMapSeries globally available.
git-svn-id: trunk@56500 -
This commit is contained in:
parent
45fc658a8d
commit
fcf86240a0
@ -28,6 +28,7 @@ const
|
||||
DEF_FIT_STEP = 4;
|
||||
DEF_FIT_PARAM_COUNT = 3;
|
||||
DEF_COLORMAP_STEP = 4;
|
||||
DEF_COLORMAP_LEGENDFORMAT = 'z ≤ %1:g|%g < z ≤ %g|%g < z';
|
||||
|
||||
type
|
||||
TFuncCalculateEvent = procedure (const AX: Double; out AY: Double) of object;
|
||||
@ -2046,10 +2047,8 @@ end;
|
||||
procedure TCustomColorMapSeries.GetLegendItems(AItems: TChartLegendItems);
|
||||
|
||||
function PrepareFormats: TStrings;
|
||||
const
|
||||
FORMAT_DEF = 'z ≤ %1:g|%g < z ≤ %g|%g < z';
|
||||
begin
|
||||
Result := Split(IfThen(Legend.Format = '', FORMAT_DEF, Legend.Format));
|
||||
Result := Split(IfThen(Legend.Format = '', DEF_COLORMAP_LEGENDFORMAT, Legend.Format));
|
||||
with Result do
|
||||
try
|
||||
while Count < 3 do
|
||||
|
Loading…
Reference in New Issue
Block a user