A d3.js solar system simulator
JavaScript Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5319988 May 15, 2018
Failed to load latest commit information.
data files reordered May 4, 2017
images new Jupiter May 15, 2018
lib new three.js version Dec 27, 2017
src New versin o three.js Aug 15, 2017
.gitignore First commit Aug 19, 2015
.jshintrc First commit Aug 19, 2015
LICENSE Initial commit Aug 8, 2015
README.md README.md extended Sep 9, 2016
make.js New versin o three.js Aug 15, 2017
orrery.css new dtpick-sprite Sep 9, 2017
orrery.js New versin o three.js Aug 15, 2017
orrery.min.js New versin o three.js Aug 15, 2017
orrery.tar.gz files reordered May 4, 2017
package.json d3 update Dec 26, 2015
style.css refined gm Sep 12, 2015
viewer.html Date setting with datetimepicker Sep 8, 2016



An interactive Solar System simulator (a.k.a. Orrery) implemented with D3.js and three.js. Shows planets with images and trajectories, as well as small bodies as dots. Optional scacecraft with images and trajectories.


//Default configuration (in so far it is implemented)
var settings = {
  width: 0,            // Default width; 0 = full width of parent
  height: 0,           // Default height; 0 = full height of parent
  date: true,          // Show date on map with date picker on click
  dateformat: "%Y-%m-%d",  // Date format (see [d3.js time format](https://github.com/d3/d3-time-format/blob/master/README.md#timeFormat)
  container: "orrery-map",    // ID of parent element, e.g. div
  datapath: "data/",   // Path/URL to data files, empty = subfolder 'data'
  imagepath: "images/",   // Path/URL to image files, empty = subfolder 'images'

// Diplay todays positions with above configuration
Orrery.display(settings, new Date());


JSON data files

  • planets.json All the official planets, plus Pluto, with orbital elements from JPL Solar System Dynamics
  • sbo.json Small bodies throughout the Solar System, including Asteroids and Transneptunian objects down to 12th absolute magnitude, orbital elemnts from the IAU Minor Planet Center
  • probes.json Spacecraft elements, mostly from JPL Horizons

Thanks to Mike Bostock for D3.js and Project Pluto for the Kepler equation algoritm

Released under BSD License