Skip to main content

toscawidgets2 wrapper for d3 (data-driven documents)

Project description

tw2.d3 is a toscawidgets2 (tw2) wrapper for d3.

Live Demo

Peep the live demonstration.

Description

toscawidgets2 (tw2) aims to be a practical and useful widgets framework that helps people build interactive websites with compelling features, faster and easier. Widgets are re-usable web components that can include a template, server-side code and JavaScripts/CSS resources. The library aims to be: flexible, reliable, documented, performant, and as simple as possible.

d3 allows you to bind arbitrary data to a Document Object Model (DOM), and then apply data-driven transformations to the document. As a trivial example, you can use d3 to generate a basic HTML table from an array of numbers. Or, use the same data to create an interactive SVG bar chart with smooth transitions and interaction. It is the successor of protovis.

This module, tw2.d3, provides toscawidgets2 (tw2) widgets that render d3 data visualizations.

Sampling tw2.d3 in the WidgetBrowser

The best way to scope out tw2.d3 is to load its widgets in the tw2.devtools WidgetBrowser. To see the source code that configures them, check out tw2.d3/tw2/d3/samples.py

To give it a try you’ll need git, mercurial, python, and virtualenv. Run:

$ git clone git://github.com/ralphbean/tw2.d3.git
$ cd tw2.d3
$ mkvirtualenv tw2.d3
(tw2.d3) $ pip install tw2.devtools
(tw2.d3) $ python setup.py develop
(tw2.d3) $ paster tw2.browser

…and browse to http://localhost:8000/ to check it out.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tw2.d3-0.0.1.tar.gz (103.6 kB view details)

Uploaded Source

File details

Details for the file tw2.d3-0.0.1.tar.gz.

File metadata

  • Download URL: tw2.d3-0.0.1.tar.gz
  • Upload date:
  • Size: 103.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tw2.d3-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7983634e0c97c4c001b0f2c724aa762813b1381853abf29d63d579ada4409fa5
MD5 ef65f66615ba571d9b257c1197b7fce6
BLAKE2b-256 a55e79de792414bdda74559197f2dc1278e3daacf0685e569057ca905e0ee97d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page