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 (語言數: 2)
平台Linux, Mac, Windows
許可證Other
發布數254
最新版本名稱v37.0.2 (發布於 2024-04-04 18:18:13)
第一版名稱v0.0.2 (發布於 2015-11-12 22:36:43)
創建於2015-07-02 22:36:50
推送於2024-05-17 13:32:48
最后一次提交
星數10.8k
關注者數121
派生數522
提交數8.6k
已啟用問題?
問題數1847
打開的問題數97
拉請求數802
打開的拉請求數9
關閉的拉請求數96
已啟用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.

去到頂部