Playground
Change a value or a step, read what the compiler says, and download the result. The same compiler as the CLI runs here as WebAssembly in your browser; your specification never leaves this tab. See how it works and what it needs.
The compiler could not be loaded
The playground needs WebAssembly and module workers (see the browser support). You can still edit and download the JSON. To render without the browser, install the CLI:
cargo install chartlet
chartlet render chartlet.json -o chart.svgor npm install @casoon/chartlet; see Installation.
Specification
Result
Loading…
Out of date: this is the last valid render. Fix the problems below to update it.
Text alternative: description and data table
compiler not loaded yet. No account, no upload, no analytics. PNG is not offered in the browser; the CLI renders PNG.
[{"id":"bar","label":"Bar chart","json":"{\n \"schemaVersion\": 1,\n \"type\": \"bar\",\n \"title\": \"Monthly revenue\",\n \"description\": \"Revenue increased in February and remained above January in March.\",\n \"source\": \"Example data\",\n \"categoryAxis\": { \"title\": \"Month\" },\n \"valueAxis\": { \"title\": \"Revenue in thousands\", \"format\": \"number\" },\n \"data\": [\n { \"label\": \"January\", \"value\": 120 },\n { \"label\": \"February\", \"value\": 180 },\n { \"label\": \"March\", \"value\": 150 }\n ]\n}"},{"id":"flow","label":"Flow diagram","json":"{\n \"schemaVersion\": 1,\n \"type\": \"flow\",\n \"title\": \"Handling an order\",\n \"width\": 960,\n \"height\": 300,\n \"flow\": {\n \"nodes\": [\n { \"id\": \"received\", \"label\": \"Order received\", \"kind\": \"start\" },\n { \"id\": \"paid\", \"label\": \"Payment cleared?\", \"kind\": \"decision\" },\n { \"id\": \"ship\", \"label\": \"Ship parcel\" },\n { \"id\": \"done\", \"label\": \"Delivered\", \"kind\": \"end\" },\n { \"id\": \"cancel\", \"label\": \"Cancelled\", \"kind\": \"end\" }\n ],\n \"edges\": [\n { \"from\": \"received\", \"to\": \"paid\" },\n { \"from\": \"paid\", \"to\": \"ship\", \"label\": \"yes\" },\n { \"from\": \"paid\", \"to\": \"cancel\", \"label\": \"no\" },\n { \"from\": \"ship\", \"to\": \"done\" }\n ]\n }\n}"},{"id":"error","label":"A specification with an error","json":"{\n \"schemaVersion\": 1,\n \"type\": \"bar\",\n \"title\": \"Signups per month\",\n \"data\": [\n { \"label\": \"January\", \"value\": 120 },\n { \"label\": \"January\", \"value\": 180 },\n { \"label\": \"March\", \"value\": 150 }\n ]\n}"},{"id":"narrow","label":"A canvas that is too small","json":"{\n \"schemaVersion\": 1,\n \"type\": \"flow\",\n \"title\": \"A canvas that is too small\",\n \"width\": 320,\n \"height\": 240,\n \"flow\": {\n \"nodes\": [\n { \"id\": \"received\", \"label\": \"Order received\", \"kind\": \"start\" },\n { \"id\": \"paid\", \"label\": \"Payment cleared?\", \"kind\": \"decision\" },\n { \"id\": \"ship\", \"label\": \"Ship parcel\" },\n { \"id\": \"done\", \"label\": \"Delivered\", \"kind\": \"end\" },\n { \"id\": \"cancel\", \"label\": \"Cancelled\", \"kind\": \"end\" }\n ],\n \"edges\": [\n { \"from\": \"received\", \"to\": \"paid\" },\n { \"from\": \"paid\", \"to\": \"ship\", \"label\": \"yes\" },\n { \"from\": \"paid\", \"to\": \"cancel\", \"label\": \"no\" },\n { \"from\": \"ship\", \"to\": \"done\" }\n ]\n }\n}"},{"id":"architecture","label":"Architecture model","json":"{\n \"schemaVersion\": 1,\n \"type\": \"architecture\",\n \"title\": \"Multi-tenant line-of-business application\",\n \"source\": \"Illustrative reference architecture\",\n \"width\": 1200,\n \"height\": 1100,\n \"architecture\": {\n \"boundaries\": [\n {\n \"id\": \"rz\",\n \"label\": \"Data center\"\n },\n {\n \"id\": \"netz\",\n \"label\": \"Application network\",\n \"in\": \"rz\"\n },\n {\n \"id\": \"daten\",\n \"label\": \"Data zone\",\n \"in\": \"netz\"\n }\n ],\n \"components\": [\n {\n \"id\": \"nutzer\",\n \"label\": \"Teacher, parent\",\n \"kind\": \"person\"\n },\n {\n \"id\": \"browser\",\n \"label\": \"Browser\",\n \"kind\": \"frontend\"\n },\n {\n \"id\": \"proxy\",\n \"label\": \"Reverse proxy\",\n \"sublabel\": \"TLS 1.3, WAF\",\n \"kind\": \"security\",\n \"in\": \"rz\"\n },\n {\n \"id\": \"web\",\n \"label\": \"Web / BFF\",\n \"sublabel\": \"SvelteKit\",\n \"in\": \"netz\"\n },\n {\n \"id\": \"idp\",\n \"label\": \"Sign-in\",\n \"sublabel\": \"Keycloak, OIDC\",\n \"kind\": \"security\",\n \"in\": \"netz\"\n },\n {\n \"id\": \"api\",\n \"label\": \"Domain API\",\n \"sublabel\": \"Rust\",\n \"in\": \"netz\"\n },\n {\n \"id\": \"db\",\n \"label\": \"Domain data\",\n \"sublabel\": \"Postgres, RLS per tenant\",\n \"kind\": \"database\",\n \"in\": \"daten\"\n },\n {\n \"id\": \"audit\",\n \"label\": \"Audit log\",\n \"sublabel\": \"append only\",\n \"kind\": \"database\",\n \"in\": \"daten\"\n },\n {\n \"id\": \"backup\",\n \"label\": \"Backup\",\n \"sublabel\": \"second site\",\n \"kind\": \"storage\"\n },\n {\n \"id\": \"alt\",\n \"label\": \"School records\",\n \"sublabel\": \"legacy system\",\n \"kind\": \"external\"\n },\n {\n \"id\": \"soc\",\n \"label\": \"SIEM / SOC\",\n \"kind\": \"external\"\n }\n ],\n \"connections\": [\n {\n \"from\": \"nutzer\",\n \"to\": \"browser\",\n \"label\": \"uses\"\n },\n {\n \"from\": \"browser\",\n \"to\": \"proxy\",\n \"label\": \"calls\",\n \"technology\": \"HTTPS\"\n },\n {\n \"from\": \"proxy\",\n \"to\": \"web\",\n \"label\": \"forwards\"\n },\n {\n \"from\": \"web\",\n \"to\": \"idp\",\n \"label\": \"signs in\",\n \"technology\": \"OIDC\"\n },\n {\n \"from\": \"web\",\n \"to\": \"api\",\n \"label\": \"queries\",\n \"technology\": \"user context\"\n },\n {\n \"from\": \"api\",\n \"to\": \"db\",\n \"label\": \"reads, writes\",\n \"technology\": \"SQL/TLS\"\n },\n {\n \"from\": \"api\",\n \"to\": \"audit\",\n \"label\": \"logs\"\n },\n {\n \"from\": \"alt\",\n \"to\": \"api\",\n \"label\": \"master data\",\n \"technology\": \"REST/JSON\"\n },\n {\n \"from\": \"api\",\n \"to\": \"soc\",\n \"label\": \"events\",\n \"technology\": \"Syslog\",\n \"dash\": \"dashed\"\n },\n {\n \"from\": \"db\",\n \"to\": \"backup\",\n \"label\": \"backs up\",\n \"dash\": \"dashed\"\n }\n ],\n \"mainPath\": [\n \"nutzer\",\n \"browser\",\n \"proxy\",\n \"web\",\n \"api\",\n \"db\"\n ],\n \"orientation\": \"portrait\"\n },\n \"mobile\": {\n \"width\": 464,\n \"height\": 1180\n }\n}"}]