minor improvements
This commit is contained in:
parent
7866203ac4
commit
fc29a7211e
|
@ -40,7 +40,7 @@ export function makePlot(record: {
|
||||||
[key: string]: squiggleExpression;
|
[key: string]: squiggleExpression;
|
||||||
}): Plot | void {
|
}): Plot | void {
|
||||||
const plotResult = parsePlot(record);
|
const plotResult = parsePlot(record);
|
||||||
if (plotResult.tag == "Ok") {
|
if (plotResult.tag === "Ok") {
|
||||||
return plotResult.value;
|
return plotResult.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,7 +83,7 @@ export function buildVegaSpec(
|
||||||
|
|
||||||
let spec: VisualizationSpec = {
|
let spec: VisualizationSpec = {
|
||||||
$schema: "https://vega.github.io/schema/vega/v5.json",
|
$schema: "https://vega.github.io/schema/vega/v5.json",
|
||||||
description: "A basic area chart example",
|
description: "Squiggle plot chart",
|
||||||
width: 500,
|
width: 500,
|
||||||
height: 100,
|
height: 100,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user