buildvis = {
let view = md`${container()}`
let dataTable= dc.dataTable(view.querySelector("#dc-table-graph"))
dataTable.width(960)
.height(800)
.dimension(dateDim)
.group(d => "List of all earthquakes corresponding to the filters")
.size(10)
.columns(['dtg','latitude','longitude','magnitude','depth'])
.sortBy(d => d.dtg)
.order(d3.ascending)
let barChartMag = dc.barChart(view.querySelector("#magnitude-chart"))
barChartMag.width(480)
.height(150)
.dimension(magnitudeDim)
.x(d3.scaleLinear()
.range([0,width])
.domain([0,8]))
.xUnits(dc.units.integers)
.gap(56)
.elasticY(true)
.group(terremotoByMagnitude)
let barChartDepth = dc.barChart(view.querySelector("#depth-chart"))
barChartDepth.width(480)
.height(150)
.dimension(depthDim)
.x(d3.scaleLinear()
.range([0,width])
.domain([0,100]))
.xUnits(dc.units.integers)
.gap(1)
.elasticY(true)
.group(terremotoByDepth)
let lineChart = dc.lineChart(view.querySelector("#time-chart"))
lineChart.width(960)
.height(150)
.dimension(depthDim)
.x(d3.scaleTime()
.domain(d3.extent(dataset, d => d.dtg)))
.group(terremotoByHour)
dc.renderAll()
return view
}