Git Product home page Git Product logo

Comments (3)

vkaravir avatar vkaravir commented on September 24, 2024 1

This should now be fixed. Let me know if you still have the issue.

from bib-publication-list.

robstewart57 avatar robstewart57 commented on September 24, 2024 1

@vkaravir Great, thanks!

Indeed, e4b9c25 fixes the visualisation on the page:

http://www.macs.hw.ac.uk/~dsg/wp/?page_id=1278

from bib-publication-list.

ihnorton avatar ihnorton commented on September 24, 2024

The solid bars were a very nice change, thank you! One thing I added was displaying the total count below year:

image

It's a little hacky, but here's the diff in case it is of interest:

diff --git a/bib-publication-list.css b/bib-publication-list.css
index dbc3e3e..d5958d9 100755
--- a/bib-publication-list.css
+++ b/bib-publication-list.css
@@ -1,9 +1,9 @@
 span.undefined { color:red; }
 .bibtable {width:100%; margin: 0 auto; clear: both;}
-.bibchart { width: 100%; height: 100px; margin-bottom: 20px;}
+.bibchart { width: 100%; height: 100px; margin-bottom: 40px;}
 .clear {clear:both;}
 .year { position: relative; height: 100%; border-bottom: 1px solid black; display: inline-block;}
-.yearlabel { position: absolute; bottom: -20px; text-align: center; width: 100%; font-size: smaller;}
+.yearlabel { position: absolute; bottom: -40px; text-align: center; width: 100%; font-size: smaller;}
 .pub { border: 1px solid white; background-color: #eee; }
 .inproceedings { background-color: #ccf; }
 .article { background-color: #beb; }
diff --git a/src/bib-publication-list.js b/src/bib-publication-list.js
index a1d59e1..b6c2ef0 100755
--- a/src/bib-publication-list.js
+++ b/src/bib-publication-list.js
@@ -394,7 +394,7 @@ var bibtexify = (function($) {
             }
             str += itemStr;

-            return str + '<div class="yearlabel">' + item.year + '</div></div>';
+            return str + '<div class="yearlabel">' + item.year + ' (' + item.count + ')' + '</div></div>';
         };
         var statsHtml = '<style>' + styleStr + '</style>';
         yearstats.forEach(function(item) {

from bib-publication-list.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.