Skip to content

Instantly share code, notes, and snippets.

View JamesWilmot's full-sized avatar
🎯
Focusing

James Wilmot JamesWilmot

🎯
Focusing
  • @opendatastudio
  • Australia
View GitHub Profile
@JamesWilmot
JamesWilmot / solar_spec.json
Created March 29, 2022 11:48
Vega spec from Tue Mar 29 2022
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"signals": [
{
"name": "hover",
"value": null,
@JamesWilmot
JamesWilmot / solar_spec.json
Last active March 29, 2022 11:48
solar spec with legend
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"signals": [
{
"name": "hover",
"value": null,
@JamesWilmot
JamesWilmot / spec.json
Created March 29, 2022 11:44
solar spec with legend
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"signals": [
{
"name": "hover",
"value": null,
@JamesWilmot
JamesWilmot / spec.json
Created March 29, 2022 11:43
solar spec with legend
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"signals": [
{
"name": "hover",
"value": null,
@JamesWilmot
JamesWilmot / spec.json
Created March 29, 2022 10:53
Vega spec from Tue Mar 29 2022
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"data": [
{
"name": "table",
"values": [
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"data": [
{
"name": "table",
@JamesWilmot
JamesWilmot / solar_demo_spec.json
Created March 29, 2022 10:43
Solar demo vega spec
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "A basic area chart example.",
"width": 1000,
"height": 400,
"padding": 5,
"data": [
{
"name": "table",
@JamesWilmot
JamesWilmot / solar_data.json
Created March 29, 2022 10:41
solar demo data
[{"Row": 0, "Date": "26/03/22", "Time": "6:10AM", "Energy": 0.001, "Efficiency": "0.000kWh/kW", "Power": 12, "Average": "-", "Normalised": "-", "Temperature": "-", "Voltage": "-", "Energy Used": "0.000kWh", "Power Used": "-", "DateTime": 1648235400000}, {"Row": 1, "Date": "26/03/22", "Time": "6:15AM", "Energy": 0.007, "Efficiency": "0.002kWh/kW", "Power": 72, "Average": "72W", "Normalised": "0.024kW/kW", "Temperature": "-", "Voltage": "-", "Energy Used": "0.000kWh", "Power Used": "-", "DateTime": 1648235700000}, {"Row": 2, "Date": "26/03/22", "Time": "6:20AM", "Energy": 0.015, "Efficiency": "0.005kWh/kW", "Power": 96, "Average": "96W", "Normalised": "0.032kW/kW", "Temperature": "-", "Voltage": "-", "Energy Used": "0.000kWh", "Power Used": "-", "DateTime": 1648236000000}, {"Row": 3, "Date": "26/03/22", "Time": "6:25AM", "Energy": 0.023, "Efficiency": "0.008kWh/kW", "Power": 96, "Average": "96W", "Normalised": "0.032kW/kW", "Temperature": "-", "Voltage": "-", "Energy Used": "0.000kWh", "Power Used": "-", "DateT
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"autosize": "fit",
"data": [
{
"name": "fit",
"values": [
{
"x": 0.003797,
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"background": "white",
"padding": 5,
"width": 800,
"height": 400,
"style": "cell",
"data": [
{"name": "hover_store"},
{