各位大哥,ChartDirector哪位用过,我的中文很模糊,怎么样变得清楚一些呢
本人急用,说话算话,报酬 500元话费
public class testchair {
 //Name of demo program程序名字
    public String toString() { return "Cylinder Bar Shading"; }    //Number of charts produced in this demo这个图的数量
    public int getNoOfCharts() { return 1; }    //Main code for creating charts//主要的代码
    public void createChart(ChartViewer viewer, int index)
    {
        // The data for the bar chart圆注的个数
        double[] data = {450, 560, 630, 800, 1100, 1350, 1600, 1950, 2300,2700,2800,2900,3000,3100,3200,3300,3400,3500,3600,3700};
         
          
        // The labels for the bar chart//圆注的下面的数
        String[] labels = {"华华华", "我是中我是中", "华华华", "华华华", "华华华田田田田", "华华华", "华华华",
            "华华华", "华华华", "华华华","田华华华","田华华华","田田","田田","田田","田田","田田","田田","田田","田田",};        // Create a XYChart object of size 600 x 380 pixels. Set background color to
        // brushed silver, with a 2 pixel 3D border. Use rounded corners of 20 pixels
        // radius.
        XYChart c = new XYChart(600, 400, Chart.brushedSilverColor(),//第二个数是高度
            Chart.Transparent, 2);//设置边框        // Add a title to the chart using 18pts Times Bold Italic font. Set
        // top/bottom margins to 8 pixels.
        c.addTitle("Annual Revenue for Star Tech", "Times New Roman Bold Italic", 18
            ).setMargin2(0, 0, 8, 8);        // Set the plotarea at (70, 55) and of size 460 x 280 pixels. Use transparent
        // border and black grid lines. Use rounded frame with radius of 20 pixels.
        c.setPlotArea(70, 55, 460, 280, -1, -1, Chart.Transparent, 0x000080);//设置线的颜色
        c.setRoundedFrame(0xffffff, 20);//设置圆形        // Add a multi-color bar chart layer using the supplied data. Set cylinder
        // bar shape.
        c.addBarLayer3(data).setBarShape(Chart.CircleShape);//设置圆柱        // Set the labels on the x axis.
             //  c.setDefaultFonts("simsun.ttc","simsun.ttc","simsun.ttc","simsun.ttc");
      
        // Show the same scale on the left and right y-axes
        c.syncYAxis();//设置比例y轴右边
       
//        Graphics2D g = null;
// Graphics2D   g2   =   (Graphics2D)   g;   
//        double baseY = 0;
// double angel = 0;
// double baseX = 0;
// g2.rotate(angel,   baseX,   baseY);         //弧度,基点   
String df="我是中我是中";
        // Set the left y-axis and right y-axis title using 10pt Arial Bold font
//c.setBackground(0xaaaaff,0xaaffaa);
     //   c.yAxis().setTitle(df, "宋体 Bold",12).setFontAngle(45);//设置左边的字
     //   c.yAxis2().setTitle("我是中 ", "宋体 Bold", 10).setFontAngle(45);//设置右边的字
        c.xAxis().setLabels(labels);
        c.xAxis().setLabelStyle("TT rebuchet MS", 10,0x050505).setFontAngle(45);//设置字的倾斜
        // Set y-axes to transparent
         c.yAxis().setColors(Chart.Transparent);//y轴透明
        c.yAxis2().setColors(Chart.Transparent);        // Disable ticks on the x-axis by setting the tick color to transparent
        c.xAxis().setTickColor(Chart.Transparent);//设置下面有没有小箭头
        
        // Set the label styles of all axes to 8pt Arial Bold font
        // Output the chart/  c.xAxis().setBackground(0xaaaaff);
        viewer.setImage(c.makeImage());        //include tool tip for the chart
        viewer.setImageMap(c.getHTMLImageMap("clickable", "",
            "title='Year {xLabel}: US$ {value}M'"));
    }    public static void main(String[] args)
    {
        //Instantiate an instance of this demo module
        testchair demo = new testchair();        //Create and set up the main window
        JFrame frame = new JFrame(demo.toString());
        frame.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {System.exit(0);} });
        frame.getContentPane().setBackground(Color.white);        // Create the chart and put them in the content pane
        ChartViewer viewer = new ChartViewer();
        demo.createChart(viewer, 0);
        frame.getContentPane().add(viewer);        // Display the window
        frame.pack();
        frame.setVisible(true);
    }}