Member-only story
Stackoverflow is a question-answer site for computer programmers. It is the largest, most trusted online community for developers to learn, share their programming knowledge and build their careers.
I have been using stackoverflow for almost four years, since I have been programming in Python. I normally just look at the questions that people post that are similar to my question, and try to work my code around the answers that other contributors post.
I have asked a few questions in the stackoverflow site, but did not really get the response that I was looking for. A few times when I asked a question, contributors were quite rude and would even refuse to answer my question. Nevertheless I persevered and continued to use stackoverflow whenever I could.
It just so happens that I have been working on a horizontal bar chart and I wanted to put percentages on the edge of the bar. There is a lot of code to put percentages or counts on column charts, but not so much on horizontal bars. I had experimented with code snippets that I had bound on the internet and finally devised a code snippet that would do what I wanted it to do.
I recalled seeing that someone had posted a similar question that I had in mind, but the answers provided on that question did not really meet my needs. I decided to post my snippet of code as a potential answer because I wanted to contribute some material rather than just asking questions on the platform.