ne0x / grafana-windrose-panel

Wind Rose (d3) Panel Plugin for Grafana
https://weather.ksz.ch/grafana/dashboard/db/wind-rose-github
Other
6 stars 5 forks source link

broken image icon instead of CompassRose #6

Closed GrandmasterLuke closed 5 years ago

GrandmasterLuke commented 5 years ago

Hi, yesterday I installed your windrose-panel and as far as I have seen some pics online, it looks really great! While trying to design the panel for my own purposes, I came across some issues:

1) I tried to integrate the CompassRose image with opacity etc. I'm pretty sure that I have to set the "labelCompassRose": true. But when I do so I get the "broken-image-icon" as if the CompassRose-Image can't be found or something like that. What can I do to fix that?

2) I would like to change the color of "labelDegrees" from white to black. Where/How can I do that?

3) Is it possible to hide the legend? How can I do that?

Can someone please help me? Thank you very much in advance!

GrandmasterLuke commented 5 years ago

Ok, I found the answers by myself:

1) I found the wind-rose.js file in the /dist folder and edited the line: "public/plugins/**n-wind-rose-panel**/img/windrose.svg" to my plugin-name (because when I unzipped it, it hat the given name "grafana-windrose-panel-master". Now it says "public/plugins/**grafana-windrose-panel-master**/img/windrose.svg" When I set the "labelCompassRose": true now I get the image of the CompassRose (restarting grafana after the changes for sure)

2) I edited some lines (not all) in the same wind-rose.js file in the /dist folder from 'fill', '#fff' to 'fill', '#000' (restarting grafana after the changes for sure)

3) comment out everything from function buildScaleContainer() { until before function buildScale() {

Save the file and restart grafana after the changes to make them have an effect