From a24deae016e09034a767c9c4d64c9762a63fa3d7 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 23 Jan 2026 12:15:56 +0000
Subject: [PATCH 1/4] Initial plan
From e357d951ba97dcb725ebe2425de7492aa60c3691 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 23 Jan 2026 12:24:42 +0000
Subject: [PATCH 2/4] Enable plugin-object and fix chart component types in
documentation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
apps/site/app/components/InteractiveDemo.tsx | 2 +-
docs/plugins/plugin-charts.mdx | 101 +++++++++++--------
2 files changed, 61 insertions(+), 42 deletions(-)
diff --git a/apps/site/app/components/InteractiveDemo.tsx b/apps/site/app/components/InteractiveDemo.tsx
index 9fc0336a8..14598f7c0 100644
--- a/apps/site/app/components/InteractiveDemo.tsx
+++ b/apps/site/app/components/InteractiveDemo.tsx
@@ -16,7 +16,7 @@ const pluginsLoading = typeof window !== 'undefined'
import('@object-ui/plugin-charts'),
import('@object-ui/plugin-kanban'),
import('@object-ui/plugin-markdown'),
- // import('@object-ui/plugin-object'), // Temporarily disabled due to missing dependency
+ import('@object-ui/plugin-object'),
])
: Promise.resolve([]);
diff --git a/docs/plugins/plugin-charts.mdx b/docs/plugins/plugin-charts.mdx
index 9aedffe26..42afcbfe4 100644
--- a/docs/plugins/plugin-charts.mdx
+++ b/docs/plugins/plugin-charts.mdx
@@ -36,7 +36,8 @@ npm install @object-ui/plugin-charts
## Usage
@@ -96,7 +108,7 @@ const schema = {
## Features
-- **Bar, line, area, and pie charts**
+- **Bar, line, and area charts**
- **Responsive design**
- **Customizable colors and styles**
- **Lazy-loaded** (~540 KB loads only when rendered)
@@ -149,15 +161,20 @@ const schema = {
```tsx
const schema = {
- type: 'chart-line',
+ type: 'chart',
+ chartType: 'line',
data: [
{ date: '2024-01', users: 120 },
{ date: '2024-02', users: 180 },
{ date: '2024-03', users: 250 }
],
- dataKey: 'users',
xAxisKey: 'date',
- height: 350
+ series: [
+ { dataKey: 'users' }
+ ],
+ config: {
+ users: { label: 'Users', color: '#8884d8' }
+ }
}
```
@@ -165,30 +182,20 @@ const schema = {
```tsx
const schema = {
- type: 'chart-area',
+ type: 'chart',
+ chartType: 'area',
data: [
{ time: '9:00', value: 20 },
{ time: '10:00', value: 35 },
{ time: '11:00', value: 45 }
],
- dataKey: 'value',
xAxisKey: 'time',
- color: '#10b981'
-}
-```
-
-### Pie Chart
-
-```tsx
-const schema = {
- type: 'chart-pie',
- data: [
- { name: 'Desktop', value: 400 },
- { name: 'Mobile', value: 300 },
- { name: 'Tablet', value: 200 }
+ series: [
+ { dataKey: 'value' }
],
- dataKey: 'value',
- nameKey: 'name'
+ config: {
+ value: { label: 'Value', color: '#10b981' }
+ }
}
```
@@ -217,16 +224,23 @@ const revenueChart = {
```tsx
const growthChart = {
- type: 'chart-line',
+ type: 'chart',
+ chartType: 'line',
data: [
{ month: 'Jan', users: 1200, active: 980 },
{ month: 'Feb', users: 1450, active: 1150 },
{ month: 'Mar', users: 1680, active: 1380 },
{ month: 'Apr', users: 1920, active: 1620 }
],
- dataKey: 'users',
xAxisKey: 'month',
- height: 350
+ series: [
+ { dataKey: 'users' },
+ { dataKey: 'active' }
+ ],
+ config: {
+ users: { label: 'Total Users', color: '#8884d8' },
+ active: { label: 'Active Users', color: '#82ca9d' }
+ }
}
```
@@ -257,9 +271,14 @@ const schema = {
```tsx
const schema = {
- type: 'chart-line',
+ type: 'chart',
+ chartType: 'line',
data: metricsData,
- height: 500,
+ xAxisKey: 'date',
+ series: [{ dataKey: 'value' }],
+ config: {
+ value: { label: 'Metrics', color: '#8884d8' }
+ },
className: 'h-64 sm:h-96 lg:h-[500px]'
}
```
From 25ca86ca7a0009a726ece6facdfa2382153e97d3 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Fri, 23 Jan 2026 12:26:50 +0000
Subject: [PATCH 3/4] Clarify documentation for two different chart APIs
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
docs/plugins/plugin-charts.mdx | 50 +++++++++++++++++++++++++++++-----
1 file changed, 43 insertions(+), 7 deletions(-)
diff --git a/docs/plugins/plugin-charts.mdx b/docs/plugins/plugin-charts.mdx
index 42afcbfe4..9d15fa3bb 100644
--- a/docs/plugins/plugin-charts.mdx
+++ b/docs/plugins/plugin-charts.mdx
@@ -30,8 +30,8 @@ npm install @object-ui/plugin-charts
height: 300,
color: "#8884d8"
}}
- title="Bar Chart"
- description="Display data as vertical bars"
+ title="Simple Bar Chart"
+ description="Simple bar chart with basic API - type: 'bar-chart'"
/>
Date: Fri, 23 Jan 2026 12:28:07 +0000
Subject: [PATCH 4/4] Fix heading level for Area Chart section
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
docs/plugins/plugin-charts.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/plugins/plugin-charts.mdx b/docs/plugins/plugin-charts.mdx
index 9d15fa3bb..c24478420 100644
--- a/docs/plugins/plugin-charts.mdx
+++ b/docs/plugins/plugin-charts.mdx
@@ -214,7 +214,7 @@ const schema = {
}
```
-#### Area Chart
+###### Area Chart
```tsx
const schema = {