How does D3.js request data from the background?

how D3.js requests data from the background. Here"s what I did:
function update () {

    $.ajax({
        type: "POST",
        url: "<%=basePath%>d3/getData.do",
        cache : false, 
        dataType: "json",
        success: function(dataset) {
            colsePrompt();
            console.log(dataset);
            draw(dataset);
        },
    });

}
I wrote a static data in the foreground at that time, and now I want to use ajax to get the data, so I put the previously written data in the background, but it is true that it is passed back to the foreground at this time, but there will be an error in the parsing, and only one node will be generated. I would like to ask how to write to complete the dynamic refresh function?

Mar.17,2021

has nothing to do with ajax. Analyze the dataset data before moving on to the next step

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3c4eb-4361d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3c4eb-4361d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?