Skip to content

Instantly share code, notes, and snippets.

View n1n9-jp's full-sized avatar

Yuichi Yazaki n1n9-jp

View GitHub Profile
@n1n9-jp
n1n9-jp / README.md
Last active September 26, 2021 07:53
Natural Earth Border Issue
  • Shapefile that is distributed from NaturalEarth( http://www.naturalearthdata.com/ ) have the data that (I am not sure all of the files but) the Northern Territories and Takeshima are not the Japanese territory. It is different from the Japanese government claims( http://www.mofa.go.jp/region/europe/russia/territory/index.html http://www.mofa.go.jp/region/asia-paci/takeshima/index.html ). The author of D3.js is using this file, and the people who do not know how to convert Shapefile to Geo/Topojson use his file as it is, it would imperceptibly become the de facto standard. This is an expressed concern that it could be causing the common sense of the world.

  • Natural Earthで配布されているShapefileは(すべてのファイルを確認していないですが)北方領土や竹島が、日本政府の主張( http://www.mofa.go.jp/mofaj/area/hoppo/index.html http://www.mofa.go.jp/mofaj/area/takeshima/index.html )と異なる、日本の領土ではないようなデータになっています。D3.jsの作者がこのファイルを使用していて、ShapefileをGeo/Topojsonへ変換する方法を知らない人たちは彼のファイルをそのまま使うので、いつの間にかこのような領土の表示が事実上の標準、常識になってしまうことに懸念を表明します。

@n1n9-jp
n1n9-jp / README.md
Last active August 29, 2015 14:11
Toggle Navigation(reusable way)
  • I wrote an simple article about 'reusable' way of D3.js as a part of Advent Calendar called "Data Visualization Advent Calendar 2014." This code is a example of an implementation of a toggle navigation.

  • Data Visualization Advent Calendar 2014の記事として、D3.jsのreusableについてかんたんに紹介記事を書きました。これはreusableなコードの例として、トグルナビゲーションを実装してみました。

@n1n9-jp
n1n9-jp / index.ipynb
Created June 14, 2015 04:37
convert csv to node-link data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We couldn’t find that file to show.
@n1n9-jp
n1n9-jp / README.md
Last active May 10, 2023 08:47
responsive layout with D3.js

responsive layout with D3.js / D3.jsでレスポンシブ・レイアウトを実現する

別ウインドウで開、挙動を確認ください。 Please check how it works to open new window with raw files.

解説記事 http://visualizing.jp/responsive-d3/

@n1n9-jp
n1n9-jp / file0.txt
Last active February 2, 2016 01:43
WKT形式をGeoJSON形式に変換する ref: http://qiita.com/yuichy/items/14f2cb7d4ed113eca727
<script src="terraformer.min.js"></script>
<script src="terraformer-wkt-parser.min.js"></script>
@n1n9-jp
n1n9-jp / gist:e92192d0f9d1c301713b
Last active February 21, 2016 05:41
make radio buttons and labels dynamically.
var menuID = 0;
var menuItems = d3.select("#navBlock").append('form').selectAll("span")
.data( dataArray )
.enter().append("span").attr("class", "navColumn");
menuItems.append("input")
.attr({
type: "radio",
class: "nav",
@n1n9-jp
n1n9-jp / .block
Last active May 28, 2017 10:41
ヨーグルトの栄養成分比較
license: mit
@n1n9-jp
n1n9-jp / README.md
Last active July 7, 2016 23:08
Japan
@n1n9-jp
n1n9-jp / .block
Last active April 11, 2017 03:59
都道府県別 人口の推移
license: mit