Need help with Objects and append

16 views
Skip to first unread message

Andreas Dernbauer

unread,
Jun 1, 2015, 6:12:02 AM6/1/15
to d3...@googlegroups.com
Hello

I am trying it since days, without sucess 

Thank you for you help 

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>

<script src="d3.min.js"></script>
</head>
<body>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>My first styled page</title>


<script>
var urls = {
neo4JEndPointURL: 'http://localhost:7474/db/data/transaction/commit/'
};
d3.json(urls.neo4JEndPointURL)
.header("Content-Type", "application/json")
.header("Authorization", btoa("neo4j:neo"))
.post(JSON.stringify({
statements: [{
statement: "MATCH (a:srcSystem)RETURN a.SysName",
resultDataContents: ["row"]
}]
}), function (error, rows) {
d3.select("body").selectAll("p")
.data( rows )
.enter()
.append("p")
.text(function (d){return d});
});

</script>

<body>
<p id="demo">test</p>
<p></p>
<!-- Site navigation menu -->


</body>
</html>

</body>
</html>
Reply all
Reply to author
Forward
0 new messages