Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

calculate percentage in a bar chart  RSS feed

 
siva prakashmahendran
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to calculate percentage relative to a particular bar within the series in bar chart
Could any one help me out
 
Devaka Cooray
Marshal
Posts: 5323
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
siva prakashmahendran wrote:I need to calculate percentage relative to a particular bar within the series in bar chart
Could any one help me out

Please TellTheDetails. What framework/api do you use to display the bar chart?
In general, if you know the value and the maxValue of a bar, the percentage can be easily calculated by using an expression like...
(value*100)/maxValue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!