From e7a3dd698ac0c5f7618f00008a5caa1b7feea604 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Sun, 18 Jan 2026 22:19:48 +0100 Subject: [PATCH] fix(astrolabe): update Plotly title attributes for v3 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- third_party/astrolabe/src/App.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/third_party/astrolabe/src/App.vue b/third_party/astrolabe/src/App.vue index 4996699..ac98bf6 100644 --- a/third_party/astrolabe/src/App.vue +++ b/third_party/astrolabe/src/App.vue @@ -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 }, },