Replies: 2 comments 2 replies
-
Now planned and tracked in this project: https://github.com/users/matoos32/projects/1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jcobb88 I added a builder for XYLineAnnotation. It's in the develop branch as of pull request #58. There's an example in the demo app I just migrated in (JFreeChartBuilderDemo.java#L304) Give it a go and let me know what you think! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In response to jfree/jfreechart#197 (comment)
@jcobb88 wrote:
@jcobb88 thanks for your kind feedback. Happy it's been useful.
I examined the XYAnnotation type hierarchy and I see each implementing class has a different constructor. IXYAnnotationBuilder was quickly coded around XYPointerAnnotation without assessing all of the jfreechart annotation classes. So IXYAnnotationBuilder will likely need additional methods to suit all the XYAnnotation implementations, but that doesn't scale well and will get ugly. So it needs some thought. I'll create a project to support all annotation types.
In the mean time I found you can add the XYLineAnnotation to the disabled-gap chart using the integer indices of desired date-axis points. See the snippet below to further decorate the built chart.
Inserting new charts in the demo project JFreeChartBuilderDemo:
Beta Was this translation helpful? Give feedback.
All reactions