diff options
author | Lukas Winkler <github@lw1.at> | 2018-06-18 16:36:21 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-06-18 16:36:21 +0300 |
commit | cfe8dfd864de80a65ed891fedd3133e742c21458 (patch) | |
tree | e43cab6f4e16c012421738c6933f8e267fa295fb /plugins/CoreHome/DataTableRowAction | |
parent | 9e59d0097bd9f6b8dafa36b68726d8a7412e955f (diff) |
replace sparkline library with modern equivalent (#12066)
* replace sparkline library with modern equivalent
* test setting $enableSparklineImages to true for UI tests
* update LEGALNOTICE
* add minimum and maximum dots
* further improve sparklines
- no minimum/maximum if they are the same
- add offset to the top so that maximum isn't stuck at the border
- doubled resolution of image as it was a bit blurry and it's still
<1.5KB
* fix display size of sparklines
* make Sparklines red
* fix sparkline size in rowEvoluton
* change line colors to black
* lastPoint and padding
* update Sparkline to new version
* remove possibility to disable sparklines ($enableSparklineImages)
* handle formatted numbers
* Updates UI files
Diffstat (limited to 'plugins/CoreHome/DataTableRowAction')
-rw-r--r-- | plugins/CoreHome/DataTableRowAction/RowEvolution.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/DataTableRowAction/RowEvolution.php b/plugins/CoreHome/DataTableRowAction/RowEvolution.php index a241f04321..f7ab18c259 100644 --- a/plugins/CoreHome/DataTableRowAction/RowEvolution.php +++ b/plugins/CoreHome/DataTableRowAction/RowEvolution.php @@ -314,7 +314,7 @@ class RowEvolution // base64 encode the image and put it in an img tag $spark = base64_encode($spark); - return '<img src="data:image/png;base64,' . $spark . '" />'; + return '<img width="100" height="25" src="data:image/png;base64,' . $spark . '" />'; } /** Use the available metrics for the metrics of the last requested graph. */ |