Having trouble getting help?
Contact Support
Contact Support
How to find value, maximum value and minimum value of the data points
7 Jan 20256 minutes to read
Essential® Chart 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 chart point in the collection that has a specified Y-value. The search always should start at the beginning of the collection. |
FindValue(Double, String) |
It should return the chart point in the collection with the specified X or Y-value. |
FindValue(Double, String,index ) |
It should return the 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 chart point with the specified X or Y-value, and should start and end the search at the specified index. |
textBoxVale.Text = "180000";
dbl = Int64.Parse(textBoxValue.Text);
int index = 2;
int startIndex = 2;
int endIndex = 4;
ChartPoint dp1 = this.chartControl1.Series[0].Summary.FindValue(dbl);
ChartPoint dp2 = this.chartControl1.Series[0].Summary.FindValue(120000,"Y");
ChartPoint dp3 = this.chartControl1.Series[0].Summary.FindValue(500000, "Y",ref index);
//The chart point returns its points within the range of the specified index.
ChartPoint dp4 = this.chartControl1.Series[0].Summary.FindValue(70000, "Y", ref startIndex, endIndex);
textBoxValue = "180000";
dbl = Int64.Parse(textBoxValue.Text)
Dim index As Int16 = 0
Dim startIndex As Int16 = 2
Dim endIndex As Int16 = 4
dbl = Int64.Parse(textBoxValue.Text)
Dim dp1 As ChartPoint = Me.chartControl1.Series(0).Summary.FindValue(db1)
Dim dp2 As ChartPoint = Me.chartControl1.Series(0).Summary.FindValue(120000,"Y")
Dim dp3 As ChartPoint = Me.chartControl1.Series(0).Summary.FindValue(500000, "Y",ref index);
//The chart point returns its points within the range of the specified index.
Dim dp4 As ChartPoint = Me.chartControl1.Series(0).Summary.FindValue(70000, "Y", ref startIndex, endIndex);
FindMaximumValue
Properties
Method | Description |
---|---|
FindMaxValue() |
It should return the 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 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 chart point with a maximum value. The search should start at the specified index. |
FindMaxValue(String, Index , Index) |
It should return the chart point with a maximum value. The search should start and end at the specified index. |
startIndex = Int32.Parse(textBoxIndex.Text);
endIndex = Int32.Parse(textBox1.Text);
ChartPoint dp1 = this.chartControl1.Series[0].Summary.FindMaxValue();
ChartPoint dp2 = this.chartControl1.Series[0].Summary.FindMaxValue("Y");
int endIndex1 = 4;
ChartPoint dp3 = this.chartControl1.Series[0].Summary.FindMaxValue("Y", ref endIndex1);
ChartPoint dp4 = this.chartControl1.Series[0].Summary.FindMaxValue("Y", ref startIndex, endIndex);
startIndex = Int32.Parse(textBoxIndex.Text)
endIndex = Int32.Parse(textBox1.Text)
Dim dp1 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMaxValue();
Dim dp2 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMaxValue("Y");
int endIndex1 = 4;
Dim dp3 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMaxValue("Y", ref endIndex1);
Dim dp4 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMaxValue("Y", 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. |
startIndex = Int32.Parse(textBoxIndex.Text);
endIndex = Int32.Parse(textBox1.Text);
ChartPoint dp1 = this.chartControl1.Series[0].Summary.FindMinValue();
ChartPoint dp2 = this.chartControl1.Series[0].Summary.FindMinValue("Y");
int endIndex1 = 4;
ChartPoint dp3 = this.chartControl1.Series[0].Summary.FindMinValue("Y", ref endIndex1);
ChartPoint dp4 = this.chartControl1.Series[0].Summary.FindMinValue("Y", ref startIndex, endIndex);
startIndex = Int32.Parse(textBoxIndex.Text)
endIndex = Int32.Parse(textBox1.Text)
Dim dp1 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMinValue();
Dim dp2 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMinValue("Y");
int endIndex1 = 4;
Dim dp3 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMinValue("Y", ref endIndex1);
Dim dp4 As ChartPoint = Me.chartControl1.Series[0].Summary.FindMinValue("Y", ref startIndex, endIndex)