C1.Win.Chart.Interaction.RangeSelector rang;
private void Form1_Load(object sender, EventArgs e)
{
rang = new C1.Win.Chart.Interaction.RangeSelector(flexChart1);
// rang.Location = new System.Drawing.Point(573, 153 + 262);
rang.Visible = true;
this.rang.ValueChanged += new EventHandler(rang_ValueChanged);
this.flexChart1.Header.Content = "FlexChart";
this.c1Chart1.Header.Visible = true;
this.c1Chart1.Header.Text = "C1Chart";
}
void rang_ValueChanged(object sender, EventArgs e)
{
flexChart1.AxisX.Min = rang.LowerValue;
flexChart1.AxisX.Max = rang.UpperValue;
}
加了这样一段代码。但是主窗体运行后并没有显示。
|