Skip to content

Instantly share code, notes, and snippets.

View dianaow's full-sized avatar
🐱

Diana dianaow

🐱
View GitHub Profile
@dianaow
dianaow / index.html
Created September 12, 2020 04:50
Using deck.gl with Google Maps
<html>
<head>
<title>Using deck.gl with Google Maps</title>
<script src="https://d3js.org/d3.v5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script defer src="https://maps.googleapis.com/maps/api/js?key={YOUR_API_KEY}&callback=initMap"></script>
<style type="text/css">
body {
width: 100vw;
@dianaow
dianaow / index.html
Created September 12, 2020 04:37
Using deck.gl with Mapbox GL JS (Method 2): Using deck.gl layers as custom Mapbox layers
<html>
<head>
<title>Using deck.gl with Mapbox GL JS (Method 2)</title>
<script src="https://d3js.org/d3.v5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css" rel="stylesheet" />
<style type="text/css">
body {
@dianaow
dianaow / index.html
Created September 12, 2020 04:27
Using deck.gl with Mapbox GL JS (Method 1): Deck canvas overlay
<html>
<head>
<title>deck.gl ScatterplotLayer Example</title>
<script src="https://d3js.org/d3.v5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/deck.gl@latest/dist.min.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v1.12.0/mapbox-gl.css" rel="stylesheet" />
<style type="text/css">
body {
@dianaow
dianaow / .block
Last active February 13, 2020 09:44
D3 V4: Dynamically Update Force Layout
license: mit
@dianaow
dianaow / .block
Last active February 13, 2020 05:44
D3 V4: Dynamically Update Force Layout (Smooth transition)
license: mit
@dianaow
dianaow / .block
Last active February 13, 2020 01:30
D3 V4: Dynamically Update Force Layout (Non-smooth)
license: mit
@dianaow
dianaow / .block
Last active November 5, 2019 09:54
DataVizSociety challenge
license: mit
@dianaow
dianaow / .block
Created August 21, 2019 08:53
SVG Donut Chart
license: mit
@dianaow
dianaow / .block
Created July 20, 2019 13:54
Marker Animations along SVG paths V2
license: mit
@dianaow
dianaow / .block
Last active July 20, 2019 05:59
Marker animation along SVG paths
license: mit