Charge the capacitor via a constant current source. This will give you a linear curve.