summaryrefslogtreecommitdiff
path: root/visualize
diff options
context:
space:
mode:
Diffstat (limited to 'visualize')
-rw-r--r--visualize/static/Makefile23
-rw-r--r--visualize/static/visualize.js20
2 files changed, 43 insertions, 0 deletions
diff --git a/visualize/static/Makefile b/visualize/static/Makefile
new file mode 100644
index 00000000..9a7f9828
--- /dev/null
+++ b/visualize/static/Makefile
@@ -0,0 +1,23 @@
+include ../../common.mk
+
+d3-ver=3.0.6
+targets = d3-$(d3-ver)
+
+target-files=$(addsuffix .js,$(targets)) $(addsuffix .min.js,$(targets))
+all: $(target-files)
+clean:
+ rm -f -- $(target-files)
+
+d3-$(d3-ver).js: %: \
+ $(www)/https/raw.github.com/mbostock/d3/v$(d3-ver)/d3.js \
+ $(www)/https/raw.github.com/mbostock/d3/v$(d3-ver)/LICENSE
+ { \
+ echo '/*! $@ - Data Driven Documents' && \
+ echo ' * Version: $(d3-ver)' && \
+ echo ' * Homepage: http://mbostock.github.com/d3/' && \
+ echo ' * Copyright: 2012, Michael Bostock' && \
+ echo ' * Licence: 3-Clause BSD' && \
+ echo ' *' && \
+ sed 's/.*/ * &/' $(<D)/LICENSE && \
+ echo ' */' && \
+ cat $< ;} > $@
diff --git a/visualize/static/visualize.js b/visualize/static/visualize.js
index 5004fe6c..6f254f29 100644
--- a/visualize/static/visualize.js
+++ b/visualize/static/visualize.js
@@ -1,3 +1,23 @@
+/* archweb.js
+ * Homepage: https://projects.archlinux.org/archweb.git/
+ * Copyright: 2011-2013 The Archweb Team (Dan McGee)
+ * License: GPLv2
+ *
+ * This file is part of Archweb.
+ *
+ * Archweb is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Archweb is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Archweb. If not, see <http://www.gnu.org/licenses/>.
+ */
+
function packages_treemap(chart_id, orderings, default_order) {
var jq_div = jQuery(chart_id),
color = d3.scale.category20();