diff --git a/labeling/labeling.py b/labeling/labeling.py index 5db5877..f18a899 100644 --- a/labeling/labeling.py +++ b/labeling/labeling.py @@ -92,7 +92,8 @@ function dessineBarre() { }); const n = Math.max(1, voies.length), f = fig._fullLayout; return Plotly.react(barre, [{type: 'bar', orientation: 'h', y: voie, base: tries.map(l => lisible(l.debut)), - x: tries.map(l => Date.parse(l.fin) - Date.parse(l.debut)), width: 0.85, marker: {color: GRIS}, text: tries.map(l => l.description), + x: tries.map(l => Date.parse(l.fin) - Date.parse(l.debut)), width: 0.85, marker: {color: GRIS, line: {color: 'white', width: 2}}, // le liseré sépare deux étiquettes bout à bout + text: tries.map(l => l.description), textposition: 'inside', insidetextanchor: 'start', textangle: 0, unselected: {marker: {opacity: 1}}, // sinon une sélection les pâlit hoverinfo: 'text', hovertext: tries.map(l => `${lisible(l.debut)} → ${lisible(l.fin)} UTC
${l.description.replace(/\\n/g, '
')}
click: read, edit`)}], {height: 40 + VOIE * n, dragmode: 'select', selectdirection: 'h', hovermode: 'closest', plot_bgcolor: '#f2f2ef', showlegend: false,