contribution-graph

Contribution Graph

Contribution Graph: A dynamic Svelte 3 project to visualize activity levels over time, perfect for tracking user engagement, project progress, and time-based metrics

Contribution Graph šŸ“Š

A simple Svelte 3 project to display a contribution graph with customizable squares representing activity levels over time.

Overview šŸ“

This project creates a contribution graph that visually represents activity levels for each day of the year. It uses Svelte 3 and Vite for fast and efficient development. The graph is displayed with different colored squares, each representing the level of activity for a particular day. Upon reloading the page, random contributions will be loaded to demonstrate the dynamic nature of the graph.

Installation šŸš€

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Install the dependencies using npm:
    npm install
    
  4. Start the development server:
    npm run dev
    
  5. Open your web browser and go to http://localhost:5000 to see the contribution graph.

Usage šŸŽØ

The contribution graph can be customized by passing the contributions prop to the ContributionGraph component. The contributions prop should be an array of objects, where each object represents a day's data with the following format:

{
  date: 'YYYY-MM-DD', // The date of the activity (e.g., '2023-07-25')
  count: 2, // The activity level for the day (should be a non-negative integer)
}

Technologies Used šŸ› ļø

  • Svelte 3 - A modern JavaScript framework for building user interfaces.
  • Vite - A fast development build tool and server with hot module replacement (HMR) support.

License šŸ“œ

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements šŸ‘

Special thanks to the Svelte and Vite teams for their amazing tools.

Get Involved šŸ’¬

Feel free to contribute, open issues, or provide suggestions to enhance this project. Let's make it even better together! šŸŒŸ


šŸ”„ Happy coding! šŸ”„

Top categories

Loading Svelte Themes