Do you know of any sample code showing how to draw a mind map using canvas?
I've se开发者_开发问答arched on the web for a code sample for creating a mind map using <canvas>
. I've found that the infoVis toolkit samples use direct json for their mind map. I have a pre-constructed json and it will be a problem to convert it to the required format (id, children etc).
What I need is a way to convert a hierarchy of items into a map like visualization. Any help/ hint is appreciated
See if d3.js
's sample gallery has anything that might help you:
http://mbostock.github.com/d3/ex/
Mindmap Using jQuery. Check it here.
http://www.jqueryrain.com/2013/04/mindmup-mapjs-zero-friction-mind-map-canvas-with-jquery/
精彩评论