Skip to content

Instantly share code, notes, and snippets.

View declann's full-sized avatar
👋

Declan Naughton declann

👋
View GitHub Profile
@declann
declann / spec.json
Created October 22, 2023 11:13
Vega spec from Sun Oct 22 2023
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 700,
"height": 400,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"category": 1960, "amount": 4},
@declann
declann / spec.json
Created October 22, 2023 11:08
Vega spec from Sun Oct 22 2023
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 700,
"height": 400,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"category": 1960, "amount": 4},
@declann
declann / spec.json
Created October 20, 2023 18:05
Vega spec from Fri Oct 20 2023
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 600,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"category": 1960, "amount": 4},
@declann
declann / spec.json
Created October 20, 2023 18:05
Vega spec from Fri Oct 20 2023
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 600,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"category": 1960, "amount": 4},
@declann
declann / spec.json
Created October 19, 2023 20:08
Vega spec from Thu Oct 19 2023
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 400,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"category": "A", "amount": 28},
@declann
declann / spec.json
Last active October 3, 2023 21:29
vega issue left align axis labels
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 700,
"style": "cell",
"data": [
{
"name": "source_0",
"values": [
@declann
declann / spec.json
Created October 3, 2023 21:23
simplified issue
{
"data": {
"values": [
{
"age_in": 36,
"age_opening_in": 30,
"age_closing_in": 36,
"model_id": 0,
"input_cursor_id": 0,
"formula": "projected_fund_value",
@declann
declann / spec.json
Created October 3, 2023 21:19
rec impacts table layers w. indented tree manual padding
{
"data": {
"values": [
{
"age_in": 36,
"age_opening_in": 30,
"age_closing_in": 36,
"model_id": 0,
"input_cursor_id": 0,
"formula": "projected_fund_value",
@declann
declann / comments.md
Last active September 9, 2023 17:11
params climate

https://vega.github.io/vega-lite/docs/selection.html#nearest

"The nearest property is not supported for multi-element mark types (i.e., line and area). For these mark types, consider layering a discrete mark type (e.g., point) with a 0-value opacity as in the last example above."

https://vega.github.io/vega-lite/docs/layer.html

"Note: Specifications inside layer cannot use row and column channels as layering facet specifications is not allowed. Instead, use the facet operator and place a layer inside a facet."

@declann
declann / spec.json
Created September 9, 2023 14:36
climate matrix
{
"data": {"name": "data"},
"mark": {"type": "line", "tooltip": true},
"encoding": {
"color": {"field": "zero_year_in", "type": "ordinal"},
"x": {
"field": "year_in",
"type": "quantitative",
"scale": {},
"axis": {"grid": false}