Page 1 of 1
GantChart - Pen Color
Posted: Mon Apr 17, 2006 8:50 am
by 9640091
hi,
is it possible to set different color for individual bars in a serie in gant chart... if it's how...
Bora
Posted: Mon Apr 17, 2006 8:53 am
by 9640091
i think i wrote color, i meant pen color...
Posted: Wed Apr 19, 2006 10:15 am
by narcis
Hi bora,
Yes, you can do it using Gantt series GetPointerStyle event and doing something like this:
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
gantt1.FillSampleValues();
}
private void gantt1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
{
series.Pointer.Pen.Color = Color.FromArgb(e.ValueIndex*10,e.ValueIndex*10,e.ValueIndex*10);
}