briot / geneapro

Genealogical software based on the GenTech data model
http://briot.github.com/geneapro/
GNU General Public License v2.0
33 stars 8 forks source link

Feature Request: Use Curved Labels on Fan Chart #18

Closed darethehair closed 8 years ago

darethehair commented 10 years ago

Not sure if the graphics library being used makes this doable or not, but 'curved' labels on the Fan Chart display would be very nice, and support more text at the same time.

briot commented 10 years ago

Not sure if the graphics library being used makes this doable or not, but 'curved' labels on the Fan Chart display would be very nice, and support more text at the same time.

Not supported in HTML5 unfortunately

darethehair commented 10 years ago

Although I have a fair amount of experience with HTML5/Canvas myself (I wrote an astronomy app, and it is currently 10K+ lines already -- ack!), it does look like 'curved text' is possible (though not necessarily trivial), though I have never done it myself:

http://www.html5canvastutorials.com/labs/html5-canvas-text-along-arc-path/

briot commented 10 years ago

Although I have a fair amount of experience with HTML5/Canvas myself (I wrote an astronomy app, and it is currently 10K+ lines already -- ack!), it does look like 'curved text' is possible (though not necessarily trivial):

No, that's a hack (and in fact if you look at the geneaprove javascript you will find traces of it from past experiments), but it doesn't look natural at all. The spacing between characters is inconsistent and ugly, for instance.

HTML5 will get this eventually, but it isn't implemented in today's browsers I believe.

briot commented 8 years ago

Now that fanchart is done via SVG, I am indeed using curved text.