Javascript How Do I Use A Function To Plot Two Different Data Set

Javascript How Do I Use A Function To Plot Two Different Data Set