Skip to content

Commit 3317809

Browse files
authored
feat: add align option to radar chart (#301)
1 parent 9fd0bb4 commit 3317809

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

__tests__/charts/radar.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
},
5353
"type": "object"
5454
},
55+
"align": {
56+
"default": false,
57+
"description": "Whether to align the scale for all dimensions. If true, all dimensions share a scale (aligned to the max value), making absolute values comparable. If false, each dimension scales independently to highlight relative differences.",
58+
"type": "boolean"
59+
},
5560
"theme": {
5661
"default": "default",
5762
"description": "Set the theme for the chart, optional, default is 'default'.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.",
44
"mcpName": "io.github.antvis/mcp-server-chart",
5-
"version": "0.9.10",
5+
"version": "0.9.11",
66
"main": "build/index.js",
77
"types": "build/index.d.ts",
88
"exports": {

src/charts/radar.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ const schema = {
3939
.describe(
4040
"Style configuration for the chart with a JSON object, optional.",
4141
),
42+
align: z
43+
.boolean()
44+
.optional()
45+
.default(false)
46+
.describe(
47+
"Whether to align the scale for all dimensions. If true, all dimensions share a scale (aligned to the max value), making absolute values comparable. If false, each dimension scales independently to highlight relative differences.",
48+
),
4249
theme: ThemeSchema,
4350
width: WidthSchema,
4451
height: HeightSchema,

0 commit comments

Comments
 (0)