Skip to main content
POST
/
talk2data
/
mcp
/
generate-plotly-chart
Generate Plotly Chart Endpoint
curl --request POST \
  --url https://api.example.com/talk2data/mcp/generate-plotly-chart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": "<unknown>",
  "chart_type": "<string>",
  "options": {}
}
'
{
  "success": true,
  "plotly_json": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for synchronous Plotly chart generation.

data
any
required

Tabular data: JSON array, CSV string, or pandas dict format

chart_type
string
required

Chart type: bar, line, scatter, pie, etc.

Required string length: 1 - 100
options
Options · object

Optional chart options: title, x_label, y_label, color_scheme

Response

Successful Response

Synchronous Plotly chart generation result.

success
boolean
required
plotly_json
Plotly Json · object