<!DOCTYPE html>
<meta charset="utf-8">
<style>

.axis path, .axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

</style>
<body>
<script src="../../d3.js"></script>
<script>
//svg尺寸
var margin = {top: 20, right: 20, bottom: 20, left: 20},
    width = 500 - margin.left - margin.right,
    height = 500 - margin.top - margin.bottom;
//条宽
var barWidth=8;

//数据集
var dataset=[1,2,3,4,5,6,7,8,9,10];
//默认恒等比例尺
var identityScale = d3.scale.identity();
//创建svg�