Fix Plotly namelength type cast

This commit is contained in:
jtricerolph 2026-07-09 23:50:07 +00:00
parent dbcc15661d
commit d97bfdab90

View file

@ -1250,7 +1250,7 @@ const RateHistoryModalComponent: React.FC<{ modal: RateHistoryModal; onClose: ()
layout={{ layout={{
margin: { t: 10, r: 10, b: 65, l: 55 }, margin: { t: 10, r: 10, b: 65, l: 55 },
height: 300, height: 300,
legend: { orientation: 'h', y: -0.3, namelength: -1 }, legend: { orientation: 'h', y: -0.3, namelength: -1 } as any,
xaxis: { title: { text: '' }, tickformat: '%d %b %H:%M', type: 'date' }, xaxis: { title: { text: '' }, tickformat: '%d %b %H:%M', type: 'date' },
yaxis: { title: { text: 'Rate (£)' }, tickprefix: '£', tickformat: ',.0f' }, yaxis: { title: { text: 'Rate (£)' }, tickprefix: '£', tickformat: ',.0f' },
plot_bgcolor: 'var(--body-bg)', plot_bgcolor: 'var(--body-bg)',