dynamic y axis for multiline graph