Skip to content

Commit c0a29e5

Browse files
authored
fix palette value (#153)
* fix: default palette * chore: 0.7.3
1 parent a885e3a commit c0a29e5

File tree

14 files changed

+14
-26
lines changed

14 files changed

+14
-26
lines changed

__tests__/charts/bar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"type": "string"
3838
},
3939
"palette": {
40-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
40+
"description": "Color palette for the chart, it is a collection of colors.",
4141
"items": {
4242
"type": "string"
4343
},

__tests__/charts/column.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"type": "string"
3838
},
3939
"palette": {
40-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
40+
"description": "Color palette for the chart, it is a collection of colors.",
4141
"items": {
4242
"type": "string"
4343
},

__tests__/charts/dual-axes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"type": "string"
2020
},
2121
"palette": {
22-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
22+
"description": "Color palette for the chart, it is a collection of colors.",
2323
"items": {
2424
"type": "string"
2525
},

__tests__/charts/line.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"type": "string"
3232
},
3333
"palette": {
34-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
34+
"description": "Color palette for the chart, it is a collection of colors.",
3535
"items": {
3636
"type": "string"
3737
},

__tests__/charts/pie.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"type": "string"
3232
},
3333
"palette": {
34-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
34+
"description": "Color palette for the chart, it is a collection of colors.",
3535
"items": {
3636
"type": "string"
3737
},

__tests__/charts/radar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"type": "string"
3434
},
3535
"palette": {
36-
"description": "Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
36+
"description": "Color palette for the chart, it is a collection of colors.",
3737
"items": {
3838
"type": "string"
3939
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@antv/mcp-server-chart",
33
"description": "A Model Context Protocol server for generating charts using AntV. This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.",
4-
"version": "0.7.2",
4+
"version": "0.7.3",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",
77
"exports": {

src/charts/bar.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ const schema = {
4848
palette: z
4949
.array(z.string())
5050
.optional()
51-
.describe(
52-
"Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
53-
),
51+
.describe("Color palette for the chart, it is a collection of colors."),
5452
})
5553
.optional()
5654
.describe("Custom style configuration for the chart."),

src/charts/column.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ const schema = {
4848
palette: z
4949
.array(z.string())
5050
.optional()
51-
.describe(
52-
"Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
53-
),
51+
.describe("Color palette for the chart, it is a collection of colors."),
5452
})
5553
.optional()
5654
.describe("Custom style configuration for the chart."),

src/charts/dual-axes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ const schema = {
5151
palette: z
5252
.array(z.string())
5353
.optional()
54-
.describe(
55-
"Color palette for the chart, such as, ['#1890FF', '#2FC25B'].",
56-
),
54+
.describe("Color palette for the chart, it is a collection of colors."),
5755
})
5856
.optional()
5957
.describe("Custom style configuration for the chart."),

0 commit comments

Comments
 (0)