Skip to content

Instantly share code, notes, and snippets.

@keckelt
Created May 11, 2021 08:57
Show Gist options
  • Save keckelt/a41df49609a23c1d8e2001282a32f995 to your computer and use it in GitHub Desktop.
Save keckelt/a41df49609a23c1d8e2001282a32f995 to your computer and use it in GitHub Desktop.
Density Plot with Interval and Split
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"autosize": {"type": "fit", "contains": "padding"},
"background": "white",
"padding": {"left": 5, "top": 0, "right": 5, "bottom": 0},
"height": 300,
"style": "cell",
"encode": {"update": {"cursor": {"value": "text"}}},
"data": [
{"name": "selected_store"},
{
"name": "source_0",
"values": [
{
"tissuename": "TCGA-E5-A2PC-01",
"age": 61,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-FD-A6TI-01",
"age": 73,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-ZF-A9RD-01",
"age": 75,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-FD-A43S-01",
"age": 71,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-FD-A6TF-01",
"age": 80,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-GC-A3RD-01",
"age": 83,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-DK-A3WY-01",
"age": 67,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-FD-A6TK-01",
"age": 60,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-CF-A47T-01",
"age": 58,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-BT-A42C-01",
"age": 64,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-DK-A6AV-01",
"age": 82,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-GC-A3WC-01",
"age": 80,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-FD-A5BZ-01",
"age": 77,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-CF-A1HS-01",
"age": 75,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-G2-A2EJ-01",
"age": 56,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-BL-A13I-01",
"age": 57,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-XF-A9SX-01",
"age": 63,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-XF-A9SU-01",
"age": 74,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-UY-A78M-01",
"age": 81,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-XF-A9SH-01",
"age": 65,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-CF-A8HX-01",
"age": 55,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-E7-A4IJ-01",
"age": 56,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-ZF-A9R3-01",
"age": 53,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-DK-A1AF-01",
"age": 84,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-XF-A9T6-01",
"age": 88,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-E7-A8O8-01",
"age": 59,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-E7-A677-01",
"age": 81,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-XF-AAMJ-01",
"age": 70,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-4Z-AA87-01",
"age": 72,
"Cohort": "01. Tumortype: Bladder urothelial carcinoma"
},
{
"tissuename": "TCGA-MA-AA3Y-01",
"age": 48,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-FU-A3TQ-01",
"age": 55,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-MA-AA43-01",
"age": 48,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-IR-A3LF-01",
"age": 64,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9V1-01",
"age": 46,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-LP-A4AU-01",
"age": 35,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A8QC-01",
"age": 51,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A952-01",
"age": 66,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9U7-01",
"age": 30,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-JW-AAVH-01",
"age": 46,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9UP-01",
"age": 43,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9V5-01",
"age": 50,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-C5-A1MK-01",
"age": 79,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-JW-A69B-01",
"age": 44,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-AA62-01",
"age": 51,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-MY-A5BD-01",
"age": 62,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-DG-A2KK-01",
"age": 51,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-DR-A0ZL-01",
"age": 53,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-MY-A5BE-01",
"age": 42,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A3QE-01",
"age": 45,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A8EB-01",
"age": 41,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-IR-A3LL-01",
"age": 60,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A94Y-01",
"age": 47,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-MA-AA3W-01",
"age": 54,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A957-01",
"age": 64,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-IR-A3LH-01",
"age": 49,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-DG-A2KL-01",
"age": 53,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-C5-A1M9-01",
"age": 46,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A8EC-01",
"age": 55,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A8EH-01",
"age": 56,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-Q1-A73R-01",
"age": 45,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9UV-01",
"age": 74,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A8EK-01",
"age": 65,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-LP-A4AV-01",
"age": null,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-IR-A3LA-01",
"age": 60,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A5ZF-01",
"age": 56,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A5ZE-01",
"age": 54,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-Q1-A73O-01",
"age": 37,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A94W-01",
"age": 39,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A953-01",
"age": 63,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EK-A2PM-01",
"age": 81,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EK-A2H0-01",
"age": 24,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-ZX-AA5X-01",
"age": 64,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-FU-A5XV-01",
"age": 32,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-HM-A4S6-01",
"age": 51,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EK-A2RL-01",
"age": 32,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-C5-A1BK-01",
"age": 36,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A6QX-01",
"age": 49,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-R2-A69V-01",
"age": 42,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-DS-A1OB-01",
"age": 45,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9UC-01",
"age": 32,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9U6-01",
"age": 52,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A958-01",
"age": 46,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-ZJ-AAXA-01",
"age": 64,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A50E-01",
"age": 45,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-C5-A1BI-01",
"age": 31,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-VS-A9V2-01",
"age": 29,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EK-A2PG-01",
"age": 88,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-Q1-A6DV-01",
"age": 36,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-JW-A5VJ-01",
"age": 56,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-LP-A7HU-01",
"age": 53,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-EA-A5ZD-01",
"age": 40,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-DS-A1OD-01",
"age": 49,
"Cohort": "02. Tumortype: Cervical squamous cell carcinoma and endocervical adenocarcinoma"
},
{
"tissuename": "TCGA-2Y-A9H7-01",
"age": 81,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-2Y-A9H5-01",
"age": 59,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-CC-A9FU-01",
"age": 52,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-G3-A25W-01",
"age": 79,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-WX-AA44-01",
"age": 64,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-XR-A8TC-01",
"age": 43,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AACI-01",
"age": 69,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AAE4-01",
"age": 49,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-ED-A7PY-01",
"age": 20,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-2Y-A9GU-01",
"age": 55,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-BC-A110-01",
"age": 51,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-ED-A7XP-01",
"age": 53,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-G3-A25U-01",
"age": 63,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A1EJ-01",
"age": 71,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-HP-A5N0-01",
"age": 87,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-ZP-A9D4-01",
"age": 64,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A11A-01",
"age": 67,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A73B-01",
"age": 72,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-WQ-A9G7-01",
"age": null,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-WX-AA46-01",
"age": 61,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-ZP-A9CY-01",
"age": 66,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AACX-01",
"age": 66,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A39X-01",
"age": 78,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-XR-A8TD-01",
"age": 49,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-2Y-A9GZ-01",
"age": 82,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AACP-01",
"age": 64,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AAD8-01",
"age": 73,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AADJ-01",
"age": 70,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-XR-A8TE-01",
"age": 16,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A1EC-01",
"age": 20,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AAC8-01",
"age": 72,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A4NH-01",
"age": 65,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AAD2-01",
"age": 66,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-CC-5260-01",
"age": 61,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A113-01",
"age": 55,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AACB-01",
"age": 74,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AA3A-01",
"age": 81,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-G3-AAV4-01",
"age": 83,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-A73G-01",
"age": 73,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-DD-AAW2-01",
"age": 69,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-CC-5259-01",
"age": 60,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-2Y-A9H6-01",
"age": 68,
"Cohort": "03. Tumortype: Liver hepatocellular carcinoma"
},
{
"tissuename": "TCGA-D1-A0ZQ-01",
"age": 89,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A139-02",
"age": 74,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0VX-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-DI-A1BY-01",
"age": 63,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0MH-01",
"age": 61,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-FI-A2CX-01",
"age": 82,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A0G2-01",
"age": 57,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A0L9-01",
"age": 71,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A3K1-01",
"age": 56,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2HH-01",
"age": 60,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A056-01",
"age": 64,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-2E-A9G8-01",
"age": null,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A11S-01",
"age": 63,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2HF-01",
"age": 67,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2H4-01",
"age": 66,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2IN-01",
"age": 63,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2HJ-01",
"age": 35,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2HK-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A8CV-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A3FZ-01",
"age": 33,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A3KW-01",
"age": 72,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A11V-01",
"age": 64,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3IA-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3NG-01",
"age": 83,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A05H-01",
"age": 75,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A6W4-01",
"age": 62,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A1MV-01",
"age": 84,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A1G7-01",
"age": 86,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A0LJ-01",
"age": 42,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A0JN-01",
"age": 84,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A11M-01",
"age": 43,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A3G7-01",
"age": 71,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0TD-01",
"age": 65,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A0LV-01",
"age": 39,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A22X-01",
"age": 36,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A22S-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0M6-01",
"age": 73,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0LW-01",
"age": 47,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A1OJ-01",
"age": 31,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0MC-01",
"age": 74,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A139-01",
"age": 74,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A16F-01",
"age": 60,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A06B-01",
"age": 72,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A16E-01",
"age": 73,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A22T-01",
"age": 56,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A0CC-01",
"age": 69,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A0CB-01",
"age": 60,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0UT-01",
"age": 62,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-E6-A2P8-01",
"age": 53,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A167-01",
"age": 70,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-DI-A2QT-01",
"age": 51,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A05U-01",
"age": 56,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A05S-01",
"age": 81,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A3B0-01",
"age": 43,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A1GO-01",
"age": 65,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A3FV-01",
"age": 62,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A064-01",
"age": 81,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A1O0-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2H7-01",
"age": 87,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A2K2-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A548-01",
"age": 83,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A1OH-01",
"age": 86,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A1OF-01",
"age": 47,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A1GM-01",
"age": 60,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A0RA-01",
"age": 68,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-DF-A2KN-01",
"age": null,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A1GD-01",
"age": 51,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A2CH-01",
"age": 73,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A23M-01",
"age": 61,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1C8-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A2K7-01",
"age": 41,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A3G9-01",
"age": 63,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0MU-01",
"age": 78,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A11U-01",
"age": 74,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A17D-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A0GE-01",
"age": 38,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A3S1-01",
"age": 71,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0TA-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A2QK-01",
"age": 65,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A16N-01",
"age": 51,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-A5-A0R6-01",
"age": 64,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A221-01",
"age": 84,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0V6-01",
"age": 55,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3BD-01",
"age": 57,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A23O-01",
"age": 69,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3BH-01",
"age": null,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A2OM-01",
"age": 55,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0TJ-01",
"age": 59,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BK-A26L-01",
"age": 71,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A1NU-01",
"age": 74,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3OJ-01",
"age": 54,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3BI-01",
"age": 67,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3EL-01",
"age": 47,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A053-01",
"age": 89,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1CA-01",
"age": 70,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0VW-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0YV-01",
"age": 67,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BG-A0YU-01",
"age": 37,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A3G8-01",
"age": 76,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AP-A1DO-01",
"age": 62,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-B5-A1MX-01",
"age": 47,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AJ-A3EK-01",
"age": 53,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0UJ-01",
"age": 68,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1CC-01",
"age": 65,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1CP-01",
"age": 84,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A2HG-01",
"age": 56,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1C7-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-AX-A1C9-01",
"age": 73,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EC-A1NJ-01",
"age": 73,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EO-A2CG-01",
"age": 69,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-FI-A2EX-01",
"age": 58,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-KP-A3W4-01",
"age": 63,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A2OQ-01",
"age": 61,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-EY-A210-01",
"age": 82,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0V8-01",
"age": 68,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A174-01",
"age": 51,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A177-01",
"age": 70,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A0ZZ-01",
"age": 80,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-BS-A0UA-01",
"age": 68,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A3DA-01",
"age": 77,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
},
{
"tissuename": "TCGA-D1-A16Y-01",
"age": 56,
"Cohort": "04. Tumortype: Uterine corpus endometrial carcinoma"
}
]
},
{
"name": "splitvalues",
"values": [],
"on": [
{
"trigger": "draggedMark",
"modify": "draggedMark",
"values": "dragTo"
},
{
"trigger": "addMark",
"insert": "addMark"
},
{
"trigger": "remMark",
"remove": "remMark"
}
]
},
{
"name": "data_0",
"source": "source_0",
"transform": [
{
"type": "kde",
"field": "age",
"groupby": ["Cohort"],
"counts": false,
"as": ["value", "density"]
}
]
}
],
"signals": [
{
"name": "width",
"init": "isFinite(containerSize()[0]) ? containerSize()[0] : 200",
"on": [
{
"update": "isFinite(containerSize()[0]) ? containerSize()[0] : 200",
"events": "window:resize"
}
]
},
{
"name": "dragTo",
"on": [
{
"events": "[@right_grabber:mousedown, window:mouseup] > window:mousemove",
"consume": true,
"update": "{x: invert('x',x())}"
}
]
},
{
"name": "draggedMark",
"on": [
{
"events": "@right_grabber:mousedown",
"consume": true,
"update": "group().datum"
}
]
},
{
"name": "addMark",
"on": [
{
"events": [
{
"source": "view",
"consume": true,
"type": "dblclick",
"filter": "item().mark.name === 'root'"
}
],
"update": "{x: invert('x',x())}"
}
]
},
{
"name": "remMark",
"on": [
{
"events": "@right_grabber:dblclick",
"consume": true,
"update": "group().datum"
}
]
},
{
"name": "printMarkname",
"on": [
{
"events": {
"source": "view",
"type": "mousedown"
},
"update": "event.item.mark.name"
}
]
},
{
"name": "unit",
"value": {},
"on": [
{"events": "mousemove", "update": "isTuple(group()) ? group() : unit"}
]
},
{
"name": "selected",
"update": "vlSelectionResolve(\"selected_store\", \"union\")"
},
{
"name": "selected_x",
"value": [],
"on": [
{
"events": {
"source": "view",
"type": "mousedown",
"filter": [
"!event.item || event.item.mark.name !== \"selected_brush\"",
"event.item.mark.name !== \"right_grabber\""
]
},
"update": "[x(unit), x(unit)]"
},
{
"events": {
"source": "window",
"type": "mousemove",
"consume": true,
"between": [
{
"source": "scope",
"type": "mousedown",
"filter": [
"!event.item || event.item.mark.name !== \"selected_brush\"",
"event.item.mark.name !== \"right_grabber\""
]
},
{"source": "window", "type": "mouseup"}
]
},
"update": "[selected_x[0], clamp(x(unit), 0, width)]"
},
{
"events": {"signal": "selected_scale_trigger"},
"update": "[scale(\"x\", selected_value[0]), scale(\"x\", selected_value[1])]"
},
{
"events": [{"source": "view", "type": "dblclick"}],
"update": "[0, 0]"
},
{
"events": {"signal": "selected_translate_delta"},
"update": "clampRange(panLinear(selected_translate_anchor.extent_x, selected_translate_delta.x / span(selected_translate_anchor.extent_x)), 0, width)"
},
{
"events": {"signal": "selected_zoom_delta"},
"update": "clampRange(zoomLinear(selected_x, selected_zoom_anchor.x, selected_zoom_delta), 0, width)"
}
]
},
{
"name": "selected_value",
"on": [
{
"events": {"signal": "selected_x"},
"update": "selected_x[0] === selected_x[1] ? null : invert(\"x\", selected_x)"
}
]
},
{
"name": "selected_scale_trigger",
"value": {},
"on": [
{
"events": [{"scale": "x"}],
"update": "(!isArray(selected_value) || (+invert(\"x\", selected_x)[0] === +selected_value[0] && +invert(\"x\", selected_x)[1] === +selected_value[1])) ? selected_scale_trigger : {}"
}
]
},
{
"name": "selected_tuple",
"on": [
{
"events": [{"signal": "selected_value"}],
"update": "selected_value ? {unit: \"layer_0\", fields: selected_tuple_fields, values: [selected_value]} : null"
}
]
},
{
"name": "selected_tuple_fields",
"value": [{"field": "value", "channel": "x", "type": "R"}]
},
{
"name": "selected_translate_anchor",
"value": {},
"on": [
{
"events": [
{
"source": "scope",
"type": "mousedown",
"markname": "selected_brush"
}
],
"update": "{x: x(unit), y: y(unit), extent_x: slice(selected_x)}"
}
]
},
{
"name": "selected_translate_delta",
"value": {},
"on": [
{
"events": [
{
"source": "window",
"type": "mousemove",
"consume": true,
"between": [
{
"source": "scope",
"type": "mousedown",
"markname": "selected_brush"
},
{"source": "window", "type": "mouseup"}
]
}
],
"update": "{x: selected_translate_anchor.x - x(unit), y: selected_translate_anchor.y - y(unit)}"
}
]
},
{
"name": "selected_zoom_anchor",
"on": [
{
"events": [
{
"source": "scope",
"type": "wheel",
"consume": true,
"markname": "selected_brush"
}
],
"update": "{x: x(unit), y: y(unit)}"
}
]
},
{
"name": "selected_zoom_delta",
"on": [
{
"events": [
{
"source": "scope",
"type": "wheel",
"consume": true,
"markname": "selected_brush"
}
],
"force": true,
"update": "pow(1.001, event.deltaY * pow(16, event.deltaMode))"
}
]
},
{
"name": "selected_modify",
"on": [
{
"events": {"signal": "selected_tuple"},
"update": "modify(\"selected_store\", selected_tuple, true)"
}
]
}
],
"marks": [
{
"name": "selected_brush_bg",
"type": "rect",
"clip": true,
"encode": {
"enter": {"fill": {"value": "#333"}, "fillOpacity": {"value": 0.125}},
"update": {
"x": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"signal": "selected_x[0]"
},
{"value": 0}
],
"y": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"value": 0
},
{"value": 0}
],
"x2": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"signal": "selected_x[1]"
},
{"value": 0}
],
"y2": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"field": {"group": "height"}
},
{"value": 0}
]
}
}
},
{
"name": "layer_0_pathgroup",
"type": "group",
"from": {
"facet": {
"name": "faceted_path_layer_0_main",
"data": "data_0",
"groupby": ["Cohort"]
}
},
"encode": {
"update": {
"width": {"field": {"group": "width"}},
"height": {"field": {"group": "height"}}
}
},
"marks": [
{
"name": "layer_0_marks",
"type": "line",
"style": ["line"],
"sort": {"field": ["datum[\"value\"]"], "order": ["ascending"]},
"interactive": true,
"from": {"data": "faceted_path_layer_0_main"},
"encode": {
"update": {
"cursor": {"value": "text"},
"tooltip": {
"signal": "{\"Age\": format(datum[\"value\"], \"\"), \"Density\": format(datum[\"density\"], \"\"), \"value\": format(datum[\"value\"], \"\"), \"Cohort\": isValid(datum[\"Cohort\"]) ? datum[\"Cohort\"] : \"\"+datum[\"Cohort\"]}"
},
"stroke": {"scale": "color", "field": "Cohort"},
"description": {
"signal": "\"Age: \" + (format(datum[\"value\"], \"\")) + \"; Density: \" + (format(datum[\"density\"], \"\")) + \"; value: \" + (format(datum[\"value\"], \"\")) + \"; Cohort: \" + (isValid(datum[\"Cohort\"]) ? datum[\"Cohort\"] : \"\"+datum[\"Cohort\"])"
},
"x": {"scale": "x", "field": "value"},
"y": {"scale": "y", "field": "density"},
"defined": {
"signal": "isValid(datum[\"value\"]) && isFinite(+datum[\"value\"]) && isValid(datum[\"density\"]) && isFinite(+datum[\"density\"])"
}
}
}
}
]
},
{
"name": "selected_brush",
"type": "rect",
"clip": true,
"encode": {
"enter": {
"cursor": {"value": "pointer"},
"fill": {"value": "transparent"}
},
"update": {
"x": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"signal": "selected_x[0]"
},
{"value": 0}
],
"y": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"value": 0
},
{"value": 0}
],
"x2": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"signal": "selected_x[1]"
},
{"value": 0}
],
"y2": [
{
"test": "data(\"selected_store\").length && data(\"selected_store\")[0].unit === \"layer_0\"",
"field": {"group": "height"}
},
{"value": 0}
],
"stroke": [
{"test": "selected_x[0] !== selected_x[1]", "value": "white"},
{"value": null}
]
}
}
},
{
"name": "splitmarks",
"type": "group",
"from": {
"data": "splitvalues"
},
"encode": {
"enter": {
"height": {
"field": {
"group": "height"
}
}
},
"update": {
"x": [
{
"test": "!isValid(datum['x']) || !isFinite(+datum['x'])",
"value": 0
},
{
"scale": "x",
"field": "x"
}
]
}
},
"marks": [
{
"name": "layer_1_marks",
"type": "rule",
"style": [
"rule"
],
"encode": {
"update": {
"strokeDash": {
"value": [
4,
6
]
},
"stroke": {
"value": "black"
},
"y": {
"value": 0
},
"y2": {
"field": {
"group": "height"
}
}
}
}
},
{
"type": "path",
"name": "right_grabber",
"encode": {
"enter": {
"y": {
"field": {
"group": "height"
},
"mult": 0.5,
"offset": -50
},
"fill": {
"value": "#fff"
},
"stroke": {
"value": "#666"
},
"cursor": {
"value": "ew-resize"
}
},
"update": {
"path": {
"signal": "'M0.5,33.333333333333336A6,6 0 0 1 6.5,39.333333333333336V60.66666666666667A6,6 0 0 1 0.5,66.66666666666667ZM2.5,41.333333333333336V58.66666666666667M4.5,41.333333333333336V58.66666666666667'"
}
}
}
}
]
}
],
"scales": [
{
"name": "x",
"type": "linear",
"domain": {
"fields": [
{"data": "data_0", "field": "value"}
]
},
"range": [0, {"signal": "width"}],
"clamp": true,
"nice": true,
"zero": false
},
{
"name": "y",
"type": "linear",
"domain": {"data": "data_0", "field": "density"},
"range": [{"signal": "height"}, 0],
"nice": true,
"zero": true
},
{
"name": "color",
"type": "ordinal",
"domain": {"data": "data_0", "field": "Cohort", "sort": true},
"range": "category"
}
],
"axes": [
{
"scale": "x",
"orient": "bottom",
"gridScale": "y",
"grid": true,
"tickCount": {"signal": "ceil(width/40)"},
"domain": false,
"labels": false,
"aria": false,
"maxExtent": 0,
"minExtent": 0,
"ticks": false,
"zindex": 0
},
{
"scale": "y",
"orient": "left",
"gridScale": "x",
"grid": true,
"tickCount": {"signal": "ceil(height/40)"},
"domain": false,
"labels": false,
"aria": false,
"maxExtent": 0,
"minExtent": 0,
"ticks": false,
"zindex": 0
},
{
"scale": "x",
"orient": "bottom",
"grid": false,
"title": "Age",
"labelFlush": true,
"tickCount": {"signal": "ceil(width/40)"},
"zindex": 0
},
{
"scale": "y",
"orient": "left",
"grid": false,
"title": "Density",
"tickCount": {"signal": "ceil(height/40)"},
"zindex": 0
}
],
"config": {
"range": {"category": ["#80b1d3", "#fb8072", "#b3de69", "#bc80bd"]},
"axis": {
"titleFontSize": 16,
"titleFontWeight": 500,
"titleFont": "Yantramanav",
"labelFontSize": 12,
"labelLimit": 150,
"labelFont": "Yantramanav",
"labelOverlap": "parity",
"labelSeparation": 5,
"labelBound": true
},
"legend": {
"titleFontSize": 16,
"titleFontWeight": 500,
"titleFont": "Yantramanav",
"labelFontSize": 12,
"labelLimit": 150,
"labelFont": "Yantramanav",
"labelOverlap": "parity"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment