score:0

Accepted answer

Looks like you forgot to set width and height for svg (via html or js).

<svg width="1000" height="600"></svg>

And remove "this" in line:

.domain(this.sample.map((s) => s.language))

Related Query