How to extend the functionality of default grafana graph panel



We are using grafana 7.1.2 in our machine. We just want to extend or customize the default grafana graph panel plugin. How can we make the changes and run it. We also want the panel to move or run from data/plugins folder instead of public/app/plugins/panel.

Please suggest the necessary changes.

Thanks in advance.