Charting New Territory: Creating Charts with JFreeChart

Creating charts is one of the most common types of data visualization. We showed in the section "To the Vector Goes the Spoils" that we can make vector images using the Batik API or by directly styling XML data into SVG. This requires a lot of work to create even a basic chart, because you'll have to draw each shape separately. The JFreeChart API is a solution to this problem. It uses Batik behind the scenes but has higher-level objects designed to make charting much easier. JFreeChart can produce pie, bar, line, area, scatter, time series, open/high/low/close, and other types of charts. ...

Get Wicked Cool Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.