• Stars
    star
    522
  • Rank 84,811 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ“Š Seamless bar chart race component for React.

chart-race-react

πŸ“Š Seamless & fully customizable bar chart race component for React.

https://www.npmjs.com/package/chart-race-react .


Colors

Style

Speed

Quick Start

npm install --save chart-race-react
import BarChart from 'chart-race-react';

You should wrap BarChart inside a container div that acts as a sandbox. The width of the BarChart fits the container width.

<div style={{width: "500px"}}>
    <BarChart />
</div>

Usage

Passing props.

You will need to pass your own props to the BarChart component. Refer to examples for more information.

Prop Type Explanation
start Boolean Defines whether the bar chart race has started. Default is true and the chart race will start as the component mounts.
data Object An object with keys being the data field name and value being Array data. data[key].length should be equal to len.
timeline Array An array defining the time indices. Length should be equal to len.
labels Object An object with keys being the data field name and value being a HTML element that acts as the data field's label.
colors Object An object with keys being the data field name and value being the color the data bar.
timeout Integer Transition time between adjacent time indices (in ms).
delay Integer Waiting time between adjacent time indices (in ms).
timelineStyle Object CSS style objects for time indices.
textBoxStyle Object CSS style objects for data text.
barStyle Object CSS style object defining the style of all the bars. It is advised to use height to define the thickness and marginTop to define the distance between adjacent bars.
width Array Defines the width allocation for label, bar, and text box. Values in width should add up to 100.
maxItems Integer Defines the maximum number of items to show in the chart. Should be less or equal to Object.keys(data).length.

More Demo

Easibly define custom data, text styles, colors, duration, and layout.

Add images to data labels.


Plugin your own data.

More Repositories

1

bullet

πŸš… Interactive prompts made simple. Build a prompt like stacking blocks.
Python
3,539
star
2

Anime-Face-Dataset

πŸ–Ό A collection of high-quality anime faces.
Python
407
star
3

vocabs

πŸ“š A lightweight online dictionary integration to the command line. No browsers. No paperbacks.
Python
240
star
4

awesome-image-rectification

πŸ“ A curated list of image rectification papers.
166
star
5

awesome-holography

A curated list of resources on holographic displays.
108
star
6

Anime-Generation

🎨 Anime generation with GANs.
Python
67
star
7

fast-poisson-image-editing

Fast, scalable, and extensive implementations of Poisson image editing algorithms.
Python
39
star
8

awesome-image-enhancement

33
star
9

Fun-with-MNIST

Playing with MNIST. Machine Learning. Generative Models.
Python
23
star
10

griddy

πŸ“πŸ“ Generate CSS grid layouts FAST.
Python
23
star
11

BetterInput

πŸ’» Terminal-like Python input( ) function.
Python
19
star
12

go-render

🎦 3D renderer in Go.
Go
18
star
13

dsnp_test_cases

πŸ’» Test cases for NTUEE Course "Data Structures and Programming".
Python
14
star
14

poissonpy

πŸ“ˆ poissonpy is a Python Poisson Equation library for scientific computing, image and video processing, and computer graphics.
Python
11
star
15

photometric-stereo

Photometric stereo algorithms in numpy and pytorch.
MATLAB
10
star
16

awesome-light-field-processing

A curated list of light field synthesis and light field reconstruction papers.
5
star
17

bibdl

πŸ“ƒ Automatically generate BibTeX style references for ml/dl papers.
Python
4
star
18

cplusplus-algorithms

Some classic algorithms implemented in C++.
4
star
19

webgl-3d-viewer

3D model viewer in WebGL and pure Javascript.
HTML
4
star
20

ethereal

JavaScript
3
star
21

shell-scripting-cheatsheet

3
star
22

Conditional-GAN-Anime-Generation

Conditional anime generation using conditional GAN.
Python
3
star
23

image-morphing

Python Implementation of Feature-Based Image Metamorphosis.
Python
2
star
24

bchao1

2
star
25

extract-readme

πŸ“‘ extract-readme extracts the README markdown file from a GitHub repository and generates a corresponding formatted HTML that can be rendered on any website.
Python
2
star
26

image-editor

Project for Google SPS'20
Python
2
star
27

python-cheatsheet

Just my python notes.
Python
2
star
28

high-dynamic-range-imaging

πŸ“· High Dynamic Range Imaging with Debevec '97 Algorithm.
Python
2
star
29

homography

2D projection geometry with homography.
Python
2
star
30

quantization

Color quantization zoo.
Python
2
star
31

seam-carving

Minimalistic seam-carving.
Python
2
star
32

Breakout-Deep-Q-Learning

πŸ•ΉοΈ Train an AI actor to play the classic Atari game 'Breakout' using Deep Q Learning.
Python
2
star
33

Computational-Photography-CMU

HW source codes for Computational Photography @ CMU
Python
2
star
34

game-of-life

Game of life.
Python
1
star
35

awesome-deep-optics

1
star
36

filters

Exploring image filters.
Python
1
star
37

image-stitching

Image Stitching.
Python
1
star
38

lf-flow

Light field from stereo pairs.
Python
1
star
39

108-2-NMLAB-Final

JavaScript
1
star
40

computational-imaging-research-groups

A list of computational imaging research groups.
1
star
41

shapex

πŸͺ shapex is a 3D shape descriptor library.
Python
1
star
42

git-ctf

FLAG{ChEck_Gi7_10G!!}
1
star
43

lyricsfinder

🎡 Tkinter-based desktop app for finding lyrics online.
Python
1
star
44

Pong-Policy-Gradient

πŸ“ Train an AI player to play Pong using Policy Gradient.
Python
1
star