D3 - Update pattern in stacked area chart

青春壹個敷衍的年華 提交于 2019-12-25 01:16:20

问题


I have a demo here

It's a D3 stacked area chart within an Angular app.

I wanted to have a D3 Update pattern in this chart put I can't get it to work using the normal method I use.

This doesn't seem to work.

areaGroup.selectAll('path')
    .data(data)

areaGroup   
    .enter()
    .append('path')
    .attr('class', (d, i) => 'path_'+(i+1) )
    .attr('d', areaGenerator)

How can I use the General Update Pattern with a Stacked Area Chart

来源:https://stackoverflow.com/questions/56872020/d3-update-pattern-in-stacked-area-chart

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!