首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java相关 >

jfreechart 怎么在柱状图中画一条平均线

2012-02-28 
jfreechart 如何在柱状图中画一条平均线1.如下图如何在柱状图上加一条横线2.如何设置X轴坐标上的文字垂直

jfreechart 如何在柱状图中画一条平均线
1.如下图如何在柱状图上加一条横线

2.如何设置X轴坐标上的文字垂直显示,现在通过setCategoryLabelPositions(角度)可将文字垂直显示,但是字是躺着显示的,有没有更好的办法
3.默认图例的位置是在图的下方,如何设置显示在图的的右边

[解决办法]

[解决办法]
去官网看看有无这种实现的例子
google api
[解决办法]
没用过 帮顶
[解决办法]

Java code
        // couldn't get the label above to appear in front, so using an            // annotation instead...            CategoryTextAnnotation a = new CategoryTextAnnotation("Minimum grade to pass", "Robert", 0.71);           a.setCategoryAnchor(CategoryAnchor.START);           a.setFont(new Font("SansSerif", Font.PLAIN, 12));           a.setTextAnchor(TextAnchor.BOTTOM_LEFT);           plot.addAnnotation(a); 

热点排行