我现在在控件上随机画了10个点,然后想用文本(labels)定义X坐标轴
            // Make up some random data points
            string[] labels = { "USA", "Spain\nMadrid", "Qatar", "Morocco", "UK", "Uganda",
                                            "Cambodia", "Malaysia", "Australia", "Ecuador" };            // Set the XAxis to Text type
            myPane.XAxis.Type = AxisType.Text;            // Set the XAxis labels
            myPane.XAxis.Scale.TextLabels = labels;
我想让10个标签都能显示在图上,但是总是只能显示5个,不知道怎么设置才能全部显示10个标签??谢谢

解决方案 »

  1.   

    参考:
    http://blog.csdn.net/gisfarmer/archive/2009/01/15/3775491.aspx
    http://blog.csdn.net/gisfarmer/archive/2009/01/06/3712756.aspx
      

  2.   


     // Make up some random data points
                string[] labels = { "USA", "Spain\nMadrid", "Qatar", "Morocco", "UK", "Uganda",
                                                "Cambodia", "Malaysia", "Australia", "Ecuador" };            myPane.XAxis.Type = AxisType.Text;            myPane.XAxis.Scale.TextLabels = labels;
    点的位置和label的一样就行,你画出的五个和点对应吗?