@@ -345,18 +345,26 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
345345 { /* View mode toggle */ }
346346 < div className = "flex gap-1" >
347347 < Button
348- variant = { viewMode === 'timeline' ? 'default' : ' outline' }
348+ variant = " outline"
349349 size = "sm"
350350 onClick = { ( ) => setViewMode ( 'timeline' ) }
351- className = "h-7 px-3 text-xs"
351+ className = { `h-7 px-3 text-xs transition-colors ${
352+ viewMode === 'timeline'
353+ ? 'bg-blue-50 border-blue-300 text-blue-700 hover:bg-blue-100'
354+ : 'bg-white hover:bg-gray-50'
355+ } `}
352356 >
353357 Timeline
354358 </ Button >
355359 < Button
356- variant = { viewMode === 'pareto' ? 'default' : ' outline' }
360+ variant = " outline"
357361 size = "sm"
358362 onClick = { ( ) => setViewMode ( 'pareto' ) }
359- className = "h-7 px-3 text-xs"
363+ className = { `h-7 px-3 text-xs transition-colors ${
364+ viewMode === 'pareto'
365+ ? 'bg-blue-50 border-blue-300 text-blue-700 hover:bg-blue-100'
366+ : 'bg-white hover:bg-gray-50'
367+ } `}
360368 >
361369 Pareto
362370 </ Button >
@@ -477,14 +485,14 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
477485 < CartesianGrid strokeDasharray = "3 3" />
478486 < XAxis
479487 dataKey = "index"
480- label = { { value : 'Index' , position : 'insideBottom' , offset : - 5 , style : { fontSize : 12 } } }
488+ label = { { value : 'Index' , position : 'insideBottom' , offset : - 5 , style : { fontSize : 10 } } }
481489 type = "number"
482490 domain = { [ 'dataMin' , 'dataMax' ] }
483- tick = { { fontSize : 11 } }
491+ tick = { { fontSize : 10 } }
484492 />
485493 < YAxis
486- label = { { value : 'Value' , angle : - 90 , position : 'insideLeft' , style : { fontSize : 12 } } }
487- tick = { { fontSize : 11 } }
494+ label = { { value : 'Value' , angle : - 90 , position : 'insideLeft' , style : { fontSize : 10 } } }
495+ tick = { { fontSize : 10 } }
488496 />
489497 < Tooltip
490498 cursor = { { strokeDasharray : '5 5' , stroke : '#94a3b8' , strokeWidth : 1 } }
@@ -510,10 +518,10 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
510518 lineHeight : '1.4' ,
511519 } }
512520 >
513- < div style = { { fontWeight : 600 , fontSize : '12px ' } } >
521+ < div style = { { fontWeight : 600 , fontSize : '10px ' } } >
514522 Run: { data . runId }
515523 </ div >
516- < div style = { { fontSize : '12px ' } } >
524+ < div style = { { fontSize : '10px ' } } >
517525 { selectedKey } : { typeof data . value === 'number' ? data . value . toFixed ( 4 ) : data . value }
518526 </ div >
519527 </ div >
@@ -599,7 +607,7 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
599607 xaxis : {
600608 title : {
601609 text : `${ paretoMetrics [ 0 ] . key } (${ paretoMetrics [ 0 ] . direction } )` ,
602- font : { size : 12 , color : '#374151' , family : 'system-ui' } ,
610+ font : { size : 10 , color : '#374151' , family : 'system-ui' } ,
603611 } ,
604612 gridcolor : '#e5e7eb' ,
605613 gridwidth : 1 ,
@@ -610,7 +618,7 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
610618 yaxis : {
611619 title : {
612620 text : `${ paretoMetrics [ 1 ] . key } (${ paretoMetrics [ 1 ] . direction } )` ,
613- font : { size : 12 , color : '#374151' , family : 'system-ui' } ,
621+ font : { size : 10 , color : '#374151' , family : 'system-ui' } ,
614622 } ,
615623 gridcolor : '#e5e7eb' ,
616624 gridwidth : 1 ,
@@ -621,7 +629,7 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
621629 zaxis : {
622630 title : {
623631 text : `${ paretoMetrics [ 2 ] . key } (${ paretoMetrics [ 2 ] . direction } )` ,
624- font : { size : 12 , color : '#374151' , family : 'system-ui' } ,
632+ font : { size : 10 , color : '#374151' , family : 'system-ui' } ,
625633 } ,
626634 gridcolor : '#e5e7eb' ,
627635 gridwidth : 1 ,
@@ -672,9 +680,9 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
672680 value : `${ paretoMetrics [ 0 ] . key } (${ paretoMetrics [ 0 ] . direction } )` ,
673681 position : 'insideBottom' ,
674682 offset : - 10 ,
675- style : { fontSize : 12 , fill : '#374151' }
683+ style : { fontSize : 10 , fill : '#374151' }
676684 } }
677- tick = { { fontSize : 11 , fill : '#6b7280' } }
685+ tick = { { fontSize : 10 , fill : '#6b7280' } }
678686 domain = { [ 'dataMin - 0.1 * abs(dataMin)' , 'dataMax + 0.1 * abs(dataMax)' ] }
679687 />
680688 < YAxis
@@ -685,9 +693,9 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
685693 value : `${ paretoMetrics [ 1 ] . key } (${ paretoMetrics [ 1 ] . direction } )` ,
686694 angle : - 90 ,
687695 position : 'insideLeft' ,
688- style : { fontSize : 12 , fill : '#374151' }
696+ style : { fontSize : 10 , fill : '#374151' }
689697 } }
690- tick = { { fontSize : 11 , fill : '#6b7280' } }
698+ tick = { { fontSize : 10 , fill : '#6b7280' } }
691699 domain = { [ 'dataMin - 0.1 * abs(dataMin)' , 'dataMax + 0.1 * abs(dataMax)' ] }
692700 />
693701 < Tooltip
@@ -709,7 +717,7 @@ export function MetricsChart({ metrics, experimentId, title = 'Metrics', descrip
709717 borderRadius : '6px' ,
710718 padding : '8px 12px' ,
711719 boxShadow : '0 2px 4px rgba(0,0,0,0.1)' ,
712- fontSize : '12px ' ,
720+ fontSize : '10px ' ,
713721 } }
714722 >
715723 < div style = { { fontWeight : 600 , marginBottom : '4px' } } >
0 commit comments