百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

nivo-api

> 编程语言
开源

用于 nivo 数据可视化 React/d3 组件的渲染 API

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

用于 nivo 数据可视化 React/d3 组件的渲染 API

nivo-api

Rendering API for nivo dataviz React/d3 components.

A demo is available on heroku, but may not respond depending on usage.

How it works

The API expose some of the nivo charts by using React server side environment.

First you will have to make a post request on the desired endpoint, for example:

bash
curl -X POST \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  -d '{ "width": 500, "height": 500, "data": [[223, 299, 345, 184], [123, 248, 65, 123], [412, 76, 187, 312], [97, 37, 502, 176]]}' \
  'http://localhost:3030/charts/chord'

{
  "id": "73633fea-160e-4118-a534-377c3ed85254",
  "url": "http://localhost:3000/r/73633fea-160e-4118-a534-377c3ed85254"
}

The response contains a link to the chart

GET http://localhost:3000/r/73633fea-160e-4118-a534-377c3ed85254

Charts endpoints

POST /charts/bar
POST /charts/bubble
POST /charts/calendar
POST /charts/chord
POST /charts/line
POST /charts/pie
POST /charts/radar
POST /charts/sankey
POST /charts/sunburst
POST /charts/treemap

Charts samples

  • https://nivo-api.herokuapp.com/samples/line.svg
  • https://nivo-api.herokuapp.com/samples/bar.svg
  • https://nivo-api.herokuapp.com/samples/bubble.svg
  • https://nivo-api.herokuapp.com/samples/chord.svg
  • https://nivo-api.herokuapp.com/samples/pie.svg
  • https://nivo-api.herokuapp.com/samples/radar.svg
  • https://nivo-api.herokuapp.com/samples/sankey.svg
  • https://nivo-api.herokuapp.com/samples/sunburst.svg
  • https://nivo-api.herokuapp.com/samples/treemap.svg

Repositories

  • nivo - the nivo library
  • nivo-api - the nivo http api
  • nivo-api-docker - a Docker image for the nivo http api
  • nivo-generators - the data generators used for nivo-website and http API samples
  • nivo-website - the source for the nivo website

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言