Console.log not logging

Can somone tell me why nothing is showing up in my console with this bit of code

d3.json(url, function(error,data){
  if(error) throw error;
  
var baseTemp = data['baseTemperature']
  
  
var xScale = d3.scaleTime()
.domain(d3.extent(data, d=>d['monthlyVariance']['Year']))
.range([0, width])

console.log(xScale(1758))

  
})//end of json function

trying to see if my xScale is scaling correctly