Ejemplo n.º 1
0
 private void btnFillter_Click(object sender, EventArgs e)
 {
     chartRevenue.Series["Doanh Thu"].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
     chartRevenue.DataSource = Revenue.GetTotalPriceByDate(dtpFrom.Value, dtpTo.Value);
     chartRevenue.Series["Doanh Thu"].YValueMembers = "price";
     chartRevenue.Series["Doanh Thu"].YValueType    = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
     chartRevenue.Series["Doanh Thu"].XValueMember  = "time";
     chartRevenue.Series["Doanh Thu"].XValueType    = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
 }
Ejemplo n.º 2
0
 private void frmRevenue_Load(object sender, EventArgs e)
 {
     btnBack.Enabled = false;
     loadLabel();
     chartRevenue.DataSource = Revenue.GetTotalPriceByDate(dtpFrom.Value, dtpTo.Value);
     chartRevenue.Series["Doanh Thu"].YValueMembers = "price";
     chartRevenue.Series["Doanh Thu"].YValueType    = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
     chartRevenue.Series["Doanh Thu"].XValueMember  = "time";
     chartRevenue.Series["Doanh Thu"].XValueType    = System.Windows.Forms.DataVisualization.Charting.ChartValueType.String;
 }