コード例 #1
0
        void loadtong_doanhthu(int thang)
        {
            chart3.Series.Clear();
            chart3.Series.Add("ngay");

            DataTable table = hd.thongkedoanhthu(thang);

            dataGridView1.DataSource = table;
            foreach (DataRow row in table.Rows)
            {
                DateTime ngay = (DateTime)row.ItemArray[0];
                chart3.Series["ngay"].Points.AddXY(ngay, float.Parse(row.ItemArray[1].ToString()));
            }
        }