Skip to content

Instantly share code, notes, and snippets.

View KoGor's full-sized avatar

KoGor

View GitHub Profile
@KoGor
KoGor / Accidents.csv
Last active February 21, 2024 17:48
Russia choropleth example
Rtype RegionCode RegionName CarAccidents Deaths
federation Russian Federation Российская Федерация 203597 27991
fregion RU-BEL Белгородская область 1369 285
fregion RU-BRY Брянская область 1449 238
fregion RU-VLA Владимирская область 3157 450
fregion RU-VOR Воронежская область 3920 615
fregion RU-IVA Ивановская область 2018 187
fregion RU-KLU Калужская область 2140 368
fregion RU-KOS Костромская область 873 80
fregion RU-KRS Курская область 2060 307
@KoGor
KoGor / README.md
Last active November 7, 2023 19:30
Earth animation

Анимация Земли. Подробнее о создании можно почитать на Хабрахабре.

This projected is licensed under the terms of the MIT license.

@KoGor
KoGor / README.md
Last active November 7, 2023 19:30
Earth globe

Интерактивный глобус с возможностью вращения мышкой и центрированием на выбранную страну. Подробнее о создании можно почитать на Хабрахабре.

This projected is licensed under the terms of the MIT license.

@KoGor
KoGor / README.md
Last active August 20, 2023 20:26
Marker animation along SVG <path> element with D3.js III

Marker animation along SVG "path" element with D3.js: animating "path" and marker movement synchronously, marker rotate according to tangent line to path.

@KoGor
KoGor / README.md
Last active November 24, 2021 10:31
Globe to Map IV

Globe rotating all the time, click on canvas to unreel/reel. In this example transition is based on interpolation between two projections and map always cut along antimeridian, it creates effect of unreelling/reelling. You can see some artefacts during reeling back to globe, I guess it is because of clipping or timings overlapping, if you have any ideas how to fix it, let me know.

For other variations of transition from Orthographic to Equirectangular and back check these examples:

This projected is licensed under the terms of the MIT license.

@KoGor
KoGor / README.md
Created December 28, 2013 19:08
Marker animation along SVG <path> element with D3.js II

Marker animation along SVG "path" element with D3.js: animating "path" and marker movement synchronously.

@KoGor
KoGor / License.txt
Created August 14, 2014 14:15
Leaflet: animated marker
The MIT License (MIT)
Copyright (c) 2014 [KoGor](https://github.com/KoGor)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@KoGor
KoGor / .block
Last active March 27, 2018 00:57
Double Radial Opposing Stacked Bar Chart
license: gpl-3.0
height: 800
@KoGor
KoGor / .block
Last active March 27, 2018 00:54
Radial Opposing Stacked Bar Chart II
license: gpl-3.0
height: 800
@KoGor
KoGor / README.md
Last active March 8, 2018 07:54
Marker animation along SVG <path> element with D3.js