D3-graph-gallery icon indicating copy to clipboard operation
D3-graph-gallery copied to clipboard

FIX: Matching names and data in stackedarea_basic.html

Open brown2243 opened this issue 1 year ago • 0 comments

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.

brown2243 avatar Mar 27 '23 08:03 brown2243