SHARE
TWEET

Untitled

a guest Dec 12th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public function graph($category) {
  2.         $w = $this->request['w'];
  3.         $h = $this->request['h'];
  4.         if (!$w) {
  5.             $w = 500;
  6.         }
  7.         if (!$h) {
  8.             $h = 300;
  9.         }
  10.         require_once( IPS_KERNEL_PATH . '/classGraph.php' );
  11.         $graph = new classGraph();
  12.         $graph->options['title'] = $this->lang->words['trac_graph_title'];
  13.         $graph->options['width'] = $w;
  14.         $graph->options['height'] = $h;
  15.         $graph->options['style3D'] = 1;
  16.         $versions = $this->versions->findAllNamesForCat($category); // <- /sources/classes/trac_model_versions.php LIB
  17.         $counts = $this->issues->findAllCountsByFixedIn(); // <- /sources/classes/trac_model_issues.php LIB
  18.         // fetch all versions, make those Labels.
  19.         // count versions, and return the fixed in counts for those versions (probably through some fancy joins)..
  20.         $graph->addLabels( array( '1.0.0', '1.0.1', '1.0.2', '1.1.0', '1.1.1', '1.2.0') );
  21.         $graph->addSeries( '', array( '11', '2', '31', '27', '12', '49') );
  22.         $graph->options['charttype'] = 'Area';
  23.         $graph->display();
  24.         exit;
  25.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top