Hi Clo,
We regret for the inconvenience caused.
We suggest you to use multiple axes for different graphs to scale the point values according to the graphs.Please refer the below code snippet.
[C#]
ChartAxis secYAxis = new ChartAxis(ChartOrientation.Vertical);
this.chartControl1.Axes.Add(secYAxis);
this.chartControl1.Series[0].YAxis = secYAxis;
secYAxis.Range = new MinMaxInfo(0, 100, 20);
Query#1:How can the "Windows Form Designer generated code" just define a blank chartcontrol zone and then let me define all the parameters when plotting each graph?
In our current implementation,your requirement can't be achieved to define a blank chartcontrol through windows form designer.but we can clear the default series in the chart by setting the AddRandomSeries of chartcontrol to false and clear all the default series in the chart.please refer below code snippet.
[C#]
this.chartControl1.AddRandomSeries = false;
this.chartControl1.Series.Clear();
Query#2:How can I show the last value of a line chart?
Your requirement can be achieved by getting the Point values from specific series.Please refer below code snippet.
[C#]
if (this.chartControl1.Series.Count != 0)
{
textBox1.Text = Convert.ToString(this.chartControl1.Series[0].Points[this.chartControl1.Series[0].Points.Count - 1].X);
textBox2.Text = Convert.ToString(this.chartControl1.Series[0].Points[this.chartControl1.Series[0].Points.Count - 1].YValues[0]);
}
Query#3:Can a watermark be behind the grid (the zOrder.behind just puts it behind the chart series)?
Your requirement can be achieved by set Zorder property to behind.Please refer the below code snippet.
[C#]
this.chartControl1.ChartArea.Watermark.ZOrder = ChartWaterMarkOrder.Behind;
For your convenience, we have created sample and the same can be downloaded from the following link.
Forum-1518929250.zipPlease get back to us with more information if i misunderstood your queries and updated you.
Regards,
Siva