Webpack copy of Grafana default panel. Now you can make your plugins based on graph panel and hack it easier.
Works only on Grafana versions >= V5.0.1
npm install
npm run build
Sorry, but it's common for Grafana plugins make directives which collide with each other. It comes from AngularJS.
Use ctrl+f to find params in source code files below:
- Change in
plugin.jsonid fromgraph-panel-template-paneltosomething-else-graph-panel - Change in
src/graph.tsdirective name fromgrafanaTemplateGraphtosomethingElseGraph - Change in
src/legend.tsdirective name fromgraphTemplateLegendtosomethingElseLegend - Change in
src/axes_editorparamtemplateUrlparam frompublic/plugins/graph-panel-template-panel/partials/axes_editor.htmltopublic/plugins/something-else-graph-panel/partials/axes_editor.html - Change in
template.tsparamgrafana-template-graphtosomething-else-graphandgraph-template-legendtosomething-else-legend - in case you debug with VSCode, change in
.vscode/launch.jsonparam/public/plugins/graph-panel-template-panelto/public/plugins/something-else-graph-panel
- grafana-plugin-template-webpack-typescript
- @types/grafana
- github.com/chartwerk/grafana-chartwerk-app -- a new way to build your Grafana plugins