> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://help.sigmacomputing.com/docs/workbook-representation-example-library/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server. # Workbook representation example library (Beta) > Explore Sigma workbook code representation examples for programmatic API endpoints. Troubleshoot formatting for elements and other features. > **Note** > > This documentation describes one or more public beta features that are in development. Beta features are subject to quick, iterative changes; therefore the current user experience in the Sigma service can differ from the information provided in this page. > > This page should not be considered official published documentation until Sigma removes this notice and the beta flag on the corresponding feature(s) in the Sigma service. For the full beta feature disclaimer, see [Beta features](/docs/sigma-product-releases#beta-features). The Sigma programmatic API endpoints, including [Create a workbook](/reference/create-workbook), [Update a workbook from a code representation](/reference/update-workbook-contents), and [Get a workbook](/reference/get-workbook), require a specific format for the representation of the workbook. This example library shows examples of workbook representations for various configurations, using different element types and features in Sigma. Consult these examples to: * Troubleshoot the formatting of a particular feature in a code representation * Relate a feature from the Sigma UI to its representation in code * Provide context to AI assistants used to create workbooks from code ## Example representations To review a specific representation, search or browse the following examples: > **Tip** > > To see the representation for a specific configuration or combination of features, you can create the workbook in the UI and then retrieve the representation using the [Get a workbook](/reference/get-workbook) endpoint with `includeContents=true`. > Official documentation and guidance for using Sigma to build AI apps, dashboards, and agents on governed warehouse data. ## Docs - [Example representation: Workbook with a table (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-table.md): Example Sigma code representation of a workbook with a table. - [Example representation: Workbook with a bar chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-bar-chart.md): Example Sigma code representation of a workbook with a bar chart. - [Example representation: Workbook with a line chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-line-chart.md): Example Sigma code representation of a workbook with a line chart. - [Example representation: Workbook with a KPI (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-kpi.md): Example Sigma code representation of a workbook with a KPI. - [Example representation: Workbook with a pie chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-pie-chart.md): Example Sigma code representation of a workbook with a pie chart. - [Example representation: Workbook with a donut chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-donut-chart.md): Example Sigma code representation of a workbook with a donut chart. - [Example representation: Workbook with a pivot table (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-pivot-table.md): Example Sigma code representation of a workbook with a pivot table. - [Example representation: Workbook with a container (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-container.md): Example Sigma code representation of a workbook with a container. - [Example representation: Workbook with a text element (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-text-element.md): Example Sigma code representation of a workbook with a text element. - [Example representation: Workbook with an area chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-area-chart.md): Example Sigma code representation of a workbook with an area chart. - [Example representation: Workbook with a scatter chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-scatter-chart.md): Example Sigma code representation of a workbook with a scatter chart. - [Example representation: Workbook with a combo chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-combo-chart.md): Example Sigma code representation of a workbook with a combo chart. - [Example representation: Workbook with a divider (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-divider.md): Example Sigma code representation of a workbook with a divider. - [Example representation: Workbook with an image (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-image.md): Example Sigma code representation of a workbook with an image. - [Example representation: Workbook with a chart with stacking (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-chart-with-stacking.md): Example Sigma code representation of a workbook with a chart with stacking. - [Example representation: Workbook with a page background image (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-page-background-image.md): Example Sigma code representation of a workbook with a page background image. - [Example representation: Workbook with a point map (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-point-map.md): Example Sigma code representation of a workbook with a point map. - [Example representation: Workbook with a geography map (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-geography-map.md): Example Sigma code representation of a workbook with a geography map. - [Example representation: Workbook with a region map (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-region-map.md): Example Sigma code representation of a workbook with a region map. - [Example representation: Workbook with a chart with reference marks (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-chart-with-reference-marks.md): Example Sigma code representation of a workbook with a chart with reference marks. - [Example representation: Workbook with a chart with multiple axes and labels (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-chart-with-multiple-axes-and-labels.md): Example Sigma code representation of a workbook with a chart with multiple axes and labels. - [Example representation: Workbook with a pivot table with conditional formatting (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-pivot-table-with-conditional-formatting.md): Example Sigma code representation of a workbook with a pivot table with conditional formatting. - [Example representation: Workbook with an embed (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-embed.md): Example Sigma code representation of a workbook with an embed. - [Example representation: Workbook with an input table (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-input-table.md): Example Sigma code representation of a workbook with an input table. - [Example representation: Workbook with a plugin (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-plugin.md): Example Sigma code representation of a workbook with a plugin. - [Example representation: Workbook with a linked input table (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-linked-input-table.md): Example Sigma code representation of a workbook with a linked input table. - [Example representation: Workbook with an open URL action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-open-url-action.md): Example Sigma code representation of a workbook with an open URL action. - [Example representation: Workbook with a set control value action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-set-control-value-action.md): Example Sigma code representation of a workbook with an action set control value. - [Example representation: Workbook with an insert row action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-insert-row-action.md): Example Sigma code representation of a workbook with an action insert rows. - [Example representation: Workbook with a theme (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-theme.md): Example Sigma code representation of a workbook with a theme. - [Example representation: Workbook with a CSV table (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-csv-table.md): Example Sigma code representation of a workbook with a CSV table. - [Example representation: Workbook with a tabbed container (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-tabbed-container.md): Example Sigma code representation of a workbook with a tabbed container. - [Example representation: Workbook with a trellis chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-trellis-chart.md): Example Sigma code representation of a workbook with a trellis chart. - [Example representation: Workbook with chart styling (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-chart-styling.md): Example Sigma code representation of a workbook with a chart styling. - [Example representation: Workbook with an element filter (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-element-filter.md): Example Sigma code representation of a workbook with an element filter. - [Example representation: Workbook with a modal (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-modal.md): Example Sigma code representation of a workbook with a modal. - [Example representation: Workbook with a hidden page (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-hidden-page.md): Example Sigma code representation of a workbook with a hidden page. - [Example representation: Workbook with a sparkline (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-sparkline.md): Example Sigma code representation of a workbook with a sparkline. - [Example representation: Workbook with a table with conditional formatting (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-table-with-conditional-formatting.md): Example Sigma code representation of a workbook with a table with conditional formatting. - [Example representation: Workbook with a button (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-button.md): Example Sigma code representation of a workbook with a button. - [Example representation: Workbook with an open overlay action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-open-overlay-action.md): Example Sigma code representation of a workbook with an open overlay action. - [Example representation: Workbook with a close overlay action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-close-overlay-action.md): Example Sigma code representation of a workbook with a close overlay action. - [Example representation: Workbook with a clear control action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-clear-control-action.md): Example Sigma code representation of a workbook with a clear control action. - [Example representation: Workbook with an update row action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-update-row-action.md): Example Sigma code representation of a workbook with an update row action. - [Example representation: Workbook with a delete row action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-delete-row-action.md): Example Sigma code representation of a workbook with a delete row action. - [Example representation: Workbook with a refresh element action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-refresh-element-action.md): Example Sigma code representation of a workbook with a refresh element action. - [Example representation: Workbook with a navigate action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-navigate-action.md): Example Sigma code representation of a workbook with a navigate action. - [Example representation: Workbook with an open document action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-open-document-action.md): Example Sigma code representation of a workbook with an open document action. - [Example representation: Workbook with a select tab action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-select-tab-action.md): Example Sigma code representation of a workbook with a select tab action. - [Example representation: Workbook with a form (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-form.md): Example Sigma code representation of a workbook with a form. - [Example representation: Workbook with a repeated container (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-repeated-container.md): Example Sigma code representation of a workbook with a repeated container. - [Example representation: Workbook with a page break (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-page-break.md): Example Sigma code representation of a workbook with a page break. - [Example representation: Workbook with a waterfall chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-waterfall-chart.md): Example Sigma code representation of a workbook with a waterfall chart. - [Example representation: Workbook with a gauge chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-gauge-chart.md): Example Sigma code representation of a workbook with a gauge chart. - [Example representation: Workbook with a funnel chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-funnel-chart.md): Example Sigma code representation of a workbook with a funnel chart. - [Example representation: Workbook with a chat element (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-chat-element.md): Example Sigma code representation of a workbook with a chat element. - [Example representation: Workbook with an agent (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-agent.md): Example Sigma code representation of a workbook with an agent. - [Example representation: Workbook with a navigation element (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-navigation-element.md): Example Sigma code representation of a workbook with a navigation element. - [Example representation: Workbook with a progress bar (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-progress-bar.md): Example Sigma code representation of a workbook with a progress bar. - [Example representation: Workbook with a box chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-box-chart.md): Example Sigma code representation of a workbook with a box chart. - [Example representation: Workbook with a Sankey chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-sankey-chart.md): Example Sigma code representation of a workbook with a Sankey chart. - [Example representation: Workbook with a treemap chart (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-treemap-chart.md): Example Sigma code representation of a workbook with a treemap chart. - [Example representation: Workbook with a value list (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-value-list.md): Example Sigma code representation of a workbook with a value list. - [Example representation: Workbook with a single row container (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-single-row-container.md): Example Sigma code representation of a workbook with a single row container. - [Example representation: Workbook with text and number controls (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-text-and-number-controls.md): Example Sigma code representation of a workbook with text and number controls. - [Example representation: Workbook with date controls (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-date-controls.md): Example Sigma code representation of a workbook with date controls. - [Example representation: Workbook with list and toggle controls (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-list-and-toggle-controls.md): Example Sigma code representation of a workbook with list and toggle controls. - [Example representation: Workbook with a legend control (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-legend-control.md): Example Sigma code representation of a workbook with a legend control. - [Example representation: Workbook with a file upload control (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-file-upload-control.md): Example Sigma code representation of a workbook with a file upload control. - [Example representation: Workbook with a synced control (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-synced-control.md): Example Sigma code representation of a workbook with a synced control. - [Example representation: Workbook with a drawer (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-drawer.md): Example Sigma code representation of a workbook with a drawer. - [Example representation: Workbook with a popover (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-popover.md): Example Sigma code representation of a workbook with a popover. - [Example representation: Workbook with a page header (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-page-header.md): Example Sigma code representation of a workbook with a page header. - [Example representation: Workbook with a page sidebar (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-page-sidebar.md): Example Sigma code representation of a workbook with a page sidebar. - [Example representation: Workbook with an automated action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-an-automated-action.md): Example Sigma code representation of a workbook with an automated action. - [Example representation: Workbook with navigation settings (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-navigation-settings.md): Example Sigma code representation of a workbook with navigation settings. - [Example representation: Workbook with a custom page width (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-custom-page-width.md): Example Sigma code representation of a workbook with a custom page width. - [Example representation: Workbook with a page background color (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-page-background-color.md): Example Sigma code representation of a workbook with a page background color. - [Example representation: Workbook with a conditional action trigger (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-conditional-action-trigger.md): Example Sigma code representation of a workbook with a conditional action trigger. - [Example representation: Workbook with a conditional action sequence (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-conditional-action-sequence.md): Example Sigma code representation of a workbook with a conditional action sequence. - [Example representation: Workbook with a send embed event action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-send-embed-event-action.md): Example Sigma code representation of a workbook with a send embed event action. - [Example representation: Workbook with a custom sort action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-custom-sort-action.md): Example Sigma code representation of a workbook with a custom sort action. - [Example representation: Workbook with a clear chat messages action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-clear-chat-messages-action.md): Example Sigma code representation of a workbook with a clear chat messages action. - [Example representation: Workbook with a set form values action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-set-form-values-action.md): Example Sigma code representation of a workbook with a set form values action. - [Example representation: Workbook with a reset form action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-reset-form-action.md): Example Sigma code representation of a workbook with a reset form action. - [Example representation: Workbook with a notify and export action (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-notify-and-export-action.md): Example Sigma code representation of a workbook with a notify and export action. - [Example representation: Workbook with a data model source (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-data-model-source.md): Example Sigma code representation of a workbook with a data model source. - [Example representation: Workbook with a custom SQL source (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-custom-sql-source.md): Example Sigma code representation of a workbook with a custom SQL source. - [Example representation: Workbook with a join (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-join.md): Example Sigma code representation of a workbook with a join. - [Example representation: Workbook with a union (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-union.md): Example Sigma code representation of a workbook with a union. - [Example representation: Workbook with table styling (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-table-styling.md): Example Sigma code representation of a workbook with table styling. - [Example representation: Workbook with a frozen column (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-a-frozen-column.md): Example Sigma code representation of a workbook with a frozen column. - [Example representation: Workbook with grouped columns and subtotals (Beta)](https://help.sigmacomputing.com/docs/example-representation-workbook-with-grouped-columns-and-subtotals.md): Example Sigma code representation of a workbook with grouped columns and subtotals.