1. Updated isScatterChartInitialized function which checks whether svg

   is initialized or not