From 79edd16cd8f8d6d19a27571f8e91b9b54a69d85a Mon Sep 17 00:00:00 2001 From: Lukas Demetz Date: Fri, 11 Sep 2015 20:51:50 +0200 Subject: [PATCH 1/9] Address issue: Save graphs as image #32 Added a button to save chart as PNG --- beer-panel.php | 6 + index.php | 1 + js/beer-chart.js | 8 + js/dygraph-extra.js | 354 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 js/dygraph-extra.js diff --git a/beer-panel.php b/beer-panel.php index aca8c76..7ed7cb1 100644 --- a/beer-panel.php +++ b/beer-panel.php @@ -44,6 +44,12 @@
Refresh Chart

+ +
+ +
Save Chart
+
+
diff --git a/index.php b/index.php index 1b848d7..938758a 100644 --- a/index.php +++ b/index.php @@ -95,6 +95,7 @@ function prepareJSON($input) { +