Extracted common code into _initXYAxis

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
Extracted _updateXYAxisRange and _renderXYAxis

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>