Question Highlighting the max and min column in a chart

kenharding

Member
Joined
Apr 15, 2007
Messages
5
Location
Staffordshire, UK
Programming Experience
Beginner
Hi all,

I have a chart in my application and all is working fine with it but what I would like to do is highlight the minimum and maximum column on my graph.

Is it possible to have a line running from left to right (say a red line) that sits on top of the max column and a green line that sits on top of the min column?

This is the sort of thing I am looking for

chart.PNG

Thanks for looking.

Ken
 
Add two Line type series, one for min and one for max.
If you are binding the Chart to a DataTable you can add two expression columns to the table with expressions like "min(y)" and "max(y)", and set YValueMembers for the min/max line series.
If not, manually get or calculate min and max Y values, and first and last X value. With these values you can add two points to each series to make a horizontal line displaying the min/max.
 
Back
Top