This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"config": { | |
"range": { | |
"category": [ | |
"#000000ff", | |
"#374c80", | |
"#ff764a", | |
"#bc5090", | |
"#ffa600", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
Switch = Function.From( | |
type function (value as any, l as list, default as any) as any, | |
(params) => | |
let | |
// Function to select nth item of list | |
// If you pass in zero, you get even indices | |
// If you pass in one, you get odd indices | |
fnSelectEvenOdd = (lst as list, remainder as number) as list => | |
let |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"width": 500, | |
"height": 200, | |
"padding": 5, | |
"signals": [ | |
{ | |
"name": "startAngle", | |
"value": -1.57, | |
"bind": {"input": "range", "min": -3.14, "max": 3.14, "step": 0.01} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"width": 500, | |
"height": 200, | |
"padding": 5, | |
"signals": [ | |
{ | |
"name": "startAngle", | |
"value": -2.5, | |
"bind": {"input": "range", "min": -2.5, "max": 6.29, "step": 0.01} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"width": 500, | |
"height": 200, | |
"padding": 5, | |
"signals": [ | |
{ | |
"name": "startAngle", | |
"value": -2.5, | |
"bind": {"input": "range", "min": -2.5, "max": 6.29, "step": 0.01} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"width": 400, | |
"height": 400, | |
"data": [ | |
{ | |
"name": "table", | |
"values": [ | |
{"g": 1, "c": 0, "r": 90}, | |
{"g": 1, "c": 1, "r": 20}, | |
{"g": 1, "c": 2, "r": 10}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "A radial bar chart with multiple arcs, one for each category as a percentage of the whole.", | |
"params": [ | |
{ | |
"name": "baseRadius", | |
"value": 50, | |
"bind": {"input": "range", "min": 0, "max": 100, "step": 1} | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "A half-donut chart with adjustable parameters and custom data.", | |
"params": [ | |
{ | |
"name": "radius", | |
"value": 0, | |
"bind": {"input": "range", "min": 0, "max": 100, "step": 1} | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
"description": "A simple pie chart with embedded data.", | |
"params": [ | |
{ | |
"name": "radius", | |
"value": 0, | |
"bind": {"input": "range", "min": 0, "max": 100, "step": 1} | |
}, | |
{ |