Victory

一个用于构建交互式数据可视化的可组合 React 组件集合。「A collection of composable React components for building interactive data visualizations」

Github星跟踪图

Victory

一个由可合成的 React 组件组成的生态系统,用于构建交互式数据可视化。

内容

开始使用

将 Victory 添加到你的项目中:

# npm
$ npm i --save victory
# or yarn
$ yarn add victory

添加你的第一个 Victory 组件:

import React from "react";
import { render } from "react-dom";
import { VictoryPie } from "victory";
const PieChart = () => {
  return <VictoryPie />;
};
render(<PieChart />, document.getElementById("app"));

VictoryPie 组件将被渲染,你应该看到:

pie

需求

使用 Victory 的项目也应该依赖于 React。Victory 适用于 React 版本 15 及以上。截至 victory@34.0.0,Victory 需要 React 版本 16.3.0 或以上。

Victory Native

想在 React Native 上使用 Victory?看看 victory-native;Victory Native 与 Victory 共享大部分代码,并且拥有几乎相同的API。

贡献

维护状态

积极。Formidable 正在积极地开发这个项目,我们希望在可预见的未来继续工作。欢迎提出错误报告、功能请求和拉取请求。

主要指标

概览
名称与所有者FormidableLabs/victory
主编程语言TypeScript
编程语言JavaScript (语言数: 4)
平台Linux, Mac, Windows
许可证Other
所有者活动
创建于2015-07-02 22:36:50
推送于2025-01-31 22:06:43
最后一次提交
发布数265
最新版本名称v37.3.6 (发布于 2025-01-14 17:21:17)
第一版名称v0.0.2 (发布于 2015-11-12 22:36:43)
用户参与
星数11.1k
关注者数119
派生数524
提交数8.6k
已启用问题?
问题数1899
打开的问题数89
拉请求数907
打开的拉请求数4
关闭的拉请求数117
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

Travis Status
Maintenance Status

Victory

an ecosystem of composable React components for building interactive data visualizations.

Contents

Getting started

  1. Add Victory to your project:
$ npm install victory --save
  1. Add your first Victory component:
import React, { Component } from "react";
import { render } from "react-dom";
import { VictoryPie } from "victory";

class PieChart extends Component {
  render() {
    return <VictoryPie />;
  }
}

render(<PieChart />, document.getElementById("app"));
  1. VictoryPie component will be rendered, and you should see:

Requirements

Projects using Victory should also depend on React. Victory works with React version 15 and above.

Victory Native

Want to use Victory with React Native? Check out victory-native
Victory Native shares most of its code with Victory, and has a nearly identical api!

Contributing

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.