This is a migrated thread and some comments may be shown as answers.

Plot Chart Point Color

1 Answer 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Rod Barrand
Top achievements
Rank 1
Rod Barrand asked on 10 Apr 2010, 09:25 PM
Hi, i have a very simple plot chart. The query returns a date and a int value.

When the int value exceeds a predetermined amount i want the point color red
If it's not possible to have different colors depending on a value, is it possible to have a red grid line at a given value.

Thanks
Rod

1 Answer, 1 is accepted

Sort by
0
Rod Barrand
Top achievements
Rank 1
answered on 10 Apr 2010, 10:11 PM

opps, worked it out

Set it in itemdatabound

 

DataRowView

 

drv = e.DataItem as DataRowView;

 

 

int i = ((int)drv["Reading"]);

 

if (i > 130)

 

{

    e.SeriesItem.Appearance.FillStyle.MainColor = System.Drawing.

Color.Red;
}

 

Tags
Chart (Obsolete)
Asked by
Rod Barrand
Top achievements
Rank 1
Answers by
Rod Barrand
Top achievements
Rank 1
Share this question
or