Custom legend text
Posted: Wed Nov 04, 2009 6:35 pm
Hi,
I have a custom legend that uses a palette to display a series of colors. I use a Custom3DPalette object to set up the palette, and then call the following code:
It works fine, but I would like to have a better control of how the numbers displayed in the legend are formatted. The trouble is that chart.Legend.Items is still empty after the code above is executed, so cannot simply format the items' text there.
How can I manually change the text associated with legend items, or the format used for formatting them?
Best,
Michal
I have a custom legend that uses a palette to display a series of colors. I use a Custom3DPalette object to set up the palette, and then call the following code:
Code: Select all
chart.Legend.LegendStyle = LegendStyles.Palette;
chart.Legend.Series = palette;
chart.Legend.Visible = true;
chart.Legend.MaxNumRows = steps;
How can I manually change the text associated with legend items, or the format used for formatting them?
Best,
Michal