Added npm vega lib to package.json
Added function for visualization renderer to src/libs/utils/index.ts
Added logic to src/lib/components/chat/Messages/CodeBlock.svelte
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/18032
**Author:** [@rgaricano](https://github.com/rgaricano)
**Created:** 10/3/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `dev-FEAT_vega_diagram`
---
### 📝 Commits (6)
- [`2b77e6f`](https://github.com/open-webui/open-webui/commit/2b77e6f48d991d618799290c98045ebcecbbf81e) Update package.json - added vega lib
- [`c8bc121`](https://github.com/open-webui/open-webui/commit/c8bc1213cbc1b6265b8ce9940b923565477e8f5b) Update package-lock.json - added vega lib
- [`0957079`](https://github.com/open-webui/open-webui/commit/0957079a569da29c7fa984057b7e4946e78cbb47) Update index.ts - Added vega renderer function
- [`5afade6`](https://github.com/open-webui/open-webui/commit/5afade69f4938e361b9bce9d4de1d1bb218013e8) FEAT: Add Vega Visualizer Renderer - Update CodeBlock.svelte
- [`7a5a0c4`](https://github.com/open-webui/open-webui/commit/7a5a0c43ff68c3e307470b1f33e976a12a7140dd) Fix-Format Update
- [`56b3529`](https://github.com/open-webui/open-webui/commit/56b35294c2b6c4dd893a3721a644f6936ea448a8) Revert "Fix-Format Update"
### 📊 Changes
**4 files changed** (+30 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `package-lock.json` (+1 -0)
📝 `package.json` (+1 -0)
📝 `src/lib/components/chat/Messages/CodeBlock.svelte` (+15 -2)
📝 `src/lib/utils/index.ts` (+13 -0)
</details>
### 📄 Description
### FEAT: Add Vega Char Visualizer Renderer
Feature required in https://github.com/open-webui/open-webui/discussions/18022
Added npm vega lib to package.json
Added function for visualization renderer to src/libs/utils/index.ts
Added logic to src/lib/components/chat/Messages/CodeBlock.svelte
The treatment is similar as for mermaid diagrams.
Reference: https://vega.github.io/vega/

___
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18032
Author: @rgaricano
Created: 10/3/2025
Status: ❌ Closed
Base:
dev← Head:dev-FEAT_vega_diagram📝 Commits (6)
2b77e6fUpdate package.json - added vega libc8bc121Update package-lock.json - added vega lib0957079Update index.ts - Added vega renderer function5afade6FEAT: Add Vega Visualizer Renderer - Update CodeBlock.svelte7a5a0c4Fix-Format Update56b3529Revert "Fix-Format Update"📊 Changes
4 files changed (+30 additions, -2 deletions)
View changed files
📝
package-lock.json(+1 -0)📝
package.json(+1 -0)📝
src/lib/components/chat/Messages/CodeBlock.svelte(+15 -2)📝
src/lib/utils/index.ts(+13 -0)📄 Description
FEAT: Add Vega Char Visualizer Renderer
Feature required in https://github.com/open-webui/open-webui/discussions/18022
Added npm vega lib to package.json
Added function for visualization renderer to src/libs/utils/index.ts
Added logic to src/lib/components/chat/Messages/CodeBlock.svelte
The treatment is similar as for mermaid diagrams.
Reference: https://vega.github.io/vega/
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.