From 58956de8decad6eccaef7f80b8b1b9c4bd9bbce1 Mon Sep 17 00:00:00 2001 From: Brian Gann Date: Tue, 23 Jul 2019 06:08:34 +0200 Subject: [PATCH] add ngInject, update changelog and version (#184) --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ README.md | 38 -------------------------------------- package.json | 2 +- src/piechart_ctrl.ts | 1 + 4 files changed, 40 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65d673c..d58134a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [1.3.8] - 2019-07-22 + +- hotfix for older versions of grafana + ## [1.3.7] - 2019-07-22 - conversion to typescript @@ -8,3 +12,37 @@ - use toolkit for building - fix for issue #154 +## 1.3.3 + +* Fix legend sorting: [#145](https://github.com/grafana/piechart-panel/issues/145) + +## 1.3.2 + +* Automatically set legend width if Internet Explorer 11 and positioned to the right: [#148](https://github.com/grafana/piechart-panel/issues/148) + +## 1.3.1 + +* Fix scrolling and legend issues in Internet Explorer 11: [#143](https://github.com/grafana/piechart-panel/issues/143) + +## 1.3.0 + +* Fixes for legend and piechart rendering and sorting: [#138](https://github.com/grafana/piechart-panel/pull/138), [#136](https://github.com/grafana/piechart-panel/pull/136) +* Fix for decimal field for percentages [#108](https://github.com/grafana/piechart-panel/pull/108) + +## 1.1.5 + +* Fix for color picker in legend +* Fix for - [Values in legend are displayed raw, not with the correct unit](https://github.com/grafana/piechart-panel/issues/51). Thanks, [@conet](https://github.com/conet) +* Fix for - [Legend overlaps with graphs](https://github.com/grafana/piechart-panel/issues/34). Thanks, [@smalik03](https://github.com/smalik03) + +## 1.1.4 +* Add support for combining small slices (https://github.com/grafana/piechart-panel/pull/43) +* Add option to show percentage in legend https://github.com/grafana/piechart-panel/pull/41 + +## 1.0.2 + +* Add piechart piece divider setting +* Remove Unused code +* Adds fontsize option for labels on graph +* Only show the displaied piechart value in legend +* Add possibility to pick stat to use for piechart diff --git a/README.md b/README.md index 7dd0539..29fc242 100644 --- a/README.md +++ b/README.md @@ -38,41 +38,3 @@ path = /home/your/clone/dir/piechart-panel Note that if you clone it into the grafana plugins directory you do not need to add the above config option. That is only if you want to place the plugin in a directory outside the standard plugins directory. Be aware that grafana-server needs read access to the directory. - -# Changelog - -## 1.3.3 - -* Fix legend sorting: [#145](https://github.com/grafana/piechart-panel/issues/145) - -## 1.3.2 - -* Automatically set legend width if Internet Explorer 11 and positioned to the right: [#148](https://github.com/grafana/piechart-panel/issues/148) - -## 1.3.1 - -* Fix scrolling and legend issues in Internet Explorer 11: [#143](https://github.com/grafana/piechart-panel/issues/143) - -## 1.3.0 - -* Fixes for legend and piechart rendering and sorting: [#138](https://github.com/grafana/piechart-panel/pull/138), [#136](https://github.com/grafana/piechart-panel/pull/136) -* Fix for decimal field for percentages [#108](https://github.com/grafana/piechart-panel/pull/108) - -## 1.1.5 - -* Fix for color picker in legend -* Fix for - [Values in legend are displayed raw, not with the correct unit](https://github.com/grafana/piechart-panel/issues/51). Thanks, [@conet](https://github.com/conet) -* Fix for - [Legend overlaps with graphs](https://github.com/grafana/piechart-panel/issues/34). Thanks, [@smalik03](https://github.com/smalik03) - -## 1.1.4 -* Add support for combining small slices (https://github.com/grafana/piechart-panel/pull/43) -* Add option to show percentage in legend https://github.com/grafana/piechart-panel/pull/41 - -## 1.0.2 - -* Add piechart piece divider setting -* Remove Unused code -* Adds fontsize option for labels on graph -* Only show the displaied piechart value in legend -* Add possibility to pick stat to use for piechart - diff --git a/package.json b/package.json index 10e2771..37a879f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "piechart-panel", - "version": "1.3.7", + "version": "1.3.8", "description": "Pie chart panel for Grafana", "scripts": { "build": "grafana-toolkit plugin:build", diff --git a/src/piechart_ctrl.ts b/src/piechart_ctrl.ts index 6a14786..7bc43fe 100644 --- a/src/piechart_ctrl.ts +++ b/src/piechart_ctrl.ts @@ -14,6 +14,7 @@ class PieChartCtrl extends MetricsPanelCtrl { series: any; data: any; + /** @ngInject */ constructor($scope: any, $injector: any, $rootScope: any) { super($scope, $injector); this.$rootScope = $rootScope;