|
Friday, 02 January 2009 16:55 |
|
JFreeChart is a free 100% Java chart library that makes it easy for developers to display professional quality charts in their applications. JFreeChart is used in StorYBook. It is a great library, but unfortunately it has some confusing settings. With this small tool you can explore all available settings needed to create a new ItemLabelPosition. The generated code can easily be copied to your own source code. // label position ItemLabelAnchor itemLabelAnchor = ItemLabelAnchor.OUTSIDE6; TextAnchor textAnchor = TextAnchor.BOTTOM_LEFT; TextAnchor rotationAnchor = TextAnchor.TOP_LEFT; double angle = Math.toRadians(270); ItemLabelPosition pos = new ItemLabelPosition( itemLabelAnchor, textAnchor, rotationAnchor, angle); renderer.setBasePositiveItemLabelPosition(pos); 
|
|
Last Updated on Saturday, 10 January 2009 20:52 |