<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>D3JS</title>
<script src="https://d3js.org/d3.v4.min.js" type="text/javascript"></script>
<link href="https://www.w3schools.com/w3css/4/w3.css" rel="stylesheet"
type="text/css"/>
<link
href="https://image.shutterstock.com/image-vector/internet-icon-black-computer-arrow-600w-1028095990.jpg"
rel="shortcut icon" />
</head>
<body>
<p>D3 Tutorials</p>
<script>
var width = 400; height = 300;
var data = [10, 15, 20, 25, 30];
var svg = d3.select("body").append("svg").attr("width", width)
.attr("height", height);
svg.append("line")
.style("stroke", "black")
.attr("x1", 100)
.attr("y1", 50)
.attr("x2", 300)
.attr("y2", 150);
</script>
<input type="button" class="w3-button w3-black" value="Input Button">
</body>
</html>
No comments:
Post a Comment