Merge parity/F2b-web
This commit is contained in:
@@ -17,6 +17,7 @@ export function bandFill(
|
||||
high: (number | null)[],
|
||||
colour: string,
|
||||
alpha: string,
|
||||
name?: string,
|
||||
): Partial<Plotly.Data> {
|
||||
const rows = x.flatMap((age, i) =>
|
||||
low[i] != null && high[i] != null
|
||||
@@ -32,7 +33,8 @@ export function bandFill(
|
||||
fillcolor: `${colour}${alpha}`,
|
||||
line: { width: 0 },
|
||||
hoverinfo: 'skip',
|
||||
showlegend: false,
|
||||
name,
|
||||
showlegend: name != null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user