D3-graph-gallery
D3-graph-gallery copied to clipboard
FIX: Matching names and data in stackedarea_basic.html
What?
I made changes to the part that retrieves the value with the key from stackedData and the part that retrieves the color with the key in "stackedarea_basic"
Why?
It seems that the data and the chart displayed on the "stackedarea_basic" page do not match.
How?
d[1][key].n; => d[1].find((row) => row.name === key)?.n || 0;
I am receiving a lot of help from your page. Thank you always. I would appreciate any feedback you may have.