Discovered smth else. When you first open your visual in powerbi.com (visual cashed) and then open same visual through javascript api, then this rendering problem does not occure. If u clear cache and try to open your custom visual again then visual is not rendered. You get bunch of unauthorized errors.
↧