{"action":"opened","issue":{"url":"https://api.github.com/repos/dasmoth/dalliance/issues/174","labels_url":"https://api.github.com/repos/dasmoth/dalliance/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/dasmoth/dalliance/issues/174/comments","events_url":"https://api.github.com/repos/dasmoth/dalliance/issues/174/events","html_url":"https://github.com/dasmoth/dalliance/issues/174","id":96878196,"number":174,"title":"local data sources","user":{"login":"ajo2995","id":1328413,"avatar_url":"https://avatars.githubusercontent.com/u/1328413?v=3","gravatar_id":"","url":"https://api.github.com/users/ajo2995","html_url":"https://github.com/ajo2995","followers_url":"https://api.github.com/users/ajo2995/followers","following_url":"https://api.github.com/users/ajo2995/following{/other_user}","gists_url":"https://api.github.com/users/ajo2995/gists{/gist_id}","starred_url":"https://api.github.com/users/ajo2995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajo2995/subscriptions","organizations_url":"https://api.github.com/users/ajo2995/orgs","repos_url":"https://api.github.com/users/ajo2995/repos","events_url":"https://api.github.com/users/ajo2995/events{/privacy}","received_events_url":"https://api.github.com/users/ajo2995/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-23T18:36:17Z","updated_at":"2015-07-23T18:36:17Z","closed_at":null,"body":"I would like to embed a browser configured with data sources from local javascript objects. Is something like this possible?\r\n\r\n```\r\nvar features = [\r\n  {chr: '1', start: 123, end: 234, label: 'foo'},\r\n  {chr: '1', start: 333, end: 444, label: 'bar'},\r\n  {chr: '3', start: 111, end: 222, label: 'baz'}\r\n];\r\nvar styles = [\r\n{\r\n    type: 'default', \r\n    style: {\r\n       glyph: 'PLIMSOLL', \r\n       HEIGHT: '12', \r\n       STROKECOLOR: 'black',\r\n       FGCOLOR: 'red'\r\n    }\r\n},\r\n{\r\n    type: 'nasty',\r\n    style: {\r\n        glyph: 'CROSS',\r\n        FGCOLOR: 'green'\r\n    }\r\n}\r\n];\r\nbrowser.addTier({\r\n    name: 'MyData',\r\n    desc: 'I have these features in memory', \r\n    localData: features,\r\n    localStyleSheet: styles\r\n});\r\n```"}}