@ansible/react-json-chart-builder

中文文档
3.0.0发布于 2025/02/13MITTypeScriptESM + CJS零依赖近 30 天下载 3470

A chart builder component in react, which uses JSON for schema.

原始使用文档
文档目录7 节
  1. Install the npm package
  2. Workflow
  3. Semantic release commit messages
  4. Devel setup
  5. Requirements
  6. Setup
  7. Testing

react-json-chart-builder

semantic-release

Live editor (docs and examples): https://brumik.github.io/react-json-chart-builder

Install the npm package

  • npm i --save @ansible/react-json-chart-builder

Workflow

Semantic release commit messages

Using semantic release: Note, you need the : in it to trigger the release.

  • No release: chore(demo): updated the demo application
  • Patch release: fix(pencil): stop graphite breaking when too much pressure applied
  • Feature release: feat(pencil): add 'graphiteWidth' option
  • Breaking release: BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reasons.

Devel setup

Requirements

  • node >= 15
  • npm >= 7
  • for nvm users you can just do nvm use after nvm install 15 if you had not done it before

Setup

  • npm ci - install the packages
  • npm start - start the local web server
  • go to localhost:8080

If you want to see the docs too in the browser, you have to generate them first:

  • npm run build:demo:docs

Testing

  • npm ci if not done before
  • npm test

版本与发布记录

@ansible/react-json-chart-builder 共发布 6 个版本,首次发布于 2023/08/29;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.0latest2025/02/131.7 年前
2.0.12023/10/243 年前
2.0.02023/09/213 年前
1.15.32023/09/203 年前
1.15.22023/09/073 年前
1.15.12023/08/293 年前

关于 @ansible/react-json-chart-builder 的常见问题

@ansible/react-json-chart-builder 是什么?

A chart builder component in react, which uses JSON for schema.

如何安装 @ansible/react-json-chart-builder?

在项目目录运行 npm install @ansible/react-json-chart-builder,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.0.0)、victory(^37.3.6)、react-dom(^18.0.0)、@patternfly/react-core(^6.2.0-prerelease.15)、@patternfly/react-charts(^8.2.0-prerelease.12)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@ansible/react-json-chart-builder 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ansible/react-json-chart-builder 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@ansible/react-json-chart-builder 可以商用吗?

@ansible/react-json-chart-builder 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ansible/react-json-chart-builder 的下载量有多少?

根据 npm 官方下载统计,@ansible/react-json-chart-builder 在 2026/10/06 – 2026/11/04 这 30 天内被下载 3,470 次,日均约 116 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ansible/react-json-chart-builder 还在维护吗?

最新版本 3.0.0 发布于 2025/02/13(1.7 年前);至今共发布 6 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/08/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。