function changeColor (chart, color, fontsize) {
d3
.select(chart)
.select("[aria-label=x-axis]")
.selectAll("text")
.each(function (d) {
d3.select(this)
.attr("fill", color)
.attr("font-size", fontsize)
.attr("font-family", "IBM Plex Sans");
})
d3
.select(chart)
.select("[aria-label=y-axis]")
.selectAll("text")
.each(function (d) {
d3.select(this)
.attr("fill", color)
.attr("font-size", fontsize)
.attr("font-family", "IBM Plex Sans");
})
d3
.select(chart)
.select("[aria-label=x-axis]")
.selectAll("line")
.each(function (d) {
d3.select(this)
.attr("stroke", color)
})
d3
.select(chart)
.select("[aria-label=y-axis]")
.selectAll("line")
.each(function (d) {
d3.select(this)
.attr("stroke", color)
})
d3.select(chart)
.selectAll("text")
.each(function(d) {
d3.select(this)
.attr("font-family", "IBM Plex Sans");
})
return chart
}