How to find value, maximum value and minimum value of the data points
4 Oct 2018 / 3 minutes to read
EssentialChart has FindValue, FindMaximumValue and FindMinimumValue methods that can return the corresponding chart data point values depending upon the parameter(s) passed to these methods.
All these methods are overloaded.
Find Value
Properties
Method | Description |
---|---|
FindValue(Double) | It should return the first chart point in the collection that has a specified first Y-value. The search always should start at the beginning of the collection. |
FindValue(Double, String) |
It should return the first chart point in the collection with the specified X or Y-value. |
FindValue(Double, String,index ) |
It should return the first chart point with the specified X or Y-value, and should start the search at the specified index. |
FindValue(Double, String, Index, Index ) |
It should return the first chart point with the specified X or Y-value, and should start and end the search at the specified index. |
dbl = Int64.Parse(textBoxValue.Text);
ChartPoint dp1 = this.chartControl1.Series[0].Summary.FindValue(dbl);
dbl = Int64.Parse(textBoxValue.Text)
Dim dp1 As ChartPoint = Me.chartControl1.Series(0).Summary.FindValue(dbl)
FindMaximumValue
Properties
Method | Description |
---|---|
FindMaxValue() |
It should return the first chart point in the collection with a maximum first Y-value. The search always should start at the beginning of the collection. |
FindMaxValue(String) |
It should return the first chart point in the collection with the maximum specified value. The search always should start at the beginning of the collection. |
FindMaxValue(String, index) |
It should return the first chart point with a maximum value. The search should start at the specified index. |
FindMaxValue(String, Index , Index) |
It should return the first chart point with a maximum value. The search should start and end at the specified index. |
String str = textBoxString.Text;
startIndex = Int32.Parse(textBoxIndex.Text);
endIndex = Int32.Parse(textBox1.Text);
ChartPoint dp4 = this.chartControl1.Series[0].Summary.FindMinValue(str, ref startIndex, endIndex);
Dim str As String = textBoxString.Text
startIndex = Int32.Parse(textBoxIndex.Text)
endIndex = Int32.Parse(textBox1.Text)
Dim dp4 As ChartPoint = Me.chartControl1.Series(0).Summary.FindMinValue(str, ref startIndex, endIndex)
FindMinimumValue
Properties
Method | Description |
---|---|
FindMinValue() |
It should return the first chart point in the collection that has a first Y-value that is equal to the series' minimum Y1 value. The search always should start at the beginning of the collection. |
FindMinValue(String) |
It should return the first chart point in the collection that has an X or Y-value that is equal to the series' minimum value. The search always should start at the beginning of the collection. |
FindMinValue(String, index) |
It should return the first Chart point with a minimum value. The search should start at the specified index. |
FindMinValue(String, Index , Index) |
It should return the first Chart point with a minimum value. The search should start and end at the specified index. |
String str = textBoxString.Text;
startIndex = Int32.Parse(textBoxIndex.Text);
endIndex = Int32.Parse(textBox1.Text);
ChartPoint dp4 = this.chartControl1.Series[0].Summary.FindMaxValue(str, ref startIndex, endIndex);
Dim str As String = textBoxString.Text
startIndex = Int32.Parse(textBoxIndex.Text)
endIndex = Int32.Parse(textBox1.Text)
Dim dp4 As ChartPoint = Me.chartControl1.Series(0).Summary.FindMaxValue(str, startIndex, endIndex)
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page