{"action":"created","issue":{"url":"https://api.github.com/repos/maurizzzio/function-plot/issues/58","repository_url":"https://api.github.com/repos/maurizzzio/function-plot","labels_url":"https://api.github.com/repos/maurizzzio/function-plot/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/maurizzzio/function-plot/issues/58/comments","events_url":"https://api.github.com/repos/maurizzzio/function-plot/issues/58/events","html_url":"https://github.com/maurizzzio/function-plot/issues/58","id":137077484,"number":58,"title":"Multiple vectors in the same plot?","user":{"login":"dangom","id":7881842,"avatar_url":"https://avatars.githubusercontent.com/u/7881842?v=3","gravatar_id":"","url":"https://api.github.com/users/dangom","html_url":"https://github.com/dangom","followers_url":"https://api.github.com/users/dangom/followers","following_url":"https://api.github.com/users/dangom/following{/other_user}","gists_url":"https://api.github.com/users/dangom/gists{/gist_id}","starred_url":"https://api.github.com/users/dangom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangom/subscriptions","organizations_url":"https://api.github.com/users/dangom/orgs","repos_url":"https://api.github.com/users/dangom/repos","events_url":"https://api.github.com/users/dangom/events{/privacy}","received_events_url":"https://api.github.com/users/dangom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-28T17:54:14Z","updated_at":"2016-02-28T18:18:01Z","closed_at":"2016-02-28T18:16:15Z","body":"Maybe my question has a very simple solution, but I haven't figured it out. \r\nWhen using fnType: 'vector', is it possible to have 2 (or more) vectors simultaneously on the same plot? If yes, how?!\r\n\r\nThanks a lot! Awesome library.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/maurizzzio/function-plot/issues/comments/189916976","html_url":"https://github.com/maurizzzio/function-plot/issues/58#issuecomment-189916976","issue_url":"https://api.github.com/repos/maurizzzio/function-plot/issues/58","id":189916976,"user":{"login":"maurizzzio","id":1616682,"avatar_url":"https://avatars.githubusercontent.com/u/1616682?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizzzio","html_url":"https://github.com/maurizzzio","followers_url":"https://api.github.com/users/maurizzzio/followers","following_url":"https://api.github.com/users/maurizzzio/following{/other_user}","gists_url":"https://api.github.com/users/maurizzzio/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizzzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizzzio/subscriptions","organizations_url":"https://api.github.com/users/maurizzzio/orgs","repos_url":"https://api.github.com/users/maurizzzio/repos","events_url":"https://api.github.com/users/maurizzzio/events{/privacy}","received_events_url":"https://api.github.com/users/maurizzzio/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T18:18:01Z","updated_at":"2016-02-28T18:18:01Z","body":"That's right, whenever I want to plot only vectors I set up common prototypes e.g.\r\n\r\n```js\r\nvar vector = {\r\n  graphType: 'polyline',\r\n  fnType: 'vector'\r\n}\r\n\r\nfunctionPlot({\r\n  target: '#demo',\r\n  data: [Object.create(vector, {\r\n    vector: [2, 1],\r\n    offset: [1, 2]\r\n  }), Object.create(vector, {\r\n    vector: [1, -2],\r\n    offset: [1, 2]\r\n  }) // Object.create(proto, additional properties)\r\n]\r\n});\r\n```"}}