Skip to content

Instantly share code, notes, and snippets.

@kkdd
kkdd / README.md
Last active March 24, 2024 03:28
deck.gl trips-layer animation: reading trips files dropped-onto

getting trips-json files

$ cat trips.json 
[{"vendor":0,"path":[[139.8007914,35.5144044],[139.9108676,35.4396142]],"timestamps":[0,600]},{"vendor":1,"path":[[139.9108139,35.439529],[139.8008987,35.5140027]],"timestamps":[0,600]}]
$ wget https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/trips/trips-v7.json
@kkdd
kkdd / mapboxgl.marker.html
Last active October 11, 2022 22:14
Mapbox GL JS で矢尻形マーカー(mapboxgl.Marker 利用) ref: https://qiita.com/kkdd/items/0eb24549d10e875c1fa5
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@kkdd
kkdd / README.md
Last active September 7, 2022 14:05
d3.js_lines_multiple (with tooltip)
@kkdd
kkdd / README.md
Last active September 5, 2022 13:13
Drawing cumulative density function
@kkdd
kkdd / README.md
Last active July 4, 2022 22:18
r-tree.js and draggable demonstration
@kkdd
kkdd / README.md
Last active May 25, 2022 06:18
d3.js: Zoomable scatterplot with handling window-resize
@kkdd
kkdd / index.html
Last active May 19, 2022 06:44
Leaflet map
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.8.0/dist/leaflet.js"></script>
<style>
html, body {height: 100%; margin: 0; padding: 0;}
#map {height: 100%;}
</style>
</head>
@kkdd
kkdd / README.md
Last active May 17, 2022 06:02
d3.js chart: handling window-resize

Run this example in a full screen, or click "Open".

data

$ curl https://raw.githubusercontent.com/holtzy/data_to_viz/master/Example_dataset/3_TwoNumOrdered_comma.csv | head -n4
date,value
2013-04-28,135.98
2013-04-29,147.49
@kkdd
kkdd / README.md
Last active May 11, 2022 10:04
Leaflet map: reading GeoJSON files dropped-onto
@kkdd
kkdd / README.md
Last active April 29, 2022 08:58
regl + apache-arrow: fast WebGL scatter plot