word-cloud.json•2.33 kB
{
"name": "generate_word_cloud_chart",
"description": "Generate a word cloud chart to show word frequency or weight through text size variation, such as, analyzing common words in social media, reviews, or feedback.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"data": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"value": {
"type": "number"
},
"text": {
"type": "string"
}
},
"required": ["text", "value"]
},
"description": "Data for word cloud chart, it should be an array of objects, each object contains a `text` field and a `value` field, such as, [{ value: 4.272, text: '形成' }]."
},
"theme": {
"default": "default",
"description": "Set the theme for the chart, optional, default is 'default'.",
"enum": ["default", "academy", "dark"],
"type": "string"
},
"style": {
"description": "Custom style configuration for the chart.",
"properties": {
"backgroundColor": {
"description": "Background color of the chart, such as, '#fff'.",
"type": "string"
},
"palette": {
"description": "Color palette for the chart, it is a collection of colors.",
"items": {
"type": "string"
},
"type": "array"
},
"texture": {
"default": "default",
"description": "Set the texture for the chart, optional, default is 'default'. 'rough' refers to hand-drawn style.",
"enum": ["default", "rough"],
"type": "string"
}
},
"type": "object"
},
"width": {
"type": "number",
"description": "Set the width of chart, default is 600.",
"default": 600
},
"height": {
"type": "number",
"description": "Set the height of chart, default is 400.",
"default": 400
},
"title": {
"type": "string",
"default": "",
"description": "Set the title of chart."
}
},
"required": ["data"]
}
}