{"action":"closed","issue":{"url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/373","repository_url":"https://api.github.com/repos/Linkurious/linkurious.js","labels_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/373/comments","events_url":"https://api.github.com/repos/Linkurious/linkurious.js/issues/373/events","html_url":"https://github.com/Linkurious/linkurious.js/issues/373","id":160356453,"number":373,"title":"Sigma.js : Assocaiative Color and Icon properties of new nodes not shown in graph","user":{"login":"zohairzohair4","id":18169267,"avatar_url":"https://avatars.githubusercontent.com/u/18169267?v=3","gravatar_id":"","url":"https://api.github.com/users/zohairzohair4","html_url":"https://github.com/zohairzohair4","followers_url":"https://api.github.com/users/zohairzohair4/followers","following_url":"https://api.github.com/users/zohairzohair4/following{/other_user}","gists_url":"https://api.github.com/users/zohairzohair4/gists{/gist_id}","starred_url":"https://api.github.com/users/zohairzohair4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zohairzohair4/subscriptions","organizations_url":"https://api.github.com/users/zohairzohair4/orgs","repos_url":"https://api.github.com/users/zohairzohair4/repos","events_url":"https://api.github.com/users/zohairzohair4/events{/privacy}","received_events_url":"https://api.github.com/users/zohairzohair4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Linkurious/linkurious.js/labels/type:question","name":"type:question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-15T07:34:02Z","updated_at":"2016-07-25T13:14:05Z","closed_at":"2016-07-25T13:14:05Z","body":"I got an example code from http://localhost:8000/examples/. And starting building my own. The problem that I am facing is that I have JSON of nodes from neo4j graph DB. that I want to add. I am succesful in adding it but the Icon and Color associated with the noe4j_labels are not represented in the graph.\r\n\r\nSigma Design Plugin is being used\r\n`var graphStyles = {\r\n        nodes: {\r\n            icon: {\r\n                by: 'neo4j_labels',\r\n                scheme: 'nodeIconScheme',\r\n            },\r\n            color: {\r\n                by: 'neo4j_labels',\r\n                scheme: 'nodeColorScheme',\r\n            },\r\n        }\r\n    }\r\n\r\n// Instanciate the design:\r\nvar design = sigma.plugins.design(s, {\r\n    styles: graphStyles,\r\n    palette: graphPalettes\r\n}`\r\n\r\nThe nodes that are added from the first query are represented properly with their respective Icons and Colors.\r\n`sigma.neo4j.cypher(\r\n                { url: 'http://localhost:7474', user: 'neo4j', password: 'neo' },\r\n                query_init,\r\n                s,\r\n                function(s) {`\r\n\r\nBut when I try to add new nodes `s.graph.addNode(new_graph_vars[0]);`\r\nI run into this problem.  "}}
{"actor":{"display_login":"sheymann"}}