---
layout: page
title: "Chart Generator"
node_type: "nodetool.generators.ChartGenerator"
namespace: "nodetool.generators"
---

**Type:** `nodetool.generators.ChartGenerator`

**Namespace:** `nodetool.generators`

## Description

LLM Agent to create Plotly Express charts based on natural language descriptions.
    llm, data visualization, charts

    Use cases:
    - Generating interactive charts from natural language descriptions
    - Creating data visualizations with minimal configuration
    - Converting data analysis requirements into visual representations

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| model | `language_model` | The model to use for chart generation. | `{"type":"language_model","provider":"empty","id...` |
| prompt | `str` | Natural language description of the desired chart | `` |
| data | `dataframe` | The data to visualize | `{"type":"dataframe","uri":"","asset_id":null,"d...` |
| max_tokens | `int` | The maximum number of tokens to generate. | `4096` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `chart_config` |  |

## Related Nodes

Browse other nodes in the [nodetool.generators](../) namespace.
