Comments (5)
Hi @dctim,
this is just based on the simple-graph example from here https://github.com/Nhogs/popoto-examples/blob/master/simple-graph/index.html
I added d3-voronoi.v1.min.js
after d3
and before popoto
.
<!doctype html>
<html>
<head>
<title>example - Popoto.js</title>
<link rel="stylesheet"
href="https://unpkg.com/popoto/dist/popoto.min.css">
</head>
<body class="ppt-body">
<section class="ppt-section-main">
<div class="ppt-container-graph">
<nav id="popoto-taxonomy" class="ppt-taxo-nav">
<!-- Label/taxonomy filter will be generated here -->
</nav>
<div id="popoto-graph" class="ppt-div-graph">
<!-- Graph will be generated here-->
</div>
</div>
<div id="popoto-query" class="ppt-container-query">
<!-- Query viewer will be generated here -->
</div>
<div id="popoto-cypher" class="ppt-container-cypher">
<!-- Cypher query viewer will be generated here -->
</div>
<div class="ppt-section-header">
<!-- The total results count is updated with a listener defined below -->
RESULTS <span id="result-total-count" class="ppt-count"></span>
</div>
<div id="popoto-results" class="ppt-container-results">
<!-- Results will be generated here -->
</div>
</section>
<script src="https://unpkg.com/jquery" charset="utf-8"></script>
<script src="https://unpkg.com/d3" charset="utf-8"></script>
<script src="https://d3js.org/d3-voronoi.v1.min.js"></script>
<script src="https://unpkg.com/popoto"></script>
<script type="text/javascript">
popoto.rest.CYPHER_URL = "http://localhost:7474/db/data/transaction/commit";
popoto.rest.AUTHORIZATION = "Basic " + btoa("xxx:yyy");
popoto.provider.node.Provider = {
"APP": {
"returnAttributes": ["key", "name"],
"constraintAttribute": "key",
"autoExpandRelations": true
},
"INTERFACE": {
"returnAttributes": ["key", "name"],
"constraintAttribute": "key"
}
};
popoto.result.onTotalResultCount(function (count) {
document.getElementById("result-total-count").innerHTML = "(" + count + ")";
});
popoto.query.RESULTS_PAGE_SIZE = 100;
popoto.tools.TOGGLE_FULL_SCREEN = true;
// popoto.graph.centerRootNode();
popoto.logger.LEVEL = popoto.logger.LogLevels.DEBUG;
popoto.start("APP");
</script>
</body>
</html>
from popoto-examples.
Hi Jessie, I kind of encounter the first problem you mentioned. Have you got any clues on how this happened? Thanks!
from popoto-examples.
It's nowhere mentioned in the docs. Adding d3-voronoi.js fixed that issue for me:
<script src="https://d3js.org/d3-voronoi.v1.min.js"></script>
from popoto-examples.
It's nowhere mentioned in the docs. Adding d3-voronoi.js fixed that issue for me:
<script src="https://d3js.org/d3-voronoi.v1.min.js"></script>
Hi @thlaegler , Where exactly did you put the script src? I hit the same issue.
from popoto-examples.
Hi this issue is happening because Popoto is not using latest version of d3
Popoto is still using D3 v.5.15.0 which still includes voronoi module
To fix it you can use older version of D3:
<script src="https://unpkg.com/[email protected]" charset="utf-8"></script>
from popoto-examples.
Related Issues (20)
- Add an example on fit text feature
- Add example using voronoi
- Add example containing gif
- How to Remove Relations based on selection
- how to show properties in tabular form when clicking on node and relations HOT 1
- Node ID is being displayed and not label name HOT 1
- Query viewer example error HOT 2
- All Live Examples seems to be Broken HOT 6
- How many nodes max?
- change example main readme to link to each example readme instead of direct link to live
- customize node label
- support text root query
- Sound cloud search
- Use Popoto in a React app HOT 1
- Use popoto in an Angular app
- Use Roughjs
- Use Flubber
- Finish Factual example refactoring
- Add images for movie examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from popoto-examples.