display charts correctly even when invalid min/max values are present