This project generates a PDF containing a block reward emissions chart and tabulated data from an Excel file. The chart visualizes the total mined supply over time, with a clean and professional layout.
- Block Reward Chart: Displays the total mined supply progression.
- Excel Data Conversion: Reads and formats selected columns from an Excel sheet.
- Full-Width Chart: Chart spans the full width of the PDF.
- Custom PDF Design: Professional styling for a visually appealing PDF.
Before running the project, ensure you have the following installed:
- Node.js (v18.20.4 or later)
- npm (v7.0.0 or later)
-
Clone the repository:
git clone https://github.com/Vecno-Foundation/block_reward_emission.git
-
Navigate to the project directory:
cd block_reward_emission -
Install dependencies:
npm install
-
Place your Excel file (
VecnoEmission.xls) in the root directory.
-
Run the project:
node index.js
-
A PDF (
vecno_block_reward_emission.pdf) will be generated in the root directory with a block reward chart and data from the Excel file.
- xlsx: For reading and parsing Excel files.
- chartjs-node-canvas: For generating a Chart.js chart as an image.
- pdf-lib: For generating and manipulating the PDF document.