Skip to content

Commit

Permalink
fine-tuning ui
Browse files Browse the repository at this point in the history
  • Loading branch information
witcher-ke committed Aug 17, 2022
1 parent 9023d43 commit 20c6501
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions plugins/plugin-chart-distplot/src/CountBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
COLOR_SOP_WAITING_STEP_WAITING_HOVER,
COLOR_NVA_HOVER,
COLOR_NVA,
STACK_BAR_TITLE
} from './constants';
import { CountBarProps } from './types';

Expand Down Expand Up @@ -115,7 +114,7 @@ export default function CountBar(props: CountBarProps) {
font: { size: 16 },
};
layout['xaxis'] = {
title: STACK_BAR_TITLE,
title: 'Count',
titlefont: {
size: 16,
},
Expand Down
12 changes: 6 additions & 6 deletions plugins/plugin-chart-distplot/src/StackBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ export default function StackBarChart(props: StackBarProps) {
uph += data.xAxisCount[index];
average += parseInt(data.cycleTimeAverage[index]);
});
best = Math.min(...data.cycleTimeAverage);
worst = Math.max(...data.cycleTimeAverage);
let bottleneckIndex = data.cycleTimeAverage.indexOf(worst.toFixed(2));
let bestPerformanceIndex = data.cycleTimeAverage.indexOf(best.toFixed(2));
console.log(data, bottleneckIndex, x);
best = Math.min(...data.processAverage);
worst = Math.max(...data.processAverage);
let bottleneckIndex = data.processAverage.indexOf(worst.toFixed(2));
let bestPerformanceIndex = data.processAverage.indexOf(best.toFixed(2));
// console.log(data, bottleneckIndex, x);
bottleneck = x[bottleneckIndex];
bestPerformance = x[bestPerformanceIndex];

Expand Down Expand Up @@ -793,7 +793,7 @@ export default function StackBarChart(props: StackBarProps) {
paddingLeft: 300,
}}
>
Time (s)
Count
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-chart-distplot/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ export const DIST_X_END = 80;
export const DIST_X_SIZE = 5;
export const DIST_X_START = 0;
export const WAITING_TIME = 'waiting';
export const WAITING_TIME_WORKING = 'process';
export const WAITING_TIME_WORKING = 'cycle';
export const STACKBARCHART_TITLE = 'Working/Non-Working Ratio';

0 comments on commit 20c6501

Please sign in to comment.