Reputation: 303
I've migrated from JFreeChart to JavaFX charts but I can't seem to find any sort of equivalent to GroupedStackedBarRenderer. Is there a way I could obtain the effect of having stacked bar charts that are grouped together?
Upvotes: 2
Views: 386
Reputation: 159566
The chart referenced in your question was generated by JFreeChart. You can use JFreeChart in JavaFX via the FXGraphics2D bridge. There should be samples of how to do so included in the latest JFreeChart developer source distribution bundle.
FXGraphics2D is an implementation of Java2D's Graphics2D API that targets a JavaFX canvas. It has been built for use with Orson Charts and JFreeChart, but will be generally useful for any code that uses the Graphics2D API.
JavaFX does have it's own in-built JavaFX charting library. However, as far I know, the implementation does not include a built-in chart that matches the GroupedStackBarRenderer referenced in your question. You could extend the JavaFX charting library to create a custom chart that performs that function, however to do so would likely be a pretty complicated task and providing detailed information on that is probably outside the standard scope of a StackOverflow answer.
Upvotes: 3