Live demo - Bar chart

The demo shown below is taken from the official Vega-Lite example gallery here.

Textual representation

The code above is rendered by "Prism Syntax Highlighter for Confluence" which supports highlighting JSON syntax.

👉 Check out the official Vega-Lite documentation here https://vega.github.io/vega-lite/docs/ .