delay not necessary
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 5 Feb 2021 20:20:13 +0000 (15:20 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 5 Feb 2021 20:20:13 +0000 (15:20 -0500)
templates/CRM/common/chart.tpl

index 30fdd5532aeb27049deb172f0ebfc4c2d9bcd8a1..5d2f2cc5bf543160063f7b12119b52567059dc5c 100644 (file)
@@ -138,14 +138,11 @@ function createChart( chartID, divName, xSize, ySize, data ) {
       .turnOnControls(true)
       .renderTitle(true);
   }
-  // Delay rendering so that animation looks good.
-  window.setTimeout(() => {
-    div.appendChild(heading);
-    div.appendChild(chartNode);
-    div.appendChild(links);
+  div.appendChild(heading);
+  div.appendChild(chartNode);
+  div.appendChild(links);
 
-    dc.renderAll();
-  }, 1500);
+  dc.renderAll();
 }
 </script>
 {/literal}