Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulienMoumne <julien@piwik.org>2012-02-08 17:26:43 +0400
committerJulienMoumne <julien@piwik.org>2012-02-08 17:26:43 +0400
commite1d7b66bb57e403599a2b3e09a3cd4046039600b (patch)
tree15b687ca7a9b270403f5923de6580429aab86772 /core/ReportRenderer/Html.php
parent72aa5f4c7a0b8ee2ba031bae38f9c8274c64b62e (diff)
fixes #2862 increasing static graph resolution when generating PDF reports
git-svn-id: http://dev.piwik.org/svn/trunk@5786 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ReportRenderer/Html.php')
-rw-r--r--core/ReportRenderer/Html.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/core/ReportRenderer/Html.php b/core/ReportRenderer/Html.php
index 42b70ade91..d1666843ca 100644
--- a/core/ReportRenderer/Html.php
+++ b/core/ReportRenderer/Html.php
@@ -17,6 +17,9 @@
*/
class Piwik_ReportRenderer_Html extends Piwik_ReportRenderer
{
+ const IMAGE_GRAPH_HEIGHT = 200;
+ const IMAGE_GRAPH_WIDTH = 700;
+
const REPORT_TITLE_TEXT_SIZE = 11;
const REPORT_TABLE_HEADER_TEXT_SIZE = 11;
const REPORT_TABLE_ROW_TEXT_SIZE = 11;
@@ -24,6 +27,16 @@ class Piwik_ReportRenderer_Html extends Piwik_ReportRenderer
private $rendering = "";
+ public function getStaticGraphHeight()
+ {
+ return self::IMAGE_GRAPH_HEIGHT;
+ }
+
+ public function getStaticGraphWidth()
+ {
+ return self::IMAGE_GRAPH_WIDTH;
+ }
+
public function setLocale($locale)
{
//Nothing to do
@@ -119,8 +132,8 @@ class Piwik_ReportRenderer_Html extends Piwik_ReportRenderer
if($displayGraph)
{
- $smarty->assign("graphWidth", Piwik_ReportRenderer::IMAGE_GRAPH_WIDTH);
- $smarty->assign("graphHeight", Piwik_ReportRenderer::IMAGE_GRAPH_HEIGHT);
+ $smarty->assign("graphHeight", $this->getStaticGraphHeight());
+ $smarty->assign("graphWidth", $this->getStaticGraphWidth());
$smarty->assign("renderImageInline", $this->renderImageInline);
if($this->renderImageInline)