Delay chart generation until tab click. fix #2