在<HTML>里横坐标的属性xtitlealign="0"

解决方案 »

  1.   


    我用的版本
    jcomm 0.91
    jfree 0.916没有// rangeAxis.setVerticalCategoryLabels(true);
        这个方法
    我就用这个方法
      rangeAxis.setVerticalTickLabels(true);
    可是不能达到我要的效果啊!
      

  2.   

    to hilber(稀薄) ( ) 
    把图扩大试试,要不把年份2005写成05,柱子太多了也会影响视觉,所以不要太多。图根据页面的要求是一定的啊!不可能有的大有的小啊!如果日期写全的话用不了几根柱子就会重叠到一起阿
    to tclsnow(XT) 
    把日期给截了,然后一行一行显示,不过这是最笨的方法。
    这个也不行啊!因为JfreeChart好像默认四个四个显示啊!如果你是一个一个来的话后面也会增加4各空格阿
      

  3.   

    用JProgressBar实现可以实现你的东西,不过字是横过来的
    final JProgressBar BlackProgressBar = new JProgressBar();
    BlackProgressBar.setOrientation(JProgressBar.VERTICAL);
    BlackProgressBar.setString("猴年马月猪日");
    BlackProgressBar.setStringPainted(true);
      

  4.   

    但是JfreeChart有什么办法吗?555555555555555
      

  5.   

    用这个方法substring()得到的日期剖纷下 一个一个打出来
      

  6.   

    String dateStr = "1999/01/01";for(int i=0;i<dateStr.length();i++)
    {
    out.print(dateStr.substring(i,i+1)+"<br>");}很简单的实现
      

  7.   

    import java.awt.*;
    import javax.swing.*;class VerticalLabel extends JLabel{
      public VerticalLabel(String text){
        super(text);
      }
      
      public void paint(Graphics g){
        Graphics2D g2 = (Graphics2D)g;
        g2.rotate(Math.PI / 2);
        g2.drawString(this.getText(), 0, 0);
      }
    }public class Untitled7 extends JFrame{
      public Untitled7() {
        this.getContentPane().add(
            new VerticalLabel("2005-5-20 19:58:09"), BorderLayout.CENTER);
        this.setSize(400, 300);
        this.setLocation(200, 200);
        this.validate();
        this.setVisible(true);
      }
      
      public static void main(String[] args){
        Untitled7 test = new Untitled7();
      }
    }
      

  8.   

    我用 domainAxis.setVerticalCategoryLabels(true);设置 columnKey 垂直显示的时候
    发现如果字多一点的话会出现columnKey 变成两行的情况阿不知道怎么解决啊?
      

  9.   

    我用 domainAxis.setVerticalCategoryLabels(true);设置 columnKey 垂直显示的时候
    发现如果字多一点的话会出现columnKey 变成两行的情况阿不知道怎么解决啊?
    如果能解决分全部给你啊
      

  10.   

    我用 domainAxis.setVerticalCategoryLabels(true);设置 columnKey 垂直显示的时候
    发现如果字多一点的话会出现columnKey 变成两行的情况阿不知道怎么解决啊?
    如果能解决分全部给你啊