separated ajax calls of two charts