<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>坐标轴</title>
</head>
<style>
.axis path,
.axis line{
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 11px;
}
.MyRect {
fill: white;
//stroke:blue;
}
.MyText {
fill: black;
text-anchor: middle;
}
</style>
<body>
</body>
<script type="text/javascript" src="../plug/d3/d3.min.js"></script>
<script type="text/javascript" src="bookroom.js"></script>
<script>
window.onload = function() {
var width = 400;
var height = 400;
var svg = d3.select("body")
.append("svg")
.attr("width", width)
.attr("height", height)
.attr("style","border:1px solid #c3c3c3");
draw(svg,[{
name:"no1",
localtionX:10,
localtionY:20,
height:50,
width:50,
state:1
},{
name:"no2",
localtionX:100,
localtionY:50,
height:50,
width:50,
state:0
}]);
}
</script>
</html>
作业(1)
最新推荐文章于 2020-11-21 12:42:16 发布