Skip to content

Instantly share code, notes, and snippets.

View ashleydavis's full-sized avatar

Ashley Davis ashleydavis

View GitHub Profile
@ashleydavis
ashleydavis / example-vega-lite-chart-with-independent-y-axis.json
Created August 21, 2017 05:11
Example vega-lite chart with independent y axis'
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"layer": [
{
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"mark": "line",
"encoding": {
"x": {
@ashleydavis
ashleydavis / example-vega-lite-chart-with-series-that-have-different-scales.vl.json
Last active March 22, 2019 14:12
An example vega lite chart with two series that have two different scales. This shows a problem that the scales aren't independent.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"layer": [
{
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"mark": "line",
"encoding": {
"x": {
@ashleydavis
ashleydavis / example-vega-lite-chart-with-second-series-on-the-right.vl.json
Created August 11, 2017 01:33
Example vega-lite chart with two time series and multiple layers - the second Y axis is moved to the right hand side of the chart.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"layer": [
{
"mark": "line",
"encoding": {
"x": {
@ashleydavis
ashleydavis / example-vega-lite-chart.json
Created August 10, 2017 10:08
Example vega-lite chart with two time series and multiple layers.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "https://vega.github.io/vega-lite/data/seattle-weather.csv"
},
"layer": [
{
"mark": "line",
"encoding": {
"x": {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
/// <summary>
/// A simple free camera to be added to a Unity game object.
///
/// Keys: