https://github.com/squidkid-deluxe/bitshares-ops-pie-chart
https://github.com/squidkid-deluxe/bitshares-ops-pie-chart
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/squidkid-deluxe/bitshares-ops-pie-chart
- Owner: squidKid-deluxe
- Created: 2025-02-21T22:02:10.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-02-21T22:21:20.000Z (3 months ago)
- Last Synced: 2025-02-21T23:22:02.490Z (3 months ago)
- Language: Python
- Size: 27.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BitShares Operations Pie Chart
This project generates a video visualization of BitShares operations over time, represented as pie charts. The video shows weekly and cumulative operation distributions, making it easy to visualize trends and changes.
Your browser does not support the video tag.## Table of Contents
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Project Structure](#project-structure)
- [Contributing](#contributing)## Prerequisites
Before you begin, ensure you have the following installed on your machine:
- Python 3.6 or higher
- pip (Python package installer)
- OpenCV
- NumPy## Installation
1. Clone the repository:
```bash
git clone https://github.com/squidKid-deluxe/bitshares-ops-pie-chart.git
cd bitshares-ops-pie-chart
```2. Install the required Python packages:
```bash
pip install numpy opencv-python
```3. if you wish, update the CSV file `weekly bitshares ops count.csv` in the project directory. See `Screencast - Kibana Lens.webm` for help on how to make one.
## Usage
To generate the video visualization, run the `main.py` script:
```bash
python main.py
```The script will read the CSV data, process it, and generate a video file named `out.mp4` showing the weekly and cumulative operation distributions.
## Project Structure
- `main.py`: The main script that processes the CSV data and generates the video.
- `ops.py`: Contains the list of BitShares operations.
- `pie_chart.py`: Contains functions to create pie charts and draw legends.## Contributing
Contributions are welcome! Please follow these steps to contribute:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Make your changes and commit them (`git commit -m 'Add new feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Open a pull request.