Using d3 in vue projects, can't use scale bar?

vueimport * as d3 from "d3"   
var linear=d3.scale.linear()
      .domain([0,d3.max(dataset)])
      .range([0,250]);
      
    : Cannot read property "linear" of undefined",
Sep.28,2021

 
var scalelinear=d3.scaleLinear()
      .domain([0,d3.max(dataset)])
      .range([0,250]);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bed095-31b32.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bed095-31b32.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?