dynamic transitions between data for each axis, separated js into seperate file