In this step, we will create the LineMicroChart
on the Production Process page.
With the LineMicroChart
, we want to visualize how the fill level is going to change during the course of the production process and we want to determine the threshold values that fall below a specified level.
You can view and download this step in the Demo Kit at Ice Cream Machine - Step 10 - Line Micro Chart.
mvc:View
...
<m:headerContainer>
<m:HeaderContainer
scrollStep="200"
scrollTime="500"
showDividers="true"
class="sapUiSmallMargin">
...
<m:FlexBox
width="12rem"
height="10rem"
alignItems="Center"
justifyContent="Center"
direction="Column">
<m:Title
text="{
parts: [
'i18n>processFlowChartsFillLevel',
'business>/fillLevel/measure'
],
formatter: '.formatMessage'
}"
class="sapUiSmallMargin" />
<m:FlexBox width="12rem" height="6rem" renderType="Bare">
<mc:LineMicroChart
size="Responsive"
threshold="{business>/fillLevel/threshold}"
leftTopLabel="{business>/fillLevel/valueBegin}"
leftBottomLabel="{business>/fillLevel/timeBegin}"
rightTopLabel="{business>/fillLevel/valueEnd}"
rightBottomLabel="{business>/fillLevel/timeEnd}"
color="{business>/fillLevel/color}"
showPoints="true"
points="{
path: 'business>/fillLevel/timeSeries',
templateShareable: true
}">
<mc:LineMicroChartPoint
x="{business>time}"
y="{business>level}" />
</mc:LineMicroChart>
</m:FlexBox>
</m:FlexBox>
</m:HeaderContainer>
</m:headerContainer>
...
</mvc:View>
You can find the information about the fill levels in the points aggregation of the LineMicroChart
control. Property x of the LineMicroChartPoint
contains the dimension of the chart and the time. Property y contains the fill level during the production process. The threshold property separates the records by their fill level into an upper and a lower layer. With the color property, we can apply a different color to each layer, depending on the specified threshold.