The Save Chart Dataset tool saves a generated dataset for a chart into the database, specifically in the meta JSON field of a message. This tool allows agents to store chart data in a structured format, which can then be used for visualization purposes. The tool requires both the dataset and the type of chart (e.g., pie, column, line) to be specified.
Database Connection: Managed by Prisma Client
The dataset is saved to the meta field in the ragMessage table with the specified chart type.
Arguments
dataset (string): The dataset to save, formatted as a JSON string. The format varies depending on the chartType:
Pie Chart: [{name: 'name', value: value}, {name: 'name', value: value}]
Line Chart: [{ date: 'YYYY-MM-DD', value: value },{ date: 'YYYY-MM-DD', value: value }]
chartType (string): The type of chart. Accepted values are pie, column-vertical, column-horizontal, and line.
Example Configuration
export const saveChartDataset = { type: "function" as const, function: { name: "save_chart_dataset", description: "Save generated dataset for chart into the database to message meta json field. Always include the chart type in your response.", parameters: { type: "object", properties: { dataset: { type: "string", description: "The dataset to save as a JSON string. If the chart type is a pie use the following format: [{name: 'name', value: value}, {name: 'name', value: value}], if the chart type is a column use the following format: [{name: 'name', value: name}, {name: 'name', value: name}], if the chart type is a line use the following format: [{ date: 'YYYY-MM-DD', value: value },{ date: 'YYYY-MM-DD', value: value }]", }, chartType: { type: "string", description: "The type of chart to save. Accepted values are: pie, column-vertical, column-horizontal, line.", }, }, required: ["dataset", "chartType"], strict: true, additionalProperties: false, }, },};
Example Usage
User Query: “Generate a pie chart for my recent expenses.”
Agent Invocation1: The agent calls get-user-transactions to get the transactions data.
Agent Invocation2: The agent calls save_chart_dataset with the following parameters:
Response: The tool saves the chart dataset and returns a success message.
Example Response
{ "result": "SVG chart saved"}
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Peak RAG Framework","colors":{"primary":"#006EB5","light":"#006EB5","dark":"#006EB5"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/peak/S89t8ZUZoKiNypat/logo/peakrag.svg?fit=max\u0026auto=format\u0026n=S89t8ZUZoKiNypat\u0026q=85\u0026s=3e036f7903d66087d6f0061d79bb1dcb","dark":"https://mintcdn.com/peak/S89t8ZUZoKiNypat/logo/peakrag-inverse.svg?fit=max\u0026auto=format\u0026n=S89t8ZUZoKiNypat\u0026q=85\u0026s=765b220e105aabde778c39c83b68799c"},"navigation":{"global":{"anchors":[{"anchor":"CODA docs","href":"https://coda.io/d/Peak-Innovations_d2eP0_r5FYY/RAG-2-0-specifications_sufBR-2Q","icon":"book-open-cover"},{"anchor":"Miro","href":"https://miro.com/app/board/uXjVLXk-uqc=/","icon":"arrow-progress"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"peak","hasAudioNarration":false,"actualSubdomain":"peak","customDomains":["rag-docs.peakfs.io"],"gitSource":{"type":"github","owner":"peakgit","repo":"rag-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae922a65284320f30d5e0d1:success","clientVersion":"0.0.4277","searchFilterCounts":[{"language":"default","tag":"Tool Repository","count":32},{"language":"default","tag":"Vectorization","count":14},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"SDK","count":4},{"language":"default","tag":"Tool Capabilities","count":4},{"language":"default","tag":"Agents","count":3},{"language":"default","tag":"Framework","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"tools/save-chart-dataset","slug":"/tools/save-chart-dataset","pageMetadata":{"title":"Save Chart Dataset","description":null,"href":"/tools/save-chart-dataset"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={br:`br`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Save Chart Dataset tool saves a generated dataset for a chart into the database, specifically in the meta JSON field of a message. This tool allows agents to store chart data in a structured format, which can then be used for visualization purposes. The tool requires both the dataset and the type of chart (e.g., pie, column, line) to be specified.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Database Connection`}),`: Managed by Prisma Client`,_jsx(_components.br,{}),`\n`,`The dataset is saved to the `,_jsx(_components.code,{children:`meta`}),` field in the `,_jsx(_components.code,{children:`ragMessage`}),` table with the specified chart type.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`dataset (string)`}),`: The dataset to save, formatted as a JSON string. The format varies depending on the chartType:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Pie Chart: `,_jsx(_components.code,{children:`[{name: 'name', value: value}, {name: 'name', value: value}]`})]}),`\n`,_jsxs(_components.li,{children:[`Column Chart: `,_jsx(_components.code,{children:`[{name: 'name', value: name}, {name: 'name', value: name}]`})]}),`\n`,_jsxs(_components.li,{children:[`Line Chart: `,_jsx(_components.code,{children:`[{ date: 'YYYY-MM-DD', value: value },{ date: 'YYYY-MM-DD', value: value }]`})]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`chartType (string)`}),`: The type of chart. Accepted values are pie, column-vertical, column-horizontal, and line.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-configuration`,children:`Example Configuration`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` saveChartDataset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"function\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` as`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` function:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"save_chart_dataset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Save generated dataset for chart into the database to message meta json field. Always include the chart type in your response.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` parameters:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` properties:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` dataset:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The dataset to save as a JSON string. If the chart type is a pie use the following format: [{name: 'name', value: value}, {name: 'name', value: value}], if the chart type is a column use the following format: [{name: 'name', value: name}, {name: 'name', value: name}], if the chart type is a line use the following format: [{ date: 'YYYY-MM-DD', value: value },{ date: 'YYYY-MM-DD', value: value }]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` chartType:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` description:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The type of chart to save. Accepted values are: pie, column-vertical, column-horizontal, line.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` required:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dataset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"chartType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` strict:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` additionalProperties:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-usage`,children:`Example Usage`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User Query`}),`: “Generate a pie chart for my recent expenses.”`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent Invocation1`}),`: The agent calls `,_jsx(_components.code,{children:`get-user-transactions`}),` to get the transactions data.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent Invocation2`}),`: The agent calls `,_jsx(_components.code,{children:`save_chart_dataset`}),` with the following parameters:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`dataset: `,_jsx(_components.code,{children:`[{ \"name\": \"Food\", \"value\": 300 }, { \"name\": \"Transport\", \"value\": 150 }]`})]}),`\n`,_jsx(_components.li,{children:`chartType: pie`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Response`}),`: The tool saves the chart dataset and returns a success message.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Example Response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SVG chart saved\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Save Chart Dataset","description":null,"href":"/tools/save-chart-dataset"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Example Configuration","slug":"example-configuration","depth":2,"children":[]},{"title":"Example Usage","slug":"example-usage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"peak","siteName":"Peak RAG Framework","title":"Save Chart Dataset - Peak RAG Framework","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T04:42:27.497Z","originalFileLocation":"tools/save-chart-dataset.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Peak RAG Framework\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Save Chart Dataset - Peak RAG Framework\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Peak RAG Framework\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://rag-docs.peakfs.io/tools/save-chart-dataset\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://peak.mintlify.site/_mintlify/api/og/v2?division=Tool+Repository\u0026amp;title=Save+Chart+Dataset\u0026amp;theme=bc94c8bd85fc5e935c18ff08\u0026amp;signature=b67a5861123f19435c27ce6199e77f6b08a4fe2132ed7265a36d719cbf158499\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Save Chart Dataset - Peak RAG Framework\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://peak.mintlify.site/_mintlify/api/og/v2?division=Tool+Repository\u0026amp;title=Save+Chart+Dataset\u0026amp;theme=bc94c8bd85fc5e935c18ff08\u0026amp;signature=b67a5861123f19435c27ce6199e77f6b08a4fe2132ed7265a36d719cbf158499\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/peak/qZrGBvrHI0VqdkVU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Peak RAG Framework\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006EB5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://rag-docs.peakfs.io/tools/save-chart-dataset\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tools/save-chart-dataset.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://rag-docs.peakfs.io/#organization\",\"name\":\"Peak RAG Framework\",\"url\":\"https://rag-docs.peakfs.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/peak/S89t8ZUZoKiNypat/logo/peakrag.svg?fit=max\u0026auto=format\u0026n=S89t8ZUZoKiNypat\u0026q=85\u0026s=3e036f7903d66087d6f0061d79bb1dcb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://rag-docs.peakfs.io#website\",\"name\":\"Peak RAG Framework\",\"url\":\"https://rag-docs.peakfs.io\",\"publisher\":{\"@id\":\"https://rag-docs.peakfs.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset#webpage\",\"url\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset\",\"name\":\"Save Chart Dataset\",\"dateModified\":\"2026-01-07T04:42:27.497Z\",\"isPartOf\":{\"@id\":\"https://rag-docs.peakfs.io#website\"},\"breadcrumb\":{\"@id\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tool Repository\",\"item\":\"https://rag-docs.peakfs.io/tools/retrieve-knowledge\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Save Chart Dataset\",\"item\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset#article\",\"headline\":\"Save Chart Dataset\",\"name\":\"Save Chart Dataset\",\"url\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset\",\"mainEntityOfPage\":{\"@id\":\"https://rag-docs.peakfs.io/tools/save-chart-dataset#webpage\"},\"dateModified\":\"2026-01-07T04:42:27.497Z\",\"publisher\":{\"@id\":\"https://rag-docs.peakfs.io/#organization\"},\"isPartOf\":{\"@id\":\"https://rag-docs.peakfs.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Peak RAG Framework\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Peak RAG Framework\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tools/save-chart-dataset.md","siteName":"Peak RAG Framework","nav":{"global":{"anchors":[{"anchor":"CODA docs","href":"https://coda.io/d/Peak-Innovations_d2eP0_r5FYY/RAG-2-0-specifications_sufBR-2Q","icon":"book-open-cover"},{"anchor":"Miro","href":"https://miro.com/app/board/uXjVLXk-uqc=/","icon":"arrow-progress"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"Vectorization","pages":[{"title":"Vectorization","href":"/vectorization/ingestion"}]},{"tab":"Tool Repository","groups":[{"group":"Tool Capabilities","pages":[{"title":"Authentication","href":"/tools/auth"},{"title":"System-Wide Arguments","href":"/tools/system-wide-arguments"},{"title":"Intention-Based Caching","href":"/tools/intention-caching"},{"title":"Tool Argument-Based Caching","href":"/tools/tool-argument-based-caching"}]},{"group":"Tool Repository","pages":[{"title":"Retrieval Knowledge","href":"/tools/retrieve-knowledge"},{"title":"Fetch Foreign Exchange API","href":"/tools/fetch-foreign-exchange-api"},{"title":"Get SQL Schema","href":"/tools/get-sql-schema"},{"title":"Run SQL","href":"/tools/run-sql"},{"title":"Interpret Python","href":"/tools/interpret-python"},{"title":"Interpret Typescript","href":"/tools/interpret-typescript"},{"title":"Translate Text","description":null,"href":"/tools/translate-text"},{"title":"Save Chart Dataset","href":"/tools/save-chart-dataset"},{"title":"Get User Transactions","description":null,"href":"/tools/get-user-transactions"},{"title":"Get User Bank Accounts","href":"/tools/get-user-bank-accounts"},{"title":"Get User Partners","href":"/tools/get-user-partners"},{"title":"Get User Banks","href":"/tools/get-user-banks"},{"title":"Get Companies","href":"/tools/get-user-companies"},{"title":"Get Organization","href":"/tools/get-user-organization"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/react-integration"}]}]},"basePath":"","title":"Save Chart Dataset - Peak RAG Framework","deploymentId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","buildId":"dpl_BzgRxZmUbhHRoPLkBx1DiVRSyQhV","dynamics":[],"chunks":[]}