Open tobiasdirksen opened 4 years ago
Hi, sorry for the late response.
This issue was due to that I did not follow the prettier style guide back that time. I must have forgotten to test yarn build
before tag the release :P. After installing the latest @grafana/toolkit I can see the issues:
/content/custom-plotly-panel/src/panel.tsx
6:1 error 'moment' import is restricted from being used no-restricted-imports
12:12 error eval can be harmful no-eval
As a dirty fix, you can disable these errors. If you just want to test it you may run yarn dev
instead so that the linting steps are skipped.
This project is basically a proof of concept and it needs further polishing. I encourage you to fork and update the dependencies and packages to make it more robust.
In addition, you can try downloading the distribution file in the release and see if it can work with your version of grafana.
Thanks a lot. I couldn't get it to work in Grafana 7.0, but I will get back to you when I'm back from vacation.
Sorry for late response. The distribution file works better since the default plot is there, but there is no customization options, where I can write my code.
@tobiasdirksen I did not use Grafana for long. This looks like a newer version. Usually when you insert a panel there should be some parameter configuration controls. I guess they are in the settings tab.
Yes they changed the layout quite a lot in version 7. The code section should be to the right between visualization and links, so I'm afraid the plugin doesn't work in v7+.
Yes. I guess there will be some migration work to make it compatible with the latest version. I'm currently occupied with my work so I could not maintain this project. If you can refer to the latest plugin boilerplate and change the necessary sections.
This is a great idea! However, I can't build it. I have yarn 1.22.4 on Ubuntu 18.04. I get this error. Any ideas?