use local version of d3
This commit is contained in:
parent
953f308621
commit
86c56fb139
3 changed files with 7 additions and 2 deletions
5
static/ontology/d3.v3.min.js
vendored
Normal file
5
static/ontology/d3.v3.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<script src="https://d3js.org/d3.v3.min.js"></script>
|
<script src="d3.v3.min.js"></script>
|
||||||
<link rel="stylesheet" href="index.css">
|
<link rel="stylesheet" href="index.css">
|
||||||
<title>Ontology Tree</title>
|
<title>Ontology Tree</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -15,7 +15,7 @@ var diagonal = d3.svg.diagonal()
|
||||||
var svg = d3.select("body").append("svg")
|
var svg = d3.select("body").append("svg")
|
||||||
.attr("width", "100%")
|
.attr("width", "100%")
|
||||||
.attr("height", height + margin.top + margin.bottom)
|
.attr("height", height + margin.top + margin.bottom)
|
||||||
.append("g")
|
.append("g")
|
||||||
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
|
||||||
|
|
||||||
d3.json("sized_ontology.json", function(error, flare) {
|
d3.json("sized_ontology.json", function(error, flare) {
|
||||||
|
|
Loading…
Reference in a new issue