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:
plugin.json
id from graph-panel-template-panel
to something-else-graph-panel
src/graph.ts
directive name from grafanaTemplateGraph
to somethingElseGraph
src/legend.ts
directive name from graphTemplateLegend
to somethingElseLegend
src/axes_editor
param templateUrl
param from public/plugins/graph-panel-template-panel/partials/axes_editor.html
to public/plugins/something-else-graph-panel/partials/axes_editor.html
template.ts
param grafana-template-graph
to something-else-graph
and graph-template-legend
to something-else-legend
.vscode/launch.json
param /public/plugins/graph-panel-template-panel
to /public/plugins/something-else-graph-panel