I didn't test it, but this reduces the cruft and should avoid the compiler messages.
|barchart| barchart := { #'$schema' -> 'https://vega.github.io/schema/vega-lite/v5.json'. #description -> 'A simple bar chart'. #usermeta -> ({ #embedOptions -> (export -> true. compiled -> false. editor: false } as: JsonObject). #width -> 'container' } as: JsonObject
On Thu, Sep 2, 2021 at 4:14 PM tim Rowledge tim@rowledge.org wrote:
I love this way of using dNU: to build as you go.
The Parser fights back by getting all hissy about the unknown messages. Yes, one can handle this manually and so on in a browser, or I suppose filing in the code.
On 2021-09-02, at 3:01 AM, Levente Uzonyi leves@caesar.elte.hu wrote:
^JsonObject new at: '$schema' put: '
https://vega.github.io/schema/vega-lite/v5.json';
description: 'A simple bar chart'; width: 'container'; usermeta: (JsonObject new embedOptions: (JsonObject new export: true; compiled: false; editor: false));
tim
tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Strange OpCodes: PUS: PUrge System