Last updated October 30, 2009 19:57, by Chris Gerrard
Feedicon  

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



  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close