sbeyn / kibana-plugin-gauge-sg

Plugin for Kibana Version 4.x and 5.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

La valeur du gauge ne dois pas etre le pourcentage

bahthierno opened this issue · comments

Cette ligne n'est pas correct. Si maxGauge est superieur a 100 le gauge ne va pas s'afficher correctement.
metrics[0] = {label: table.columns[nbr_c - 1].title, value: (((sum / nbr_r) * 100) / $scope.vis.params.maxGauge)};

value dois etre: sum
metrics[0] = {label: table.columns[nbr_c - 1].title, value: sum)};

Je suis en train de préparer un fix pour ceci, car j'ai le même problème. Je vais faire un pull request dès que c'est prêt.

Il faudra aussi modifier ces functions:
config.gauge.label= { format: function(value, ratio) { var format = d3.format(".2f"); return format(ratio*100) + "%"; } };
et
config.tooltip.format = { value: function (value, ratio, id) { var format = d3.format(".2f"); return format(ratio*100) + "%"; } };

D'accord pour le label, mais je crois que le tooltip devrais afficher la valeur et non le pourcentage.

Au fait pour ces deux le choix est a toi comment tu veux les afficher. Je voulais just attirer ton attention sur leur effet.

En fait, je ne suis pas le propriétaire du repo, juste quelqu'un d'autre qui a le même problème.

Hi Gauge-sg conributor,

I downloaded and installed gauge-sg plugin to Kibana5. When I created gauge chart, I changed the number of gauge level, however the chart doesn't show any change. For example, the default gauge level 1 is 30, and gauge level 2 is 60. I changed gauge level 1 to 5, and gauge level 2 to 7. The count number I have is 8, so it should be in gauge level 2. However it still stays in gauge level 1 area.

Shouldn't the gauge level affect the chart?

I have the same issue than @msgzzhang but also Input thresholds as percentages doesn't work for me [ Kibana 5.1.1]