Skip to content

Commit

Permalink
Feature - fullscreen render functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogartPint committed Jun 7, 2016
1 parent 8d9cd45 commit f711415
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ZC {
private $theme;
private $width;
private $height;
private $fullscreen = false;
private $config;

private $data;
Expand Down Expand Up @@ -38,6 +39,7 @@ public function render() {
$width = $this->width;
$height = $this->height;
$theme = $this->theme;
$fullscreen = $this->fullscreen;

$jsonConfig = json_encode($this->config);
$gold = <<< EOT
Expand All @@ -48,6 +50,7 @@ public function render() {
theme: "$theme",
width: "$width",
height: "$height",
fullscreen: $fullscreen,
data: $jsonConfig
}
);
Expand Down Expand Up @@ -219,6 +222,10 @@ public function setChartHeight($height) {
public function setChartTheme($theme) {
$this->theme = $theme;
}
public function setFullscreen() {
$this->fullscreen = !$this->fullscreen;
}


public function enableScaleXZooming() {
$this->config['scale-x']['zooming'] = 'true';
Expand Down

0 comments on commit f711415

Please sign in to comment.