{"agent":"claude","input":"Our chart throws \"d3.scale.linear is not a function\" (or `Cannot read properties of undefined (reading 'linear')`) after upgrading D3 past version 3. List every d3.* call in the chart code with its line, map each nested D3 3 name to its flat D3 4+ name, and port them, including axes built with d3.svg.axis and orient. Check every data join for enter/update code that relied on D3 3 merging entered nodes, and add merge where needed. Build the component, render the example before and after with the same data, compare the rendered elements, and open a pull request with the screenshots and the mapping table.","resources":[{"url":"https://github.com/your-org/your-app"}]}