Skip to content

Instantly share code, notes, and snippets.

@ihgs
ihgs / finish.json
Last active February 4, 2024 07:42
timekeeper
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "Presentaion timer",
"autosize": "none",
"signals": [
{"name": "minutes", "init": "30"},
{"name": "innerRadius", "init": "width/4"},
{"name": "startDate", "init": "now()"},
{"name": "endDate", "init": "now()+minutes*60*1000"},
{
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"name": "wordcloud",
"width": 400,
"height": 200,
"padding": 0,
"autosize": "none",
"signals": [
{
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript">
function base64Encode(...parts) {
return new Promise(resolve => {
const reader = new FileReader();
reader.onload = () => {
const offset = reader.result.indexOf(",") + 1;
@ihgs
ihgs / advent.json
Last active December 5, 2021 13:12
2021Advent
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"padding": 5,
"width": 400,
"height": 400,
"signals": [
{
"name": "box_length",
"value": 50
},
@ihgs
ihgs / step0.json
Last active December 25, 2022 13:33
multi_graph1
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "Area charts of stock prices, with an interactive overview and filtered detail views.",
"width": 720,
"height": 480,
"padding": 5,
"data": [
{
"name": "sp500",
@ihgs
ihgs / step0.json
Last active June 12, 2021 08:44
multi_graph
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 500,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{"x":0,"y":28,"c":0},{"x":0,"y":55,"c":1},
@ihgs
ihgs / pattern1.json
Last active December 29, 2020 15:13
threshold
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 400,
"height": 200,
"padding": 5,
"data": [
{"name": "threshold", "values": [{"value": 35}]},
{
"name": "table",
"values": [
@ihgs
ihgs / tree.json
Last active December 23, 2020 13:54
Vega Christmas tree
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic bar chart example, with value labels shown upon mouse hover.",
"width": 400,
"height": 300,
"padding": 5,
"data": [
{"name": "myscale", "values": [{"x": -10, "y": 0}, {"x": 10, "y": 50}]},
{
"name": "leaves",
@ihgs
ihgs / step1.json
Last active April 28, 2020 05:25
vega_legends
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 500,
"height": 200,
"padding": 5,
"data": [
{
"name": "table",
"values": [
@ihgs
ihgs / Step1.json
Last active January 14, 2020 14:44
qiita statics
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 600,
"height": 340,
"padding": 5,
"data": [
{
"name": "likes",
"format": {"type": "json", "parse": {"created_at": "date"}},
"url": "https://gist.githubusercontent.com/ihgs/c5585789580af7a8b2b919c301ad3d5a/raw/3cbc6d2f0d953df5bbe330e547c851c98683062f/data.json"