forked from pgiraud's block: d3js Elevation profile - Ratio automatically chosen
xxxxxxxxxx
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.area {
fill: steelblue;
}
line.poi {
stroke: grey;
shape-rendering: crispEdges;
}
line.poi2 {
stroke: #000;
shape-rendering: crispEdges;
}
.chart {
border:1px solid grey;
}
</style>
<body>
<div id="chart" class="chart">
</div>
<div>Ratio: 1:<span id="ratio"></span></div>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="profile.js"></script>
https://d3js.org/d3.v3.min.js