They are directly proportional.
It is defined as the weight of the substance contained in a unit of volume.