added better padding and filling gaps in the graph