Page 1 of 1

scColorGrid minimum and maximum colors

Posted: Mon Sep 21, 2009 7:32 am
by 15050891
Hello,

I am using a scColorGrid. The control scales the colors automatically with regards the minimum and maximum value that is transferred to the plot.

If I transfer data between 10 and 210 to a plot those seem to be the values used to determine minimum and maximum colors.

I would however like to set the menimum to 0 and the maximum to 255.

Is that possible?

Regards
JB

Re: scColorGrid minimum and maximum colors

Posted: Mon Sep 21, 2009 1:57 pm
by yeray
Hi JB,

In that case you can set palette minimum:

Code: Select all

    TChart1.AddSeries scColorGrid
    TChart1.Series(0).FillSampleValues 10
    
    TChart1.Series(0).asColorGrid.UseColorRange = False
    TChart1.Series(0).asColorGrid.UsePalette = True
    TChart1.Series(0).asColorGrid.UsePaletteMin = True
    TChart1.Series(0).asColorGrid.PaletteMin = 0
Or you should define your custom colour palette as shown here