有一个数据库A(价格,日期)
该表每天都会向里面新增数据,如何用C#实现用横坐标表示时间,纵坐标表示价格的曲线图
GDI+
看看我大一的时候的课程设计
诸如这样的代码就可以啦:
for (int counter = 0; counter <= 24; counter++)
{
Pen mypen = new Pen(Color.Green, 3);
Graphics myGraphics = this.tabPage3.CreateGraphics();
Point drawPoint = new Point(30 + (700 * counter / 24), 350 - mydblData[counter] * (300 / 10));
ENDPOINT = drawPoint;
myGraphics.DrawLine(mypen, STARTPOINT, ENDPOINT);
STARTPOINT = drawPoint;
}
//
public void DrawMapXY(Bitmap imageTemp, Pen DrawPen, float XNum, float YNum, int X1Num, int Y1Num)//指定坐标两点画线
{
Graphics