Implemented addValueAxis function