Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a problem I need to solve. is as follows. imagine that I have a value of annual consumption for use in a company. this value is X then over time I have a few intakes that i keep the total of product value in DB. what I want is the sum of these totals and check with Annual Total I have. but I want to show this expenditure in a progressive bar to give the illustration of how will my consumption ... ie total consumption .. this will be my 100% and the remaining sum will show the percentage on the page until it reaches 100%, or that is, the overall value.

how can I do this?
Posted
Comments
[no name] 6-Jun-14 7:37am    
It's difficult to tell from your narrative, which one part are you having difficulty with?
fasher_the_one 6-Jun-14 8:23am    
Imagine I have a table that contains the values

a - 10
b - 25
c - 8
d - 30

to show the sum of these values ​​in a progressive bar, and set the maximum value to 100 = 100%. the sum of those values ​​equals 73, which is also 73% of the progressive bar.

this is my idea .. pass these values ​​picked up from my table and display.
[no name] 6-Jun-14 9:05am    
Okay.... and? Which is the ONE part that seems to be giving you difficulty? Adding numbers? Getting the data out of the database? Putting a progress bar on your page (I have no idea what a progressive bar would be)? Setting the value of the progress bar? Where is the code that you have written that you have tried? What is the problem with the code you have tried?
fasher_the_one 9-Jun-14 9:20am    
i need the progressive bar to take data from datasource...

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900