chartControl 做带滚动条的曲线图
我用chartControl 做了一个曲线图,这个图没有滚动条,请问,如何用chartControl 做一个带滚动条的曲线图,还是 chartControl 根本就不能做带滚动条的曲线图。请高手指点。代码如下:
protected void Page_Load(object sender, EventArgs e)
{
Chart c1 = new SmoothLineChart();
Chart1.XAxisFont.StringFormat.FormatFlags = System.Drawing.StringFormatFlags.DirectionVertical;
sqlconn = sqlServerDatabase.dbConn();
string sqlstr = "select GPSDATA_TIME, GPSDATA_DELTAX,GPSDATA_DELTAY,GPSDATA_DELTAZ from t_gpsdata where gpsdata_deltaz<0.2 and gpsdata_deltaz>-0.2 and gpsdata_deltaz!=0 and gpsdata_deltax>7";
SqlCommand command = new SqlCommand(sqlstr, sqlconn);
c1.DataSource = command.ExecuteReader();
c1.DataXValueField = "GPSDATA_TIME";
c1.DataYValueField = "GPSDATA_DELTAX";
c1.DataBind();
c1.Line.Color = System.Drawing.Color.Blue;
c1.DataLabels.Visible = true;
Chart1.Charts.Add(c1);
Chart1.RedrawChart();
}
}
------解决方案--------------------
http://download.csdn.net/detail/libinguest/1531255#comment