I have a demo here
It's a simple D3 bar chart in an angular app.
I want to check if the x-axis text has 'Feb' in it.
If it does I want to change it style.
In the exmaple here it is changing the color in the y-axis.
How check the axis has a particular name and style it.
private accessTicks(){
d3.select(".x-axis")
.selectAll('g')
.each(function(d) {
d3.select("text")
.filter(() => {
return d3.select(this).text() === 'Feb'
})
.attr("fill", 'red');
});
}