minor improvements

This commit is contained in:
Vyacheslav Matyukhin 2022-08-19 15:17:41 +04:00
parent 7866203ac4
commit fc29a7211e
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }
} }

View File

@ -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,