-
also try using lbChart2D.validate(true) in order to see if the library can catch anything you are doing wrong.
by the way, pack will find the object's optimal size automatically, and getImage is only used to return a BufferedImage of the chart. When you are adding it to a GUI, then pack() is all you need.
2009-10-16 01:28:45 UTC by jjsimas
-
i don't know. this library is not in active development.
but try this:
comment out the preferred size method and the getImage method calls
...
lbChart2D.setLegendProperties(legendProps);
// lbChart2D.setPreferredSize(sizes);
graph2DProps.setNumbersAxisTitleText("Present Dollars");
lbChart2D.setGraphChart2DProperties (graph2DProps);
lbChart2D.addGraphProperties (graphProps);...
2009-10-16 01:22:42 UTC by jjsimas
-
LBChart2D lbChart2D = new LBChart2D();
Object2DProperties object2DProps = new Object2DProperties();
object2DProps.setObjectTitleText ("Total Present Value");
Chart2DProperties chart2DProps = new Chart2DProperties();
LegendProperties legendProps = new LegendProperties();
legendProps.setLegendExistence (true);
GraphChart2DProperties graph2DProps = new...
2009-10-15 23:59:57 UTC by luisluix
-
has anyone implemented this feature? I'm trying to do the same with Chart2d but am having difficulties. Kristian, do you have any tips?.
2009-06-17 00:22:58 UTC by xwedge