---
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

## Changes

- **2026-07-17** `5f77d79b504f` — 4 warning, 15 info
  - removed the request property `plotParams/colorColumnName`
  - removed the request property `plotParams/thetaColumnName`
  - removed the request property `plotParams/y2ColumnName`
  - removed the request property `plotParams/yColumnName`
  - …15 more
- **2023-11-27** `c2d57e621a13` — 5 breaking, 8 info
  - added the new required request property `plotParams/plotType`
  - the request property `plotParams` became required
  - the request property `tableId` became required
  - the `plotParams` request property type changed from no type to `object`
  - …9 more
- **2023-11-20** `ee7eb73634d2` — 2 breaking, 8 warning, 2 info
  - the `plotParams` request property type changed from `object` to no type
  - the `tableId` request property type changed from `string` to no type
  - removed the request property `plotParams/colorColumnName`
  - removed the request property `plotParams/plotType`
  - …8 more
- **2023-11-19** `35c27bb79744` — 3 warning, 2 info
  - removed the optional property `createdElementId` from the response with the `200` status
  - removed the optional property `createdElementName` from the response with the `200` status
  - removed the optional property `createdElementType` from the response with the `200` status
  - added the optional property `notebookErrors` to the response with the `200` status
  - …1 more
- **2023-11-08** `d0f9de8761ec` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/appendPlot/post.md)

---

[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)
