Skip to content

Commit 39da102

Browse files
update
1 parent 5b91ff6 commit 39da102

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

assets/js/main.js

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,6 @@ function drawBarChartPerBar(cfg){
182182
ctx.lineWidth=2;
183183
ctx.stroke();
184184
}
185-
186-
// Draw data label on top of bar (only if animation is near complete)
187-
if(animProgress > 0.7 && bh > 20){
188-
const labelText = cfg.yFmt ? cfg.yFmt(v) : v.toFixed(0);
189-
ctx.fillStyle = "rgba(0,0,0,.85)";
190-
ctx.font = "700 11px ui-sans-serif, system-ui";
191-
ctx.textAlign = "center";
192-
ctx.textBaseline = "bottom";
193-
ctx.fillText(labelText, x + barW/2, y - 4);
194-
}
195185

196186
bars.push({x,y,w:barW,h:bh,label:labels[i],value:v});
197187

@@ -300,16 +290,6 @@ function drawGroupedBarChart(cfg){
300290
ctx.fillStyle=s.color;
301291
drawRoundedBar(ctx, x,y,barW*0.92,bh,6);
302292

303-
// Draw data label on grouped bars
304-
if(animProgress > 0.7 && bh > 15){
305-
const labelText = cfg.yFmt ? cfg.yFmt(v) : v.toFixed(0);
306-
ctx.fillStyle = "rgba(0,0,0,.75)";
307-
ctx.font = "600 9px ui-sans-serif, system-ui";
308-
ctx.textAlign = "center";
309-
ctx.textBaseline = "bottom";
310-
ctx.fillText(labelText, x + barW*0.92/2, y - 3);
311-
}
312-
313293
bars.push({x,y,w:barW*0.92,h:bh,label:labels[i],series:s.name,value:v});
314294
}
315295
const t = labels[i].length>18 ? labels[i].slice(0,16)+"…" : labels[i];
@@ -445,7 +425,7 @@ function setupCharts(){
445425
// title removed - now in HTML h4
446426
labels: C.offline_ratio.ratio.map(r=>`ratio ${r}`),
447427
series:[
448-
{name:"Sort Success Rate", values:C.offline_ratio.sort, color:"rgba(91,124,250,.72)"},
428+
{name:"Sort Accuracy", values:C.offline_ratio.sort, color:"rgba(91,124,250,.72)"},
449429
{name:"Pick&Place Success Rate", values:C.offline_ratio.pick, color:"rgba(168,85,247,.55)"},
450430
{name:"Complete Success Rate", values:C.offline_ratio.comp, color:"rgba(120,140,170,.55)"},
451431
],
@@ -459,7 +439,7 @@ function setupCharts(){
459439
// title removed - now in HTML h4
460440
labels: C.online_integration.labels,
461441
series:[
462-
{name:"Sort Success Rate", values:C.online_integration.sort, color:"rgba(91,124,250,.72)"},
442+
{name:"Sort Accuracy", values:C.online_integration.sort, color:"rgba(91,124,250,.72)"},
463443
{name:"Pick&Place Success Rate", values:C.online_integration.pick, color:"rgba(168,85,247,.55)"},
464444
{name:"Complete Success Rate", values:C.online_integration.comp, color:"rgba(120,140,170,.55)"},
465445
],

0 commit comments

Comments
 (0)