---
title: "appends a plot (or graph) to the notebook"
method: POST
path: "/api/notebook/appendPlot"
---

# appends a plot (or graph) to the notebook

`POST /api/notebook/appendPlot`

plots or graphs can be cartesian or pie charts (plot type "arc"). Cartesian chart types can be bar, line, area, tick or point.

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `tableId` string, required — the id of the source table for this plot
  - `plotParams` object, required — parameters for the plot
    - `plotType` 'bar' | 'circle' | 'square' | 'tick' | 'line' | 'area' | 'point' | 'arc', required
    - `xColumnName` string
    - `labelColumnName` string
    - `sizeColumnName` string
    - `orientation` string
    - `startFromZero` boolean
    - `mirrorYAxis` boolean
    - `flipTable` boolean
    - `grid` boolean
    - `showDataLabel` boolean
    - `groupByX` boolean
    - `lineVariant` string
    - `barVariant` string
    - `arcVariant` string
    - `xAxisLabel` string
    - `yAxisLabel` string
    - `yColumnChartTypes` string[]
    - `yColumnNames` string[]

## Response `200`

Ok

- object
  - `result` unknown
  - `notebookErrors` unknown[]
    - unknown

---

[API](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook.md) · [All operations](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decipad/create-and-modify-a-decipad-notebook/revisions/5f77d79b504f/schema)
