janningjuul Posted September 18, 2007 Report Share Posted September 18, 2007 How do I get the last Y-value in a series? /Henrik Quote Link to comment Share on other sites More sharing options...
Frank Posted September 18, 2007 Report Share Posted September 18, 2007 If by "last Y-Value" you mean the biggest Y-Value,we don't keep that information. You will need to go though the series and find it. If you are talking about the value for the last point: double value = chart.Data.Y[seriessIndex,chart.Data.Points-1]; Quote Link to comment Share on other sites More sharing options...
janningjuul Posted September 19, 2007 Author Report Share Posted September 19, 2007 I'm searching the value for the last point in a specifik series.- There are several series (each in one pane) in the same chart. /Henrik Quote Link to comment Share on other sites More sharing options...
Frank Posted September 19, 2007 Report Share Posted September 19, 2007 The code I posted will get you the last value. Quote Link to comment Share on other sites More sharing options...
janningjuul Posted October 4, 2007 Author Report Share Posted October 4, 2007 Ok!Then how do I paint those points another color?/Henrik Quote Link to comment Share on other sites More sharing options...
Frank Posted October 24, 2007 Report Share Posted October 24, 2007 You can set the color for a particular point by doing: chart.Points.Color = <color>; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.