LucasPilla / Sorting-Algorithms-Visualizer

Program made with Python and Pygame module for visualizing sorting algorithms
MIT License
426 stars 164 forks source link

Suggestion : Displaying the values of the bars for better visualization and understanding #168

Closed tkgowtham closed 1 month ago

tkgowtham commented 1 year ago
LucasPilla commented 1 year ago

@tkgowtham I like the idea, but I don't think it will look good with a lot of bars. Maybe we should add this feature if number of bars is less then X, what do you think?

tkgowtham commented 1 year ago

Yes, I agree with your point. We can assume X to be less than or equal to 50. So, can I work on it ? If so, please assign me to this issue.

dan424gg commented 1 year ago

I would like to be assigned to this issue.

@LucasPilla

nanashi-03 commented 1 year ago

How about a grid instead? It would be pretty easy to guess the numbers and it works for any amount of bars.

dhruva2000 commented 11 months ago

Hey I can work on this I have some ideas for how to implement this

LucasPilla commented 11 months ago

Sure @dhruva2000, this issue is quite simple, we just need to find some way to show the bar values. Maybe just showing the values when the number of bars is small, otherwise it might get too cluttered.

dhruva2000 commented 11 months ago

Got it thank you!

dhruva2000 commented 11 months ago

Just attached my pull request onto this @LucasPilla! . I incorporated some of the changes from the previously opened pull request and added values to the bars again so I'm hoping this successfully captures the suggestion by @tkgowtham. I also added some padding and shifted some of the components to create more visual clarity in the app