axisChange method accepts just data