mstr-dev / Visualization-Plugins-Deprecated

This repository contains visualization plugins that fit to MicroStrategy's Web/Desktop platform.
72 stars 102 forks source link

Sankey stops working.. #17

Open ataylan opened 9 years ago

ataylan commented 9 years ago

I am experiencing below behavior on my MicroStartegy desktop 10 with Sankey viz and I wonder if anybody else have the same issue. I CAN create a Sankey viz and it works but if I click any other Custom viz options like sunburst or D3 bubble chart (viz changes to those) and come back to Sankey and click to that I get "Either there is not enough data to display the viz or the viz configuration is incomplete. The viz requires one or more attributes and one metric" message and can not get Sankey work again in that session. I try changing from Sankey to any of the MicroStartegy native viz like heat map or bar chart , it works fine coming back to Sankey .

Thanks Ali

plutoshaka commented 9 years ago

Hi ataylan, this issue is because when we load external libraries, we store them in cache. So when we change from flow to bar, d3 is overwritten while sankey stays in memory. Next time we change back to flow, we assume d3 and sankey are still there so we didn't load them. But since we reloaded d3 , d3.sankey is no longer there. So we don't get sankey that we can't draw flow successfully.

This issue has to be modified in customvisbase and can't only fix widget. Please wait for 10.1 release or you can email me for the modification.