Skip to content

Instantly share code, notes, and snippets.

View git-ashish's full-sized avatar
🏠
Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

🏠
Freelancing – Open to exciting opportunities
View GitHub Profile
@git-ashish
git-ashish / .block
Created May 8, 2019 06:56 — forked from mbostock/.block
DOM-to-Canvas using D3
license: gpl-3.0
@git-ashish
git-ashish / .block
Created May 7, 2019 15:03 — forked from mrcslws/.block
Pan & Zoom Axes
license: gpl-3.0
@git-ashish
git-ashish / .block
Created May 6, 2019 07:20 — forked from mbostock/.block
Line with Missing Data
license: gpl-3.0
@git-ashish
git-ashish / data.tsv
Created May 5, 2019 14:01 — forked from rpgove/data.tsv
Force-Directed Scatterplot
sepalLength sepalWidth petalLength petalWidth species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
@git-ashish
git-ashish / .block
Created May 3, 2019 07:49 — forked from mbostock/.block
Chained Transitions
license: gpl-3.0
@git-ashish
git-ashish / .gitignore
Created April 30, 2019 09:51 — forked from GerHobbelt/.gitignore
d3.js: force layout; click to group/bundle nodes
# Editor backup files
*.bak
*~
@git-ashish
git-ashish / .block
Created April 23, 2019 15:20 — forked from mbostock/.block
Star Map
license: gpl-3.0
height: 960
@git-ashish
git-ashish / README.md
Created April 23, 2019 15:19 — forked from nitaku/README.md
Sky

A map of the sky that uses an azimuthal equidistant projection with star data. Longitudes and latitudes for the geo projection are obtained from declination and right ascension respectively (longitude is also inverted, because, unlike the earth globe, the celestial sphere is seen from the inside).

The boreal (northern) sky is shown at left, while the austral (southern) at right. Because right ascension is given in hours, both maps are divided in 24 slices. A circle is shown every 10 degrees of declination.

Star size indicates magnitude. Bigger circles depict brighter stars.

@git-ashish
git-ashish / index.html
Created April 23, 2019 15:19
.Astronomy Star Chart
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<style>
body {
background: black;
}
@git-ashish
git-ashish / README.md
Created April 22, 2019 13:12 — forked from skokenes/README.md
Scatterplot with Lasso

This example demonstrates incorporating the d3 lasso plugin with a d3 scatterplot. Clicking and dragging on the plot area will produce a lasso that can be used to hover or loop around the dots in the scatterplot. Functions are then executed based on whether dots were selected or not.

The lasso plugin can be found here.