Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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