Can't make report with 2 Javascript Charts!

Daniel.Eyre shared this problem 4 months 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:

/bc8wABAnwygMI3BwE5AXL3GZhBsOXsgRkMu27jYoBPKgIj4UOAGQnbmx3IZXzA722lDxAgwMcXyAyA3DCYEWGywq6ZjLHlzAABdhYCIyFAgAABAgQI0CmCPQkBAgQIECBAgE4RGAkBAgQIECBAgE4RGAkBAgQIECBAgE4RGAkBAgQIECBAgE4g8v8BlZ3CbM8TKGkAAAAASUVORK5CYII=


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

/AX9campqAzdUAAAAAElFTkSuQmCC

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

/acQzAwxAuxMAAAAASUVORK5CYII=

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