# Chart

> Create charts including pie, bar, line, area, scatter, bubble, and radar charts.

Source: https://mockflow.com/developers/reference/item-types/chart

Send `"type": "chart"`.

Create charts including pie, bar, line, area, scatter, bubble, and radar charts. Only for plotting VALUES: a "chart" that plots nothing and instead shows how people or parts relate (org chart, reporting structure, hierarchy tree) is a diagram — use render_flowchart.

Also available as the MCP tool `render_chart`. The same payload works through either surface.

### Fields

- `componentType` (enum<string>, required): Chart type. One of `MF_PieChart2`, `MF_HorizontalLineChart`, `MF_VerticalBarChart`, `MF_HorizontalBarChart`, `MF_AreaChart`, `MF_ScatterChart`, `MF_BubbleChart` or `MF_RadarChart`.
- `chartData` (string, required): CSV-formatted chart data. For pie: "Label1,Label2\n20,30". For line/bar: "Legends,Series\nJan,100\nFeb,120"
- `title` (string, required): Chart title
- `chartColors` (object[]): ONLY when the user names a color scheme/theme/brand: one entry per data series/slice matching that theme. Omit entirely otherwise (component defaults apply).
    - `legend` (string): Series/slice name exactly as it appears in chartData
  - `backgroundColor` (string): Hex color like #1B4F72

## Example

```json
{
  "type": "chart",
  "data": {
    "componentType": "MF_PieChart2",
    "chartData": "string",
    "title": "Q4 Launch Planning",
    "chartColors": [
      {
        "legend": "string",
        "backgroundColor": "string"
      }
    ]
  }
}
```
