Generic ECharts View

Hello

I have been trying to make different graphics to those proposed by the templates without much success. At the moment I am trying to generate a WordCloud and making use of the K-AI, I managed to make a code for the graph, but although it runs without error, it does not show me any graph. What could be going on? Attached is the code

option = {

series: [{

type: ‘wordCloud’,

shape: ‘circle’,

gridSize: 8,

sizeRange: [12, 60],

rotationRange: [-90, 90],

rotationStep: 45,

width: 600,

height: 400,

drawOutOfBound: false,

textStyle: {

normal: {

color: function () {

return ‘rgb(’ + [

Math.round(Math.random() * 160),

Math.round(Math.random() * 160),

Math.round(Math.random() * 160)

].join(‘,’) + ‘)’;

}

},

emphasis: {

focus: ‘self’,

}

},

data: (await inputTable.getData([“Term as String”, “TF rel”])).map(([name, value]) => ({name, value}))

}]

};

Thanks in advance