fix(astrolabe): update Plotly title attributes for v3 compatibility

Plotly.js v3 removed string format for title attributes (plotly/plotly.js#7212).
All titles must now use object format: { text: "..." }

Changes:
- Main layout title: string → { text: "..." }
- Scene axis titles (xaxis, yaxis, zaxis): string → { text: "..." }
- Colorbar title: string → { text: "..." }

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Chris Coutinho
2026-01-18 22:19:48 +01:00
parent 6832ae1198
commit e7a3dd698a
+5 -5
View File
@@ -749,7 +749,7 @@ export default {
colorscale: 'Viridis',
showscale: true,
colorbar: {
title: 'Relative Score',
title: { text: 'Relative Score' },
x: 1.02,
xanchor: 'left',
thickness: 20,
@@ -784,13 +784,13 @@ export default {
}
const layout = {
title: `Vector Space (PCA 3D) - ${results.length} results`,
title: { text: `Vector Space (PCA 3D) - ${results.length} results` },
width,
height,
scene: {
xaxis: { title: 'PC1' },
yaxis: { title: 'PC2' },
zaxis: { title: 'PC3' },
xaxis: { title: { text: 'PC1' } },
yaxis: { title: { text: 'PC2' } },
zaxis: { title: { text: 'PC3' } },
camera: {
eye: { x: 1.5, y: 1.5, z: 1.5 },
},