Várias cores na mesma série de grafico
Gostaria de saber se tem como em um gráfico dbchart, colocar numa série, duas ou tres cores diferentes na mesma série.
Por exemplo, criei um campo calculado (cont) e no calcfiedls fiz :
Query1Cont.AsInteger := Query1Cont.AsInteger+1;
if Query1GRUPO.AsString = ´A´ then
DBChart1.SeriesList.Series[0].SeriesColor := clGreen
else if Query1GRUPO.AsString = ´B´ then
DBChart1.SeriesList.Series[0].SeriesColor := clRed
else if Query1GRUPO.AsString = ´C´ then
DBChart1.SeriesList.Series[0].SeriesColor := clBlue;
Mas não dá certo, ele fica de uma cor só (clGreen).
Obrigado
Por exemplo, criei um campo calculado (cont) e no calcfiedls fiz :
Query1Cont.AsInteger := Query1Cont.AsInteger+1;
if Query1GRUPO.AsString = ´A´ then
DBChart1.SeriesList.Series[0].SeriesColor := clGreen
else if Query1GRUPO.AsString = ´B´ then
DBChart1.SeriesList.Series[0].SeriesColor := clRed
else if Query1GRUPO.AsString = ´C´ then
DBChart1.SeriesList.Series[0].SeriesColor := clBlue;
Mas não dá certo, ele fica de uma cor só (clGreen).
Obrigado
Andreyrf
Curtidas 0
Respostas
Carnette
04/07/2003
Click com o botão direito no objeto DBChart...depois, EditChart....depois, click em séries....na opção FORMAT vc deixa marcado a opção COLOREACH..
Isto deve resolver o seu problema de cores
Isto deve resolver o seu problema de cores
GOSTEI 0