In my application, i have created the bar chart using the JFreechart and also added the Value marker for y= 100 and its working fine.From the below code i get the label on right side (but inside the chart). But i need to add the text against the y = 100 on right side (outside the chart).
Expand|Select|Wrap|Line Numbers
- Marker target = new ValueMarker(100);
- target.setPaint(Color.BLACK);
- target.setLabel("Test");
- target.setLabelAnchor(RectangleAnchor.RIGHT);
- target.setLabelTextAnchor(TextAnchor.BASELINE_RIGHT);
- target.setLabelFont(new Font("Arial", Font.PLAIN, 16));
- p.addRangeMarker(target);
Please share the suggestions and Thanks in Advance.