Open Flash Chart
Posted by Mike Haller
on Friday, August 8. 2008
at 06:12
in Java
For a private project i'm working now and then, i came across a nice library called Open Flash Chart (OFC). It let's me create nice looking charts with low effort. After hacking Maven and hooking into the event dispatcher for goals, the tool is persisting the data collected from the local Maven builds of developers. A web application aggregates the data and uses OFC to display graphs. It's planned to provide more data graphs, such as count of tests, successes, failures and skipped tests, coverage data etc.

This is a graph showing the durations of the surefire:test goal on a sample project. Hovering over the dots will show a tooltip with additional information.
Version 1 of OFC is using a proprietary data format which looks like this:
&title=com.smartwerkz.commons&
&tool_tip=Build+#x_label#+took+&val;ms&
&x_label_style=10,0x80a033,2&
&y_legend=Goal+surefire:test,10,#736AFF&
&y_max=4207&
&line_hollow=2,Build+Time+[ms],10,4&
&values=3825,1222,948,928,926,1002&
Upcoming Version 2 of OFC is going to use JSON as the data format, which will hopefully be more clearer to use and easier to generate.
