# Historical-ranking-data-visualization-based-on-d3.js
**Repository Path**: dirtycomputer/Historical-ranking-data-visualization-based-on-d3.js
## Basic Information
- **Project Name**: Historical-ranking-data-visualization-based-on-d3.js
- **Description**: 这是一个数据可视化项目,能够将历史数据排名转化为动态柱状图图表
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-04-24
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Dynamic Ranking Visualization
Visualize historical data with dynamic bar chart
Chinese
This is a data visualization project based on D3.js, which easily converts historical ranking data to dynamic bar chart.
This project aims to help video creators without programming experience produce ranking animation videos.
----
# How to Use
Open `src/bargraph.html` in any browser and click `choose file` button. Choose your `.csv` formated data source then you can see the visualzied result.
# Data Format
You can load data source in `.csv` format. See format requirement below:
| name | type | value | date |
| :---: | :---: | :----: | :---: |
| Name1 | Type1 | Value1 | Date1 |
| Name2 | Type2 | Value2 | Date2 |
**Names** will be displayed as categorical labels on Y-axis. **Name-Type** together will be displayed as annotations on bars.
**Types** are associated with bar colors. Please use type names with no whitespaces or any special characters other than English letters and Chinese characters.
**Values** are associated with bar length. They have to be interger or float values.
**Dates** should be in `YYYY-MM-DD` format.
# Configurations
You can customize this project by editing parameters in [`src/config.js`](/src/config.js) with any text editor. Please check [`src/config.js`](/dist/config.js) comments for parameter details.