Commit a511229e authored by Jérome Perrin's avatar Jérome Perrin

Bottleneck Analysis: rename Max Utilisation to Target Utilisation and reorder series

parent 7d80bea5
......@@ -45,9 +45,9 @@ class DemandPlanningLine(plugin.OutputPreparationPlugin, TimeSupportMixin):
# create the 3 lines
for (utilizationType, utilizationLabel) in [
( 'averageUtilization', 'Average Utilization' ),
( 'minUtilization', 'Min Utilization' ),
( 'maxUtilization', 'Max Utilization' ) ]:
( 'averageUtilization', 'Average Utilization' ),
( 'maxUtilization', 'Target Utilization' ) ]:
utilizationList=[]
for record_id, record in bottleNeckUtilization.iteritems():
year=str(record_id)[0:4]
......@@ -110,9 +110,9 @@ class BottleNeckByWeek(plugin.OutputPreparationPlugin, TimeSupportMixin):
# create the 3 bars
for (utilizationType, utilizationLabel) in [
( 'averageUtilization', 'Average Utilization' ),
( 'minUtilization', 'Min Utilization' ),
( 'maxUtilization', 'Max Utilization' ) ]:
( 'averageUtilization', 'Average Utilization' ),
( 'maxUtilization', 'Target Utilization' ) ]:
series.append({
"label": utilizationLabel,
"data": list(enumerate([x[utilizationType] for x in bottleneckData.values()])),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment