Can't make report with 2 Javascript Charts!

Daniel.Eyre shared this problem 2 years ago
Defect Logged

Please notify Yulia and the development team that reports with 2 JavaScript charts fails.


I've attempted to use the google charts version of a gauge to meet a client's requirements:

/caff0330201b37f87418ae4808089f9a


However yellowfin can't arrange the two gauges in the same report. It's supposed to display them side by side:

/2b4926b97a5456d8bd584f87581b0226

However; when the report is saved it only duplicates one of the charts!

/a5fe659b7e40234bde219cd8733f3e54

Comments (3)

photo
1

Hi Daniel,

Thanks for reaching out. Can you provide a copy of the JavaScript and CSS, as well as the report meta data? That is, the Report Data page and data type of the columns?


Thanks,

Mike

photo
1

Hi Mike,

I've attached the code for the two different charts.

Here's a screenshot of the data:

/KPS+rZLBw4cYEgTERE1A3Z3ExERWRRDmoiIyKIY0kRERBbFkCYiIrIohjQREZFFMaSJiIgsiiFNRERkUQxpIiIii2JIExERWRRDmoiIyKIY0kRERBbFkCYiIrIohjQREZFFMaSJiIgsiiFNRERkUQxpIiIii2JIExERWRRDmoiIyKIY0kRERBbFkCYiIrIohjQREZFFMaSJiIgsiiFNRERkUQxpIiIii2JIExERWRRDmoiIyKIY0kRERBbFkCYiIrIohjQREZFFMaSJiIgsiiFNRERkUQxpIiIii2JIExERWRRDmoiIyKIY0kRERBbFkCYiIrIohjQREZFFMaSJiIgsiiFNRERkUQxpIiIiSwL+PwOez26oh6MKAAAAAElFTkSuQmCC

photo
1

Hi Daniel,

Thanks. How are these being used in Yellowfin though? Are you just copying and pasting the contents of Gauge 2.js below Gauge 1.js?

Regards,

Mike

photo
1

As these are two entirely different charts on the one report: Then no that is impossible.

These are two different Javascript charts on the same report. Which is what I stated in the beginning. And which is why there's two different scripts.

photo
1

Hi Daniel,

I think it possible to generate two of these charts with one script so I was just trying to determine whether that's what was being attempted here.

I am able to replicate what you're seeing by making a multi-chart report and adding two JS Charts. However, I did find a way around this.

This is what occurs when I first drag in the charts:

/D+8vXyu5Y1rugAAAABJRU5ErkJggg==

If I resize the charts though, they both display correctly:

/j9BnHtrPeBovQAAAABJRU5ErkJggg==

This is of course still incorrect and I've gone ahead and logged a defect for this, but please let me know if the above workaround works for you.

Any potential updates regarding this defect will be posted here.


Regards,

Mike

photo
1

Hi Mike,

I always resize anyway and his had no effect.

It's a moot point now because the client didn't accept the charts and we've had to provide something else.

But yes this problem with more than one JS chart on a dashboard needs to be referred to G-na Astrelina

photo
1

Hi Daniel,

Thanks for the update. I'll provide updates as they come along.


Regards,

Mike

photo
1

Hello,

I have just come across this problem myself - a report contains two separate JavaScript charts and I have dragged them both onto a dashboard and linked their filters. However, when doing this and changing the filter, it then effectively duplicates one of the charts for both of them.

In edit mode, the above workaround works and resizing one of the charts puts it back to what it should be. But then when the report/dashboard is published it doesn't work and the work around is not viable (as when you change the filter it exhibits the duplicate chart behaviour).

I even tried to separate the JavaScript charts into two separate reports (such that each report only had one JavaScript chart). I then dragged each of them individually onto the dashboard, but still the same problem occurred. It appears that Yellowfin cannot load more than one JavaScript chart on the same report/dashboard when a filter is updated.

Is there any view of when this will be fixed or is there a way to get it to load successfully?


Thanks,

Tom

photo