updated x axis grid logic

only transitions if transform attribute exists