Page 1 of 1

Set 'Legend Every' in Palette

Posted: Thu May 06, 2010 4:33 pm
by 15055543
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;
}

Re: Set 'Legend Every' in Palette

Posted: Fri May 07, 2010 10:13 am
by yeray
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).