scColorGrid minimum and maximum colors

TeeChart for ActiveX, COM and ASP
Post Reply
jacques
Newbie
Newbie
Posts: 30
Joined: Thu Nov 20, 2008 12:00 am
Location: South Africa
Contact:

scColorGrid minimum and maximum colors

Post by jacques » Mon Sep 21, 2009 7:32 am

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

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: scColorGrid minimum and maximum colors

Post by Yeray » Mon Sep 21, 2009 1:57 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply