I have an easy chart component that has a pen with a constant target value that I’d like to add a Y-Axis label to with the current numeric value of the pen. Ideally the label is the same color as the pen itself and next to the line. Is there any easy way to add such a label using any of the JFreeChart methods? I’ve looked and I’m not sure which JFreeChart methods would allow me to do this.
Here’s a screenshot of the trend. The green line is the constant value pen with a value of 20%. I’d like to have a label, in the same green color as the pen, on the Y-Axis that says “20” in the same font as the Y-Axis labels.