Last updated October 30, 2009 19:57, by Chris Gerrard
Creating Bullet Graphs in Java
- download the ZIP file—BulletGrapherator.zip from here
- create your Bullet Graph, following these steps:
File file = new File("c:\\tmp\\TestBulletGraph.png");
BulletGraph graph = new BulletGraph(); // loads the BulletGraph via configuration file
setupGraph(graph); // configure the BulletGraph
BulletGraphRenderer renderer = new BulletGraphRenderer(graph);
renderer.renderImage("png", file);
Example configuration code:
private static void setupGraph(BulletGraph graph) {
graph.setLabelLineOne("Bullet Graph label text");
graph.setLabelLineTwo("line two text");
graph.setPerformance(277);
graph.setComparison(255);
}
The Bullet Graph






