Skip to content

Commit

Permalink
remove global style to avoid affecting grafana ui component and fix i…
Browse files Browse the repository at this point in the history
…ssue #37
  • Loading branch information
gipong committed Jan 8, 2021
1 parent b594281 commit 47d898b
Show file tree
Hide file tree
Showing 10 changed files with 3,512 additions and 817 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,13 @@ git clone https://github.com/gipong/grafana-groupedbarchart-panel.git
sudo service grafana-server restart
```

using Docker (for grafana:7.0.0)

```
docker run -d -p 3000:3000 -v "$(pwd)":/var/lib/grafana/plugins grafana/grafana:7.0.0
```

it only loads on start-up and need to restart this container after you updating this plugin

## License
MIT
2 changes: 1 addition & 1 deletion dist/css/groupedBarChart.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
svg {
#chart > svg {
width: 100%;
height: 100%;
position: center;
Expand Down
18 changes: 11 additions & 7 deletions dist/ctrl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ctrl.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/external/groupedBarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default class groupedBarChart {
constructor(opts) {
this.data = opts.data;
this.margin = opts.margin;
this.width = parseInt(opts.width, 10);
this.height = parseInt(opts.height, 10);
this.width = opts.width;
this.height = opts.height;
this.showLegend = opts.legend;
this.legendType = opts.position;
this.chartType = opts.chartType;
Expand Down Expand Up @@ -280,4 +280,4 @@ export default class groupedBarChart {
this.tips = d3.select(this.element).append('div')
.attr('class', 'toolTip');
}
}
}
2 changes: 1 addition & 1 deletion dist/module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47d898b

Please sign in to comment.