title: how to draw graph in asp.net using c# without using zed graph
body: <p><strong>I had a an web application in which i want to show some data in graph for which i used zedgraph dll but now i want to draw graph only by using system dll's not with zed graph</strong></p>
  
  <p>zed graph code is as follows</p>
  
  <pre><code>protected void ZedGraphWeb1_RenderGraph(ZedGraph.Web.ZedGraphWeb webObject, System.Drawing.Graphics g, ZedGraph.MasterPane masterPane)
      {
  
          // Get the GraphPane so we can work with it
          GraphPane myPane = masterPane[0];
  
          // Set the title and axis labels        
  
          myPane.XAxis.Title.Text = "Order Status";
          myPane.YAxis.Title.Text = "No Of Orders";
          myPane.XAxis.Type = AxisType.Text;
          string[] labels = { "Pending", "Elapsed", "Dispatched", "Delivered" };
          myPane.XAxis.Scale.TextLabels = labels;
  
          //myPane.XAxis.Scale.TextLabels = arr1;
  
          // Declare a BarItem:- Bar Item is used for creating a bar     
          BarItem myCurve;
          BarItem myCurve2;
          // Declare a LineItem:- LineItem is used for creating a line     
  
          PointPairList listEcoPack = new PointPairList();
          PointPairList listProduct = new PointPairList();
  
          double[] lstEcoPack = new double[4];
          double[] lstProduct = new double[4];
  
  
                     OrderStatusoutput objOrderStatusoutput = new OrderStatusoutput();
              OrderStatusinput objOrderStatusinput = new OrderStatusinput();
  
                  objOrderStatusinput.StartDate = Convert.ToDateTime(txtfromdatepacks.Text).ToShortDateString();
                  objOrderStatusinput.EndDate = Convert.ToDateTime(txttodatepacks.Text).ToShortDateString();
  
                  objOrderStatusoutput.dsorderstatusresult = objHrservice.OrderStatus(objOrderStatusinput).dsorderstatusresult;
                  objHrservice.Close();
  
                  DataSet dsoreder = objOrderStatusoutput.dsorderstatusresult;
                  double EcoPendingOrders = Convert.ToDouble(dsoreder.Tables[4].Rows[0]["PendingOrders"]);
                  double EcoElapsed = Convert.ToDouble(dsoreder.Tables[4].Rows[0]["Elapsed"]);
                  double EcoDispatchedOrders = Convert.ToDouble(dsoreder.Tables[4].Rows[0]["DispatchedOrders"]);
                  double EcoDeliveredOrders = Convert.ToDouble(dsoreder.Tables[4].Rows[0]["DeliveredOrders"]);
  
                  double ProPendingOrders = Convert.ToDouble(dsoreder.Tables[3].Rows[0]["PendingOrders"]);
                  double ProElapsed = Convert.ToDouble(dsoreder.Tables[3].Rows[0]["Elapsed"]);
                  double ProDispatchedOrders = Convert.ToDouble(dsoreder.Tables[3].Rows[0]["DispatchedOrders"]);
                  double ProDeliveredOrders = Convert.ToDouble(dsoreder.Tables[3].Rows[0]["DeliveredOrders"]);
  
  
  
  
  
                  lstEcoPack[0] = EcoPendingOrders;
                  lstEcoPack[1] = EcoElapsed;
                  lstEcoPack[2] = EcoDispatchedOrders;
                  lstEcoPack[3] = EcoDeliveredOrders;
  
  
                  lstProduct[0] = ProPendingOrders;
                  lstProduct[1] = ProElapsed;
                  lstProduct[2] = ProDispatchedOrders;
                  lstProduct[3] = ProDeliveredOrders;
              }
  </code></pre>