generate_gauge_chart
Visualize single indicators like CPU usage, progress, or performance scores using a gauge chart. Configure dimensions, themes, and output formats for dynamic, clear data representation.
Instructions
Generate a gauge chart to display single indicator's current status, such as, CPU usage rate, completion progress, or performance scores.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Data for gauge chart, such as, [{ name: 'CPU Usage', value: 75 }]. Multiple gauges can be displayed. | |
height | No | Set the height of the chart, default is 600px. | |
max | No | Maximum value of the gauge, default is 100. | |
min | No | Minimum value of the gauge, default is 0. | |
outputType | No | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the valid ECharts option. | png |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of the chart. | |
width | No | Set the width of the chart, default is 800px. |