generate_graph_chart
Visualize relationships between entities in network graphs by generating interactive charts. Input nodes and edges to create customizable layouts, themes, and outputs like PNG, SVG, or ECharts options.
Instructions
Generate a network graph chart to show relationships (edges) between entities (nodes), such as, relationships between people in social networks.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Data for network graph chart, such as, { nodes: [{ id: 'node1', name: 'Node 1' }], edges: [{ source: 'node1', target: 'node2' }] } | |
height | No | Set the height of the chart, default is 600px. | |
layout | No | Layout algorithm for the graph. Default is 'force'. | force |
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. |