Skip to content

[FEATURE] : Show Random Numbers in Sorting VisualizationΒ #656

@Shreshta8

Description

@Shreshta8

βœ… Expected Behavior

Each bar in the sorting visualization should display a number (its value) so that users can clearly understand what is being sorted.

❌ Actual Behavior

Currently, the bars are shown without any numbers, which makes it harder to follow the actual sorting process.

πŸ§ͺ Steps to Reproduce

  1. Open the app.
  2. Start a sorting visualization.
  3. Notice that the bars do not display numbers.

🎯 Proposed Solution

  • Generate and assign random numbers to each bar.
  • Display these numbers either:
    • On top of the bar (as a label), or
    • Inside the bar with good contrast.
  • Update the numbers dynamically as the bars move during sorting.

πŸ’» Environment

  • OS: Windows 11
  • Browser: Chrome 118
  • Device: Laptop

πŸ™‹β€β™€οΈ Want to work on this issue?

  • I want to fix this issue under GSSoC’25

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions