How do I insert data dyamically into an eChart configuration JSON?

Here’s the contents of the demo Chart configuration | JSON in Simple ECharts Example

I’d like to insert the xAxis data dynamically in cables… not sure how to do it ?

{
    "title": {
        "text": "ECharts bar"
    },
    "tooltip": {},
    "legend": {
        "data":["Sales 2021"]
    },
    "xAxis": {
        "data": ["shirt","cardigan","chiffon shirt","pants","heels","socks"]
    },
    "yAxis": {},
    "series": [{
        "name": "Sales 2021",
        "type": "bar",
        "data": [35, 60, 32, 100, 90, 70],
        "emphasis": {
            "focus": "self",
            "itemStyle": {
                "color": "red"
            }
        }
    }]
}