Set 'Legend Every' in Palette

TeeChart for ActiveX, COM and ASP
Post Reply
Dongsu
Newbie
Newbie
Posts: 6
Joined: Wed Mar 31, 2010 12:00 am

Set 'Legend Every' in Palette

Post by Dongsu » Thu May 06, 2010 4:33 pm

Hi,

I could not find the way how to programmatically set Legend Every in Palette. Of course, I was able to change this number in Chart Editor.
Please see the following code.

void TChartConfig::SetPolygonColor(IMapSeriesPtr tMapSeries)
{
// Set up Palette Steps
tMapSeries->UsePaletteMin = TRUE;
tMapSeries->PaletteSteps = 101;
tMapSeries->PaletteMin = 0;
tMapSeries->PaletteStep = 0.5;
// tMapSeries->LegendEvery = 10; <-----------------------this doesn't work! how can I do this?

// Set up Palette Colors
tMapSeries->UseColorRange = FALSE;
tMapSeries->UsePalette = TRUE;
tMapSeries->PaletteStyle = psPale;
tMapSeries->InvertPalette();
tMapSeries->Pen->Visible = FALSE;
}

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

Re: Set 'Legend Every' in Palette

Post by Yeray » Fri May 07, 2010 10:13 am

Hi Dongsu,

You are right, the LegendEvery property isn't accessible by code in the ActiveX version. I've added it to the wish list to be implemented in future releases (TA05014864).
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