<?php require_once '../vendor/autoload.php'; use koenster\PHPGraphs\PHPChart; $chart = new PHPChart($type); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <title>PHP Graphs - <?php echo $type; ?> </title> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> <?php foreach ($chart->getFactory()->getCss() as $css) { ?> <link rel="stylesheet" href="<?php echo $css; ?> "> <?php } ?>
/** * Test the existence of JS / CSS * * @author Koen Blokland Visser */ public function testJsAndCss() { $this->assertTrue(is_array($this->PHPChart->getFactory()->getJs())); $this->assertTrue(is_array($this->PHPChart->getFactory()->getCss())); }