Add fallback for undefined ratio in TraceFilter chart config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -309,8 +309,8 @@ function barOptions() {
|
|||||||
// Set tick intervals
|
// Set tick intervals
|
||||||
display: false, // Hide values, only show grid lines
|
display: false, // Hide values, only show grid lines
|
||||||
min: 0,
|
min: 0,
|
||||||
max: traceList.value[0]?.ratio,
|
max: traceList.value[0]?.ratio ?? 1,
|
||||||
stepSize: traceList.value[0]?.ratio / 4,
|
stepSize: (traceList.value[0]?.ratio ?? 1) / 4,
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
color: "rgba(100,116,139)",
|
color: "rgba(100,116,139)",
|
||||||
|
|||||||
Reference in New Issue
Block a user