Browse Source

shape-rendering: crispEdges

master
Nathan Bergey 6 years ago
parent
commit
0c606dd678
  1. 2
      src/index.js
  2. 3
      src/style.sass

2
src/index.js

@ -8,6 +8,6 @@ let canvas = d3.select('svg')
const url = '/forcast.xml'
d3.xml(url).then(function(xmldoc) {
let data = readxml(xmldoc)
render_astronomy(canvas, 80, 25, data)
render_astronomy(canvas, 80, 18, data)
render_temperature(canvas, 500, 80, data)
})

3
src/style.sass

@ -57,6 +57,9 @@ path.moon
stroke: #999
stroke-width: 1px
line
shape-rendering: crispEdges
line.now
stroke: #f5f
stroke-width: 1px

Loading…
Cancel
Save