Bars in Grayscale
Posted: Sun Mar 25, 2012 12:13 pm
Hi,
I am trying to apply grayscale to a bar graph. My code based on a previous discussion in this forum, but it seems something is wrong.
Dim Plotpalette As Steema.TeeChart.Styles.PaletteStyles = PaletteStyles.GrayScale
Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChartPreview.Chart, Plotpalette)
For Me.i = 0 To tChartPreview.Series.Count - 1
tChartPreview(i).Color = Plotpalette(i)
Next
I would appreciate any help to change the color palette to grayscale for a bar graph.
Oli
I am trying to apply grayscale to a bar graph. My code based on a previous discussion in this forum, but it seems something is wrong.
Dim Plotpalette As Steema.TeeChart.Styles.PaletteStyles = PaletteStyles.GrayScale
Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChartPreview.Chart, Plotpalette)
For Me.i = 0 To tChartPreview.Series.Count - 1
tChartPreview(i).Color = Plotpalette(i)
Next
I would appreciate any help to change the color palette to grayscale for a bar graph.
Oli