Search found 2 matches
- Mon Aug 11, 2003 9:04 pm
- Forum: JFreeChart
- Topic: Add note (some text) to graph under the X-axis label
- Replies: 1
- Views: 2705
Hi, Use TextTitle class to add text anywhere on the graph. The following code will help: TextTitle chartinfo = new TextTitle( "Chart Info" ); chartinfo.setPosition( TextTitle.BOTTOM ); // position the title below X axis chartinfo.setHorizontalAlignment( TextTitle.LEFT ); // set the horizontal alignm...
- Fri Aug 08, 2003 4:55 pm
- Forum: JFreeChart
- Topic: dataset color
- Replies: 3
- Views: 4170
Hi, The setSeriesPaint() method sets the color of a series but how can we set the color of individual datavalues in that series, which is usually done based on a condition. Say in a series with datavalues [2, 4, 2], the first and last values(2) are passed but the second value(4) fails and we need to...