Skip to content

d3 v4 table sortable on strings, numerical and time values

Notifications You must be signed in to change notification settings

shanegibney/d3-v4-sortable-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

D3 v4 Sortable Table

Adapted from Mingsong Hu's Block D3.js Sortable & Responsive Table

gh-pages demo

Also on jsFiddle

This table is created using a JSON object. Some table columns have string values and the others have numerical values. The string values need to be sorted alphabetically and the others numerically.

The alphabetical columns are hard coded for alphabetical sorting.

    if (d == "name" || d == "club" || d == "category") { //these keys sort alphabetically

screen shot 2017-08-12 at 15 41 09

About

d3 v4 table sortable on strings, numerical and time values

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages