Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

La valeur du gauge ne dois pas etre le pourcentage #3

Open
bahthierno opened this issue Dec 27, 2016 · 8 comments
Open

La valeur du gauge ne dois pas etre le pourcentage #3

bahthierno opened this issue Dec 27, 2016 · 8 comments

Comments

@bahthierno
Copy link

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)};

@Xornithologist
Copy link
Contributor

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.

@bahthierno
Copy link
Author

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) + "%"; } };

@Xornithologist
Copy link
Contributor

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

@bahthierno
Copy link
Author

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

@Xornithologist
Copy link
Contributor

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

@msgzzhang
Copy link

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?

@billmetangmo
Copy link

billmetangmo commented Feb 28, 2017

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

@bahthierno
Copy link
Author

bahthierno commented Feb 28, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants