Modules
- tw2.bootstrap.forms
- tw2.captcha
- tw2.core
- tw2.d3
- tw2.dynforms
- tw2.dyntext
- tw2.etc
- tw2.excanvas
- tw2.forms
- tw2.jit
- tw2.jqplugins.chosen
- tw2.jqplugins.cookies
- tw2.jqplugins.dynatree
- tw2.jqplugins.fg
- tw2.jqplugins.flot
- tw2.jqplugins.fullcalendar
- tw2.jqplugins.jqgrid
- tw2.jqplugins.jqplot
- tw2.jqplugins.portlets
- tw2.jqplugins.select2
- tw2.jqplugins.ui
- tw2.jquery
- tw2.lesscss
- tw2.polymaps
- tw2.protovis.conventional
- tw2.protovis.core
- tw2.protovis.custom
- tw2.protovis.hierarchies
- tw2.qrcode
- tw2.rrd
- tw2.slideymenu
- tw2.sqla
- tw2.tinymce
- tw2.tipster
- tw2.util.html5shim
- tw2.wysihtml5
tw2.protovis.hierarchies
A bunch of cool widgets from protovis (under the 'custom' heading in their examples page).
Get this source from http://github.com/ralphbean/tw2.protovis.custom
Protovis itself can be found here: http://vis.stanford.edu/protovis/
NodeLinkTree
- pvcls
- None
- p_width
- The width of the panel, in pixel.
- p_height
- The height of the panel, in pixels.
- p_bottom
- The bottom margin, in pixels.
- p_top
- The top margin, in pixels.
- p_left
- The left margin, in pixels.
- p_right
- The right margin, in pixels.
- init_js
- JSSymbol
- p_orient
- orientation parameter
- p_breadth
- None
- p_depth
- None
class DemoNodeLinkTree(NodeLinkTree):
p_height = 500
p_width = 500
p_orient = 'radial'
p_breadth = 29
p_depth = 100
def prepare(self):
self.p_data = build_tree() # of tw2.core
super(DemoNodeLinkTree, self).prepare()
<%namespace name="tw" module="tw2.core.mako_util"/>
<div ${tw.attrs(attrs=w.attrs)}>
<script type="text/javascript+protovis">
${w.init_js.src}
var vis = new pv.Panel()
% for f in w._pv_prop_funcs:
${f.src}
% endfor
% for a in w._adds:
${a.display()}
% endfor
vis.render();
</script>
</div>
CirclePackingWidget
- pvcls
- None
- p_width
- The width of the panel, in pixel.
- p_height
- The height of the panel, in pixels.
- p_bottom
- The bottom margin, in pixels.
- p_top
- The top margin, in pixels.
- p_left
- The left margin, in pixels.
- p_right
- The right margin, in pixels.
- init_js
- JSSymbol
- root_title
- Root title
class DemoCirclePackingWidget(CirclePackingWidget):
p_height = 500
p_width = 500
root_title = "filesizes in tw2.core"
p_data = build_tree() # Builds a tree of the filesizes of tw2.core
<%namespace name="tw" module="tw2.core.mako_util"/>
<div ${tw.attrs(attrs=w.attrs)}>
<script type="text/javascript+protovis">
${w.init_js.src}
var vis = new pv.Panel()
% for f in w._pv_prop_funcs:
${f.src}
% endfor
% for a in w._adds:
${a.display()}
% endfor
vis.render();
</script>
</div>