@graphysdk/viz-engine (英语)
Graphy图表引擎. 构建一个谱并编译——没有DOM,没有反应.
反应应用程序应该从 @graphysdk/react。 。 。 .
学习更多 图表.dev。 。 。 .
安装
npm install @graphysdk/viz-engine
使用量
import { createSpec, pipe, geom, scale, createCompiler } from '@graphysdk/viz-engine';
const spec = pipe(createSpec({ x: 'month', y: 'revenue' }), geom.bar(), scale.x(), scale.y());
const { scene } = createCompiler().compile({ spec, data });
在节点中,倾向于ES模块导入. CommunityJS要求节点20.19+或22.12+.
文档
用于反应画, 使用 @graphysdk/react (建议)或 @graphysdk/react-renderer。 。 。 .
代理技能
安装 Graphy 代理技能 github.com/graphysdk/ 技能 (英语) 设置来自 Cursor, Claude Code 和其他编码代理的 SDK 和作者图表.
许可证
此套件可在PolyForm非商业,小企业,或32天自由审判下提供. 自由审判(Free Trial)只是局部或内部的评价——它并不覆盖一个公开的页面. 见 在审判中你能做的。 。 。 .
商业许可证, 跟我们谈谈。 。 。 .
支助
问题和社区帮助: 解析器。 。 。 .