UI: add pagination jquery plugin able to handle known/unknown data totals; Scatterplot: use that plugin for pagination, add class for highlighted data points

This commit is contained in:
Carl Eberhard
2014-02-14 10:17:56 -05:00
parent 536d39a98d
commit 5d01f6393c
9 changed files with 383 additions and 206 deletions
@@ -237,6 +237,7 @@ function scatterplot( renderTo, config, data ){
datapoints.on( 'mouseover', function( d, i ){
var datapoint = d3.select( this );
datapoint
.classed( 'highlight', true )
.style( 'fill', 'red' )
.style( 'fill-opacity', 1 );
@@ -273,6 +274,7 @@ function scatterplot( renderTo, config, data ){
datapoints.on( 'mouseout', function(){
// return the point to normal, remove hoverlines and info box
d3.select( this )
.classed( 'highlight', false )
.style( 'fill', 'black' )
.style( 'fill-opacity', 0.2 );
content.selectAll( '.hoverline' ).remove();