prettier/tests/method-chain/d3.js

18 lines
335 B
JavaScript

d3.select('body')
.append('circle')
.at({ width: 30, fill: '#f0f' })
.st({ fontWeight: 600 })
d3.scaleLinear()
.domain([1950, 1980])
.range([0, width])
not.d3.select('body')
.append('circle')
.at({ width: 30, fill: '#f0f' })
.st({ fontWeight: 600 })
not.d3.scaleLinear()
.domain([1950, 1980])
.range([0, width])