• λ我爱Aspx >> Asp.Net >> zedgraph绘制直方图,直方图数据不能显示小数
  • zedgraph绘制直方图,直方图数据不能显示小数

  • :aspxer  Դ:csdn  :2007-7-6 2:51:53  ؼ:数据
  • 我的y轴是字符型,x轴是数字型,

    google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";

    结果22.15总是显示为22,小数显示不出来,

    看了有一天了,还是做不出来,请大家帮帮忙,

    代码如下:

    GraphPane myPane = zgc.GraphPane;

    //先清空

    myPane.Title.Text="";

    myPane.XAxis.Title.Text="";

    myPane.YAxis.Title.Text="";

    myPane.CurveList.Clear();

    myPane.GraphObjList.Clear();

    // 设置图表的说明文字

    myPane.Title.Text = "直方图";

    myPane.Title.FontSpec.FontColor=Color.Blue;

    // 设置横坐标的说明文字

    myPane.XAxis.Title.Text = "效率(%)";

    myPane.XAxis.Title.FontSpec.Size=15;

    // 设置纵坐标的说明文字

    myPane.YAxis.Title.Text = "车间";

    myPane.YAxis.Title.FontSpec.Size=15;

    //设置基于y轴排列柱状图

    myPane.BarSettings.Base=BarBase.Y;

    //y轴刻度显示为文本类型

    myPane.YAxis.Type=AxisType.Text;

    // turn off the opposite tics so the Y tics don"t show up on the Y2 axis

    Ҷƪл˵?
  • һƪvb2005 Treeview ,添加多级子节点问题.
    һƪ用户在text框点击后,得到用户的输入焦点??