在vue项目中使用比例尺,已经引入import * as d3 from 'd3'
var linear=d3.scale.linear()
.domain([0,d3.max(dataset)])
.range([0,250]);
还是报错: Cannot read property 'linear' of undefined",是怎么回事应该怎么改?
在vue项目中使用比例尺,已经引入import * as d3 from 'd3'
var linear=d3.scale.linear()
.domain([0,d3.max(dataset)])
.range([0,250]);
还是报错: Cannot read property 'linear' of undefined",是怎么回事应该怎么改?