snuids / grafana-radar-panel

A radar graph panel for Grafana
MIT License
24 stars 12 forks source link

Metric name display problem #10

Open rickywu opened 5 years ago

rickywu commented 5 years ago

The metrics' name not fully show up

image

snuids commented 5 years ago

Uh to be honest I can’t read your language :-) so difficult to figure out where the problem is. I suppose that the problem lies in the bottom of the graph. I am using chartjs to draw the radar. They perhaps patch their code for chinese chars.

snuids commented 5 years ago

This also means that the underlying library must be patched and probably not mine. https://github.com/chartjs/Chart.js

rickywu commented 5 years ago

@snuids I mean the chinese metric name on the top of this chart not fully show up So I should look into Chart.js?

snuids commented 5 years ago

Ok understood. Did you try to play with the aspect ratio option in order to resize the graph ?

rickywu commented 5 years ago

Yes, tried change aspect ratio still the same problem

hotstepper13 commented 5 years ago

I think this issue could be related to the backgroud of the step scala. If you use the dark background you can see that there is a fixed background color that cannot be changed which creates a box around the numbers.

This box can reach into the metric name.

You can see an example within #11

snuids commented 5 years ago

@rickywu

I updated the chartjs version to 2.7.3 in version 1.4.4. of the plugin. I also added a hide background option. I don't know if it will solve your problem.

Cheers,