prevent plot update if json has no data