I have a demo here https://stackblitz.com/edit/stacked-area-basic?file=src/app/bar-chart.ts
I'm trying to create a stacked area chart. This is my first attempt at this type of chart and I'm using online examples to help.
Nothing is actually displaying, the paths are getting created but but the data in the paths are all NaN.
I know this is a vague question but can anyome see why this isn't working.
const areaGenerator = d3.area()
.x((d) => this.x(d.x))
.y0(this.height)
.y1((d) => this.y(d.y));
const areaGroup = this.chart.append('g')
.classed('area-group', true)
areaGroup.selectAll('path')
.data(data)
.enter()
.append('path')
.style('fill', (d, i) => this.colors[i])
.attr('d', areaGenerator)
@Input() data: FLChart[];and that's empty. If you can show me where you actually do that I might be able to help. - Magelanthis.createStack(this.data);@Input() data: FLChart[];isn't empty - ttmt