multipleLinear = {
const svg = html `<svg width="500" height="500" />`
d3.select(svg)
.selectAll('path')
.data(data)
.join('path')
.attr('class', 'dfsw')
.attr('d', line)
.style('stroke', d => colors(d[0].state))
.style('stroke-width', 2)
.style('fill', 'transparent')
.style('opacity', '0.5')
d3.select(svg)
.append('g')
.attr('class', 'x-axis')
.attr('transform', `translate(0,${ height - margin.bottom })`)
.call(xAxis)
d3.select(svg)
.append('g')
.attr('class', 'y-axis')
.attr('transform', `translate(${ margin.left },0)`)
.call(yAxis)
const g = d3.select(svg).append('g')
const xAxisG = g.append('g')
const yAxisG = g.append('g')
const xLabel = xAxisG.append('text')
const yLabel = yAxisG.append('text')
xLabel
.attr('x', 200)
.attr('y', 485)
.attr('font-size', 10)
.attr('fill', 'black')
.text('Wavelength (μm)')
yLabel
.attr('x', 250)
.attr('y', 20)
.attr('font-size', 10)
.attr('fill', 'black')
.text('Absorptivity (α)')
.attr('transform', 'rotate(-90)')
const colorLegendG = g.append('g')
.attr('transform', "translate(" + 400 +", 375)")
const colorLegend = legendcolor.legendColor()
.scale(colors)
.shape('circle')
.shapePadding(35)
colorLegendG.call(colorLegend)
return svg
}