A
A
Arekus2015-07-10 21:27:15
infographics
Arekus, 2015-07-10 21:27:15

How to correctly generate a progress graph (algorithm)?

There is a system consisting of an arbitrary number of objects. Every day, during the set period, the production value is taken from each object (from 0 to 100%, the value only grows, the growth rate is arbitrary, when 100% is reached, the value stops being removed - the object is depleted). During the period, objects can be added, By the end of the period - all objects are worked out (this may happen before the end of the period).
It is required, on the basis of the obtained data on production, to generate a graph of the growth of the total output (in percent) during the period (i.e. the graph should only grow or have flat sections - if there was no production on that day).
Initial data of the form {"specific object": {"day of the period": "percentage of output for this day", }, }:
} Could you suggest an elegant way to obtain the required sequence or indicate the source where such a solution can be found? Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question