Skip to content

Instantly share code, notes, and snippets.

View mattlangeman's full-sized avatar

Matt Langeman mattlangeman

View GitHub Profile
@mattlangeman
mattlangeman / pie-chart-misaligned-quantitativel-labels-with-color.json
Created October 22, 2020 16:44
Pie Chart Misaligned Quantitative Labels with Color
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with aligned labels",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / pie-chart-aligned-nominal-labels-with-color.json
Created October 22, 2020 16:41
Pie Chart Aligned Nominal Labels with Color
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with aligned labels",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-pie-chart-aligned-nominal-labels.json
Created October 22, 2020 16:07
Vega-Lite Pie Chart Aligned Nominal Labels with Color
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with misaligned labels",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-pie-chart-misaligned-labels.json
Created October 22, 2020 16:05
Vega-Lite Pie Chart Misaligned Labels
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with misaligned labels",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-pie-chart-aligned-labels.json
Created October 22, 2020 16:03
Vega-Lite Pie Chart Aligned Labels
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with misaligned labels",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-pie-chart-misaligned-lables-2.json
Created October 22, 2020 02:14
Vega-Lite Pie Chart Misaligned Labels 2
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with attempt at percentage labels. Labels are misaligned",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8},
{"category": "Category 4", "value": 8}
]
@mattlangeman
mattlangeman / vega-lite-pie-chart.json
Created October 22, 2020 02:00
Vega-Lite Pie Chart with Labels
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with labels.",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-pie-with-percent.json
Created October 22, 2020 01:56
Vega-Lite Pie Chart - Attempt at Percent Labels
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "A pie chart with attempt at percentage labels. Labels are misaligned",
"data": {
"values": [
{"category": "Category 1", "value": 4},
{"category": "Category 2", "value": 12},
{"category": "Category 3", "value": 8}
]
},
@mattlangeman
mattlangeman / vega-lite-interactive-candlestick-spec.json
Last active December 22, 2023 04:11
Vega-Lite Interactive Selection on Candlestick Chart
{
"config": {
"view": {
"continuousWidth": 400,
"continuousHeight": 300
}
},
"vconcat": [
{
"layer": [