Fixed yValue usage

Previously d.frequency was hardcoded in an equation. If you used some other `yValue`, it would return NaN which is not very much drawable.