작업 시간 분석 UI 디자인 적용
This commit is contained in:
@@ -55,13 +55,10 @@ public class UI_BarChart : UIBase
|
||||
public void OnClickItem(BarEventArgs arg)
|
||||
{
|
||||
int.TryParse(arg.Group, out var index);
|
||||
barChartData.SetData(barChartDatas[index]);
|
||||
|
||||
barChart.GetBarTrackPosition("CycleTime", index.ToString(), out var topPosition);
|
||||
barChartData.SetData(barChartDatas[index], topPosition);
|
||||
|
||||
var bottomPosition = new Vector3(topPosition.x, rectTransform.rect.yMax - (rectTransform.transform.localPosition.y / 2), 0);
|
||||
var height = Mathf.Abs(topPosition.y - bottomPosition.y);
|
||||
|
||||
stackBar.SetStackBar(barChartDatas[index], topPosition, height);
|
||||
var bottomPosition = new Vector3(topPosition.x, rectTransform.rect.height / 2, 0);
|
||||
stackBar.SetStackBar(barChartDatas[index], topPosition, bottomPosition);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user