Built with blockbuilder.org
xxxxxxxxxx
<meta charset="utf-8">
<style>
body {
background-color: #F1F3F3
}
.axis {
font: 15px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #D4D8DA;
stroke-width: 2px;
shape-rendering: crispEdges;
}
#chart {
position: absolute;
top: 50px;
left: 100px;
}
</style>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="RadarChart-0.js"></script>
<div id="chart"></div>
<script>
var width = 300,
height = 300;
// Config for the Radar chart
var config = {
w: width,
h: height,
maxValue: 100,
minValue: 20,
levels: 5,
ExtraWidthX: 300
}
var data = [
[
{ "area": "Central ", "value": 80 },
{ "area": "Kirkdale", "value": 40 },
{ "area": "Kensington ", "value": 40 },
{ "area": "Everton ", "value": 90 },
{ "area": "Picton ", "value": 60 },
{ "area": "Riverside ", "value": 80 }
],
[
{ "area": "Central ", "value": 100 },
{ "area": "Kirkdale", "value": 50 },
{ "area": "Kensington ", "value": 50 },
{ "area": "Everton ", "value": 90 },
{ "area": "Picton ", "value": 60 },
{ "area": "Riverside ", "value": 80 }
]
]
RadarChart.draw("#chart", data, config);
var svg = d3.select('body')
.selectAll('svg')
.append('svg')
.attr("width", width)
.attr("height", height);
</script>
https://d3js.org/d3.v4.min.js