diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index d8e125c..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/README.md b/README.md index 8692644..929407a 100644 --- a/README.md +++ b/README.md @@ -1 +1,20 @@ -# paperbuzz_viz_test \ No newline at end of file +# PaperBuzzViz +A javascript library to display metrics calculated by [PaperBuzz](http://paperbuzz.org/), which in turns is pulling data from [Crossref Event Data](https://www.eventdata.crossref.org/). + +Requires: +* [d3.js](https://d3js.org/) +* [d3-tip](https://github.com/caged/d3-tip) + +# Contributors +The origins of this code date back to [AlmViz](https://github.com/jalperin/almviz/), a similar visualization working off the PLOS ALM tool. It was started at the PLOS ALM Hackathon in 2012, with credits to PLOS and to all hackathon participants. + +Contributors include: +* [Juan Pablo Alperin](https://github.com/jalperin/) +* [Martin Fenner](https://github.com/mfenner/) +* [Bree Norlander](https://github.com/norlab/) + +# Credit +Support for this project comes from the [Public Knowledge Project](https://pkp.sfu.ca). + +Community contributions welcome. + diff --git a/css/paperbuzzviz.css b/assets/css/paperbuzzviz.css similarity index 100% rename from css/paperbuzzviz.css rename to assets/css/paperbuzzviz.css diff --git a/fonts/icomoon.eot b/assets/fonts/icomoon.eot similarity index 100% rename from fonts/icomoon.eot rename to assets/fonts/icomoon.eot diff --git a/fonts/icomoon.svg b/assets/fonts/icomoon.svg similarity index 100% rename from fonts/icomoon.svg rename to assets/fonts/icomoon.svg diff --git a/fonts/icomoon.ttf b/assets/fonts/icomoon.ttf similarity index 100% rename from fonts/icomoon.ttf rename to assets/fonts/icomoon.ttf diff --git a/fonts/icomoon.woff b/assets/fonts/icomoon.woff similarity index 100% rename from fonts/icomoon.woff rename to assets/fonts/icomoon.woff diff --git a/fonts/icomoon/Read Me.txt b/assets/fonts/icomoon/Read Me.txt similarity index 100% rename from fonts/icomoon/Read Me.txt rename to assets/fonts/icomoon/Read Me.txt diff --git a/fonts/icomoon/demo-files/demo.css b/assets/fonts/icomoon/demo-files/demo.css similarity index 100% rename from fonts/icomoon/demo-files/demo.css rename to assets/fonts/icomoon/demo-files/demo.css diff --git a/fonts/icomoon/demo-files/demo.js b/assets/fonts/icomoon/demo-files/demo.js similarity index 100% rename from fonts/icomoon/demo-files/demo.js rename to assets/fonts/icomoon/demo-files/demo.js diff --git a/fonts/icomoon/demo.html b/assets/fonts/icomoon/demo.html similarity index 100% rename from fonts/icomoon/demo.html rename to assets/fonts/icomoon/demo.html diff --git a/fonts/icomoon/fonts/icomoon.eot b/assets/fonts/icomoon/fonts/icomoon.eot similarity index 100% rename from fonts/icomoon/fonts/icomoon.eot rename to assets/fonts/icomoon/fonts/icomoon.eot diff --git a/fonts/icomoon/fonts/icomoon.svg b/assets/fonts/icomoon/fonts/icomoon.svg similarity index 100% rename from fonts/icomoon/fonts/icomoon.svg rename to assets/fonts/icomoon/fonts/icomoon.svg diff --git a/fonts/icomoon/fonts/icomoon.ttf b/assets/fonts/icomoon/fonts/icomoon.ttf similarity index 100% rename from fonts/icomoon/fonts/icomoon.ttf rename to assets/fonts/icomoon/fonts/icomoon.ttf diff --git a/fonts/icomoon/fonts/icomoon.woff b/assets/fonts/icomoon/fonts/icomoon.woff similarity index 100% rename from fonts/icomoon/fonts/icomoon.woff rename to assets/fonts/icomoon/fonts/icomoon.woff diff --git a/fonts/icomoon/selection.json b/assets/fonts/icomoon/selection.json similarity index 100% rename from fonts/icomoon/selection.json rename to assets/fonts/icomoon/selection.json diff --git a/fonts/icomoon/style.css b/assets/fonts/icomoon/style.css similarity index 100% rename from fonts/icomoon/style.css rename to assets/fonts/icomoon/style.css diff --git a/d3-tip/LICENSE b/d3-tip/LICENSE deleted file mode 100644 index 2b5c619..0000000 --- a/d3-tip/LICENSE +++ /dev/null @@ -1,8 +0,0 @@ -The MIT License (MIT) -Copyright (c) 2013 Justin Palmer - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/d3-tip/README.md b/d3-tip/README.md deleted file mode 100644 index 3556d4c..0000000 --- a/d3-tip/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# d3.tip: Tooltips for d3.js visualizations - -[![](https://github-images.s3.amazonaws.com/skitch/Screen_Shot_2013-04-08_at_11.40.10_AM-20130408-114054.png)](http://bl.ocks.org/Caged/6476579) - -* [See a live demo](http://bl.ocks.org/Caged/6476579) -* [Example code](/examples) - -### API Docs -See the [API Documentation](docs/index.md) - -### Download Latest Version -* [Development Version](https://raw.github.com/Caged/d3-tip/master/index.js) : **6kb** / **~2kb gzipped** - -### Install with NPM -``` -npm install d3-tip -``` - -### Quick Usage -```javascript -/* Initialize tooltip */ -tip = d3.tip().attr('class', 'd3-tip').html(function(d) { return d; }); - -/* Invoke the tip in the context of your visualization */ -vis.call(tip) - -vis.selectAll('rect') - .data(data) - .enter() - .append('rect') - .attr('width', function() { return x.rangeBand() }) - .attr('height', function(d) { return h - y(d) }) - .attr('y', function(d) { return y(d) }) - .attr('x', function(d, i) { return x(i) }) - .on('mouseover', tip.show) - .on('mouseout', tip.hide) -``` - -If you want basic styling, you can include `example-styles.css` using a service like -rawgithub.com. - -```html - -``` diff --git a/d3-tip/index.js b/example/d3-tip.js similarity index 100% rename from d3-tip/index.js rename to example/d3-tip.js diff --git a/index.html b/example/index.html similarity index 88% rename from index.html rename to example/index.html index 3f6ec78..d10a67a 100755 --- a/index.html +++ b/example/index.html @@ -9,7 +9,7 @@ - + - +
Built with d3.js