OBNFENBQΫΤϦ
function exec() {
var endpoint = d3.select("#endpoint").property("value")
var sparql = d3.select("#sparql").property("value")
d3sparql.query(endpoint, sparql, render)
}
function render(json) {
var config = {
"label": "label",
"value": "density",
"topojson": "https://gist.githubusercontent.com/fumi/
521c759efe0648b3c1296c5a869b3406/raw/
39e94dae1c46ed71d88529038f3ff45e681b257c/japan.topojson",
"mapname": "japan",
"color_max": "red",
"color_min": "white",
"center_lat": 34,
"center_lng": 137,
"scale": 1500,
"selector": "#result"
}
d3sparql.namedmap(json, config)
}