render graph with 5 interval x-axis