@@ -68,7 +68,7 @@ function cloneChartConfig(config) {
6868 return clone ;
6969}
7070
71- const FILL_ALPHA = 0.55 ;
71+ const FILL_ALPHA = 0.3 ;
7272
7373function withAlpha ( color , alpha ) {
7474 const hex = color . replace ( "#" , "" ) ;
@@ -87,7 +87,6 @@ function updateChartColors(c, colorVariables) {
8787 const ink = cssvar ( "--chart-color" ) ;
8888 const grid = cssvar ( "--chart-grid-color" ) ;
8989
90- // chart.options is a proxy whose setters recurse when enumerated
9190 const scales = c . config . options ?. scales || { } ;
9291 Object . keys ( scales ) . forEach ( ( id ) => {
9392 const scale = scales [ id ] ;
@@ -459,7 +458,6 @@ const clock = (d) => d.toLocaleTimeString([], { hour: "2-digit", minute: "2-digi
459458const day = ( d ) => d . toLocaleDateString ( [ ] , { day : "numeric" , month : "short" } ) ;
460459
461460function formatTimeTick ( value , axis , prev ) {
462- // fractional steps fall between buckets
463461 if ( Math . abs ( value - Math . round ( value ) ) > 1e-9 ) return "" ;
464462
465463 const d = bucketDate ( value , axis ) ;
@@ -487,7 +485,6 @@ function formatTimeTooltip(value, axis) {
487485 return day ( d ) + " " + clock ( d ) ;
488486}
489487
490- // cloneChartConfig's JSON round trip drops functions, so these attach to the live chart
491488function attachTimeAxis ( c ) {
492489 const opts = c . config . options ;
493490 const x = opts ?. scales ?. x ;
0 commit comments