fix y axis at 0 for gql api
Created by: unclejustin
adds an extra check for insight.viewType to check whether insight is searchBased or not
Created by: unclejustin
adds an extra check for insight.viewType to check whether insight is searchBased or not