@ graphysdk/ react- relander (英语)
反射绘图图的组件。 "Powered by Graphy"标记默认关闭.
大多数应用程序应该从 @graphysdk/react 相反——相同的组件,加上图建器,并加了标记.
学习更多 图表.dev。 。 。 .
安装
npm install @graphysdk/react-renderer @graphysdk/viz-engine
需要反应19。 没有样式表可以导入 .
使用量
import { GraphProvider, GraphRenderer } from '@graphysdk/react-renderer';
import { createSpec, pipe, geom, scale } from '@graphysdk/viz-engine';
const spec = pipe(createSpec({ x: 'month', y: 'revenue' }), geom.bar(), scale.x(), scale.y());
export function Chart({ data }) {
return (
<GraphProvider data={data} spec={spec}>
<GraphRenderer />
</GraphProvider>
);
}
文档
可编辑图表
导入 EditableGraphRenderer 从 @graphysdk/react-renderer/editable。 。 。 .
@graphysdk/react-renderer——只读表面:GraphProvider, (中文(简体) ),GraphRenderer、钩子、槽、主题和类型@graphysdk/react-renderer/editable- 编辑表面:EditableGraphRenderer, (中文(简体) ),EditorPanel和相关控制
代理技能
安装 Graphy 代理技能 github.com/graphysdk/ 技能 (英语) 设置来自 Cursor, Claude Code 和其他编码代理的 SDK 和作者图表.
许可证
此套件可在PolyForm非商业,小企业,或32天自由审判下提供. 自由审判(Free Trial)只是局部或内部的评价——它并不覆盖一个公开的页面. 见 在审判中你能做的。 。 。 .
商业许可证, 跟我们谈谈。 。 。 .
支助
问题和社区帮助: 解析器。 。 。 .