Permalink
Browse files

Updated d3.js

Adding zoom
  • Loading branch information...
1 parent 5015116 commit fb2940ab2605c19769c27a9596e8f3a363d9ae54 @alangrafu committed Feb 4, 2012
Showing 590 changed files with 67,222 additions and 228 deletions.
View
@@ -17,15 +17,17 @@
<title>Visual RDF</title>
</head>
<body>
-<h1><a href='.'>Visual RDF</a></h1>
<div>
- <form method="get" action="">
+<h1 style="display: inline"><a href='.'>Visual RDF</a></h1>
+ <div style="float:right">
+ <form method="get" action="" style='float:left'>
<input type='text' id='url' name='url' value='<?=$url?>' size='100'/>
<input type="submit" value="Redraw"/>
</form><div id="msg"><input type="checkbox" id="properties"/><label>Hide/Show properties</label>
<img id="waiting" src="img/waiting.gif"/>
</div>
</div>
+</div>
<div style="float: left;border-width: 1px; border-style: solid;width:100%" id='chart'></div>
<script type="text/javascript" src='js/main.js'>
</script>
View
Binary file not shown.
View
@@ -0,0 +1,26 @@
+Copyright (c) 2010, Michael Bostock
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* The name Michael Bostock may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,271 @@
+# See the README for installation instructions.
+
+NODE_PATH ?= ./node_modules
+JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
+JS_TESTER = $(NODE_PATH)/vows/bin/vows
+
+JS_FILES = \
+ d3.js \
+ d3.chart.js \
+ d3.layout.js \
+ d3.csv.js \
+ d3.geo.js \
+ d3.geom.js \
+ d3.time.js
+
+all: \
+ $(JS_FILES) \
+ $(JS_FILES:.js=.min.js) \
+ package.json
+
+# Modify this rule to build your own custom release.
+# Run `make d3.custom.min.js` to produce the minified version.
+
+d3.custom.js: \
+ d3.js \
+ d3.layout.js \
+ d3.csv.js \
+ d3.geo.js \
+ d3.geom.js \
+ d3.time.js
+
+.INTERMEDIATE d3.js: \
+ src/start.js \
+ d3.core.js \
+ d3.scale.js \
+ d3.svg.js \
+ d3.behavior.js \
+ src/end.js
+
+d3.core.js: \
+ src/compat/date.js \
+ src/compat/style.js \
+ src/core/core.js \
+ src/core/array.js \
+ src/core/this.js \
+ src/core/functor.js \
+ src/core/rebind.js \
+ src/core/ascending.js \
+ src/core/descending.js \
+ src/core/mean.js \
+ src/core/median.js \
+ src/core/min.js \
+ src/core/max.js \
+ src/core/extent.js \
+ src/core/random.js \
+ src/core/number.js \
+ src/core/sum.js \
+ src/core/quantile.js \
+ src/core/transpose.js \
+ src/core/zip.js \
+ src/core/bisect.js \
+ src/core/first.js \
+ src/core/last.js \
+ src/core/nest.js \
+ src/core/keys.js \
+ src/core/values.js \
+ src/core/entries.js \
+ src/core/permute.js \
+ src/core/merge.js \
+ src/core/split.js \
+ src/core/collapse.js \
+ src/core/range.js \
+ src/core/requote.js \
+ src/core/round.js \
+ src/core/xhr.js \
+ src/core/text.js \
+ src/core/json.js \
+ src/core/html.js \
+ src/core/xml.js \
+ src/core/ns.js \
+ src/core/dispatch.js \
+ src/core/format.js \
+ src/core/formatPrefix.js \
+ src/core/ease.js \
+ src/core/event.js \
+ src/core/interpolate.js \
+ src/core/uninterpolate.js \
+ src/core/rgb.js \
+ src/core/hsl.js \
+ src/core/selection.js \
+ src/core/selection-select.js \
+ src/core/selection-selectAll.js \
+ src/core/selection-attr.js \
+ src/core/selection-classed.js \
+ src/core/selection-style.js \
+ src/core/selection-property.js \
+ src/core/selection-text.js \
+ src/core/selection-html.js \
+ src/core/selection-append.js \
+ src/core/selection-insert.js \
+ src/core/selection-remove.js \
+ src/core/selection-data.js \
+ src/core/selection-filter.js \
+ src/core/selection-map.js \
+ src/core/selection-order.js \
+ src/core/selection-sort.js \
+ src/core/selection-on.js \
+ src/core/selection-each.js \
+ src/core/selection-call.js \
+ src/core/selection-empty.js \
+ src/core/selection-node.js \
+ src/core/selection-transition.js \
+ src/core/selection-root.js \
+ src/core/selection-enter.js \
+ src/core/selection-enter-select.js \
+ src/core/transition.js \
+ src/core/transition-select.js \
+ src/core/transition-selectAll.js \
+ src/core/transition-attr.js \
+ src/core/transition-style.js \
+ src/core/transition-text.js \
+ src/core/transition-remove.js \
+ src/core/transition-delay.js \
+ src/core/transition-duration.js \
+ src/core/transition-each.js \
+ src/core/transition-transition.js \
+ src/core/timer.js \
+ src/core/transform.js \
+ src/core/noop.js
+
+d3.scale.js: \
+ src/scale/scale.js \
+ src/scale/nice.js \
+ src/scale/linear.js \
+ src/scale/bilinear.js \
+ src/scale/polylinear.js \
+ src/scale/log.js \
+ src/scale/pow.js \
+ src/scale/sqrt.js \
+ src/scale/ordinal.js \
+ src/scale/category.js \
+ src/scale/quantile.js \
+ src/scale/quantize.js
+
+d3.svg.js: \
+ src/svg/svg.js \
+ src/svg/arc.js \
+ src/svg/line.js \
+ src/svg/line-radial.js \
+ src/svg/area.js \
+ src/svg/area-radial.js \
+ src/svg/chord.js \
+ src/svg/diagonal.js \
+ src/svg/diagonal-radial.js \
+ src/svg/mouse.js \
+ src/svg/touches.js \
+ src/svg/symbol.js \
+ src/svg/axis.js \
+ src/svg/brush.js
+
+d3.behavior.js: \
+ src/behavior/behavior.js \
+ src/behavior/drag.js \
+ src/behavior/zoom.js
+
+d3.chart.js: \
+ src/start.js \
+ src/chart/chart.js \
+ src/chart/box.js \
+ src/chart/bullet.js \
+ src/chart/horizon.js \
+ src/chart/qq.js \
+ src/end.js
+
+d3.layout.js: \
+ src/start.js \
+ src/layout/layout.js \
+ src/layout/bundle.js \
+ src/layout/chord.js \
+ src/layout/force.js \
+ src/layout/partition.js \
+ src/layout/pie.js \
+ src/layout/stack.js \
+ src/layout/histogram.js \
+ src/layout/hierarchy.js \
+ src/layout/pack.js \
+ src/layout/cluster.js \
+ src/layout/tree.js \
+ src/layout/treemap.js \
+ src/end.js
+
+d3.geo.js: \
+ src/start.js \
+ src/geo/geo.js \
+ src/geo/azimuthal.js \
+ src/geo/albers.js \
+ src/geo/bonne.js \
+ src/geo/equirectangular.js \
+ src/geo/mercator.js \
+ src/geo/type.js \
+ src/geo/path.js \
+ src/geo/bounds.js \
+ src/geo/circle.js \
+ src/geo/greatArc.js \
+ src/geo/greatCircle.js \
+ src/end.js
+
+d3.csv.js: \
+ src/start.js \
+ src/csv/csv.js \
+ src/csv/parse.js \
+ src/csv/format.js \
+ src/end.js
+
+d3.time.js: \
+ src/start.js \
+ src/time/time.js \
+ src/time/format.js \
+ src/time/format-utc.js \
+ src/time/format-iso.js \
+ src/time/range.js \
+ src/time/second.js \
+ src/time/seconds.js \
+ src/time/minute.js \
+ src/time/minutes.js \
+ src/time/hour.js \
+ src/time/hours.js \
+ src/time/day.js \
+ src/time/days.js \
+ src/time/week.js \
+ src/time/weeks.js \
+ src/time/month.js \
+ src/time/months.js \
+ src/time/year.js \
+ src/time/years.js \
+ src/time/scale.js \
+ src/time/scale-utc.js \
+ src/end.js
+
+d3.geom.js: \
+ src/start.js \
+ src/geom/geom.js \
+ src/geom/contour.js \
+ src/geom/hull.js \
+ src/geom/polygon.js \
+ src/geom/voronoi.js \
+ src/geom/delaunay.js \
+ src/geom/quadtree.js \
+ src/end.js
+
+test: all
+ @$(JS_TESTER)
+
+%.min.js: %.js Makefile
+ @rm -f $@
+ $(JS_COMPILER) < $< > $@
+
+d3.%: Makefile
+ @rm -f $@
+ cat $(filter %.js,$^) > $@
+ @chmod a-w $@
+
+install:
+ mkdir -p node_modules
+ npm install
+
+package.json: d3.js src/package.js
+ node src/package.js > $@
+
+clean:
+ rm -f d3*.js
View
@@ -0,0 +1,51 @@
+# D3
+
+**D3** is a small, free JavaScript library for manipulating HTML documents
+based on data. D3 can help you quickly visualize your data as HTML or SVG,
+handle interactivity, and incorporate smooth transitions and staged animations
+into your pages. You can use D3 as a visualization framework (like Protovis),
+or you can use it to build dynamic pages (like jQuery).
+
+### Browser Support
+
+D3 should work on any browser, with minimal requirements such as JavaScript
+and the [W3C DOM](http://www.w3.org/DOM/) API. By default D3 requires the
+[Selectors API](http://www.w3.org/TR/selectors-api/) Level 1, but you can
+preload [Sizzle](http://sizzlejs.com/) for compatibility with older browsers.
+Some of the included D3 examples use additional browser features, such as
+[SVG](http://www.w3.org/TR/SVG/) and [CSS3
+Transitions](http://www.w3.org/TR/css3-transitions/). These features are not
+required to use D3, but are useful for visualization! D3 is not a
+compatibility layer. The examples should work on Firefox, Chrome (Chromium),
+Safari (WebKit), Opera and IE9.
+
+Note: Chrome has strict permissions for reading files out of the local file
+system. Some examples use AJAX which works differently via HTTP instead of local
+files. For the best experience, load the D3 examples from your own machine via
+HTTP. Any static file web server will work; for example you can run Python's
+built-in server:
+
+ python -m SimpleHTTPServer 8888
+
+Once this is running, go to: <http://localhost:8888/examples/>
+
+### Development Setup
+
+This repository should work out of the box if you just want to create new
+visualizations using D3. On the other hand, if you want to extend D3 with new
+features, fix bugs, or run tests, you'll need to install a few more things.
+
+D3's test framework uses [Vows](http://vowsjs.org), which depends on
+[Node.js](http://nodejs.org/) and [NPM](http://npmjs.org/). If you are
+developing on Mac OS X, an easy way to install Node and NPM is using
+[Homebrew](http://mxcl.github.com/homebrew/):
+
+ brew install node
+ brew install npm
+
+Next, from the root directory of this repository, install D3's dependencies:
+
+ make install
+
+You can see the list of dependencies in package.json. NPM will install the
+packages in the node_modules directory.
Oops, something went wrong.

0 comments on commit fb2940a

Please sign in to comment.