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

Shaking tooltips on Dashboard Charts #6216

Open
romanblanco opened this issue Sep 19, 2019 · 0 comments

Comments

@romanblanco
Copy link
Member

commented Sep 19, 2019

Screencast from 2019-09-19 10-29-46

Sometimes, chart tooltips on Dashboard go a little bit crazy, at make it complicated to read them.

I've started looking at where do the values get stored and I can read the tooltips data in customizeChart.

diff --git a/app/assets/javascripts/miq_application.js b/app/assets/javascripts/miq_application.js
index 8458da85e8e..6f50466fc94 100644
--- a/app/assets/javascripts/miq_application.js
+++ b/app/assets/javascripts/miq_application.js
@@ -1655,6 +1655,9 @@ function customizeChart(data) {
     data.axis.y.tick.values = [0, max];
   }

+  //console.log(data.data.names);
+  //console.log(data.data.columns);
+
   if (data.miq.expand_tooltip) {
     data.tooltip.format.name = function(_name, _ratio, id, _index) {
       return data.miq.name_table[id];

This however doesn't seem to be the correct place to sort the labels and values.

(cc @PanSpagetka)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.