modified g element in line charts