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:
co-authored by
Claude Opus 4.5
parent
6832ae1198
commit
e7a3dd698a
Vendored
+5
-5
@@ -749,7 +749,7 @@ export default {
|
|||||||
colorscale: 'Viridis',
|
colorscale: 'Viridis',
|
||||||
showscale: true,
|
showscale: true,
|
||||||
colorbar: {
|
colorbar: {
|
||||||
title: 'Relative Score',
|
title: { text: 'Relative Score' },
|
||||||
x: 1.02,
|
x: 1.02,
|
||||||
xanchor: 'left',
|
xanchor: 'left',
|
||||||
thickness: 20,
|
thickness: 20,
|
||||||
@@ -784,13 +784,13 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const layout = {
|
const layout = {
|
||||||
title: `Vector Space (PCA 3D) - ${results.length} results`,
|
title: { text: `Vector Space (PCA 3D) - ${results.length} results` },
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
scene: {
|
scene: {
|
||||||
xaxis: { title: 'PC1' },
|
xaxis: { title: { text: 'PC1' } },
|
||||||
yaxis: { title: 'PC2' },
|
yaxis: { title: { text: 'PC2' } },
|
||||||
zaxis: { title: 'PC3' },
|
zaxis: { title: { text: 'PC3' } },
|
||||||
camera: {
|
camera: {
|
||||||
eye: { x: 1.5, y: 1.5, z: 1.5 },
|
eye: { x: 1.5, y: 1.5, z: 1.5 },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user