public  void Add(AxisLabel label)
 {
     if (labels == null)
         labels = new List<object>();
     labels.Add(label);
 }
    /// <summary>
    /// 获取初始化图表数据 Create By weilin
    /// </summary>
    /// <returns></returns>
    public void GetInitChartData()
    {
        string strTime = "";

        if (Request["TIME"] != null)
        {
            strTime = Request["TIME"].ToString();
        }
        else
        {
            strTime = "01 27 2015  4:51PM";
        }

        string strJson = "";

        //定义标题
        OpenFlashChart.OpenFlashChart objChart = new OpenFlashChart.OpenFlashChart();
        SetFlashChartTitle(objChart, "工作曲线图");

        // 获取坐标值
        string strConnection = ConfigurationManager.ConnectionStrings["i3OracleConnect"].ToString();

        DataTable objTable   = new DataTable();
        string    strLimsSql = "select * from T_DC_ONLINE_MOM_RST" + " where TIME=" + "'" + strTime + "'";

        objTable = ExecuteDataTableEx(strLimsSql, strConnection);


        List <double> objTaList = new List <double>();                          //气温Y轴数据对象

        OpenFlashChart.XAxisLabels objXList = new OpenFlashChart.XAxisLabels(); //定义X轴数据对象

        for (int i = 0; i < objTable.Rows.Count - 1 && objTable.Rows.Count % 2 == 0; i = i + 2)
        {
            if ((Convert.ToDouble(objTable.Rows[i + 1]["VALUE"]) - 0.0) > 0.000001)
            {
                objTaList.Add(Convert.ToDouble(objTable.Rows[i + 1]["VALUE"]));

                OpenFlashChart.AxisLabel objXLable = new OpenFlashChart.AxisLabel();
                objXLable.Text = (objTable.Rows[i]["VALUE"]).ToString();
                objXList.Add(objXLable);
            }
        }

        AddFlashChartLine(objChart, objTaList, "", OpenFlashChartColor[0], "#val#");

        //设置图表X轴对象
        SetFlashChartXAxis(objChart, objXList);

        //设置图表Y轴对象
        SetFlashChartYAxis(objChart, 0, 100, 10);
        ////设置图表Y轴对象
        //List<string> objYList = new List<string>();
        //objYList.Add("1");
        //objYList.Add("10");
        //objYList.Add("20");
        //objYList.Add("30");
        //objYList.Add("50");
        //objChart.Y_Axis.Labels.SetLabels(objYList);
        //添加X轴名称
        AddFlashChartXLegend(objChart, "浓度值X");
        //添加Y轴名称
        AddFlashChartYLegend(objChart, "吸收值Y=a+bX");
        strJson = objChart.ToPrettyString();

        Response.Write(strJson);
        Response.End();
    }