Oil prices declined by 2% on Wednesday as weak Chinese data and a stronger United States dollar dragged on commodity prices.