Skip to content

mohit-s96/sorting_visualization

Repository files navigation

Sorting Algorithm Visualization

A web app that visualizes every step in popular sorting algorithms. Has play/pause and speed control options as well. The rendering library can be decoupled to use with any standard sorting algorithms.

API Reference

Add render data

  addRenderData
Parameter Type Description
array array of numbers Required. To be called after each iteration of the outer loop with the latest array reference

Draw visualization in the browser

  drawToScreen
Parameter Type Description
options object Optional. Object describing the drawing instructions, custom CSS classes

Run Locally

Clone the project

  git clone https://github.com/msx47/sorting_visualization.git

Go to the project directory

  cd sorting_visualization

Install dependencies

  npm install

Start the server

  npm run dev

Contributing

Contributions are always welcome!!