ofrohn / d3-celestial

A star map with d3.js
BSD 3-Clause "New" or "Revised" License
641 stars 181 forks source link

Horizon Headings #64

Open Dave1680 opened 4 years ago

Dave1680 commented 4 years ago

Is it possible to add RA labels around an "airy" projection, for example 1h, 2h, etc ?

RA-headings

Or is there a way to do this now.

ofrohn commented 4 years ago

You can add RA labels along a specific declination line. The config: { lines.graticule.lon: { pos: [30, -30], fill: "#eee", font: "10px 'Lucida Sans Unicode', Helvetica, Arial, sans-serif" }}
adds RA values at 30 and -30 degrees decl. with color 'fill' and the specified font. See documentation for further details