Scrolling DataTable

Datatables can be made to scroll along the x and y axes. The DataTableScroll plugin enables this functionality.

The width and height attributes trigger scrolling along the respective axis, width to make the table scroll along the x axis and height along the y axis. Setting both width and height make the table both x and y scrollable.

Note: Scrolling is not currently supported on the Android WebKit browser.

xy-Scrolling Datatable

The following is a standard xy-scrolling datatable. The width and height are passed into the plugin.

ANSI
State
Total Population
Land Area
Pop/Square Mile
00000
UNITED STATES
307006550
3537438.44
79.6
01000
ALABAMA
4708708
50744
87.6
02000
ALASKA
698473
571951.26
1.1
04000
ARIZONA
6595778
113634.57
45.2
05000
ARKANSAS
2889450
52068.17
51.3
06000
CALIFORNIA
36961664
155959.34
217.2
08000
COLORADO
5024748
103717.53
41.5
09000
CONNECTICUT
3518288
4844.8
702.9
10000
DELAWARE
885122
1953.56
401
11000
DISTRICT OF COLUMBIA
599657
61.4
9378
12000
FLORIDA
18537969
53926.82
296.4
13000
GEORGIA
9829211
57906.14
141.4
15000
HAWAII
1295178
6422.62
188.6
16000
IDAHO
1545801
82747.21
15.6
17000
ILLINOIS
12910409
55583.58
223.4
18000
INDIANA
6423113
35866.9
169.5
19000
IOWA
3007856
55869.36
52.4
20000
KANSAS
2818747
81814.88
32.9
21000
KENTUCKY
4314113
39728.18
101.7
22000
LOUISIANA
4492076
43561.85
102.6
23000
MAINE
1318301
30861.55
41.3
24000
MARYLAND
5699478
9773.82
541.9
25000
MASSACHUSETTS
6593587
7840.02
809.8
26000
MICHIGAN
9969727
56803.82
175
27000
MINNESOTA
5266214
79610.08
61.8
28000
MISSISSIPPI
2951996
46906.96
60.6
29000
MISSOURI
5987580
68885.93
81.2
30000
MONTANA
974989
145552.43
6.2
31000
NEBRASKA
1796619
76872.41
22.3
32000
NEVADA
2643085
109825.99
18.2
33000
NEW HAMPSHIRE
1324575
8968.1
137.8
34000
NEW JERSEY
8707739
7417.34
1134.5
35000
NEW MEXICO
2009671
121355.53
15
36000
NEW YORK
19541453
47213.79
401.9
37000
NORTH CAROLINA
9380884
48710.88
165.2
38000
NORTH DAKOTA
646844
68975.93
9.3
39000
OHIO
11542645
40948.38
277.3
40000
OKLAHOMA
3687050
68667.06
50.3
41000
OREGON
3825657
95996.79
35.6
42000
PENNSYLVANIA
12604767
44816.61
274
44000
RHODE ISLAND
1053209
1044.93
1003.2
45000
SOUTH CAROLINA
4561242
30109.47
133.2
46000
SOUTH DAKOTA
812383
75884.64
9.9
47000
TENNESSEE
6296254
41217.12
138
48000
TEXAS
24782302
261797.12
79.6
49000
UTAH
2784572
82143.65
27.2
50000
VERMONT
621760
9249.56
65.8
51000
VIRGINIA
7882590
39594.07
178.8
53000
WASHINGTON
6664195
66544.06
88.6
54000
WEST VIRGINIA
1819777
24077.73
75.1
55000
WISCONSIN
5654774
54310.1
98.8
56000
WYOMING
544270
97100.4
5.1

x-Scrolling Datatable

The following is a standard x-scrolling datatable. Only the width is passed into the plugin. The height is automatically set to the entire table height. For this table, a subset of the census data is used to keep the vertical size manageable.

ANSI
State
Total Population
Land Area
Pop/Square Mile
00000
UNITED STATES
307006550
3537438.44
79.6
01000
ALABAMA
4708708
50744
87.6
02000
ALASKA
698473
571951.26
1.1
04000
ARIZONA
6595778
113634.57
45.2
05000
ARKANSAS
2889450
52068.17
51.3
06000
CALIFORNIA
36961664
155959.34
217.2
08000
COLORADO
5024748
103717.53
41.5

y-Scrolling Datatable

The following is a standard y-scrolling datatable. Only the height is passed into the plugin. The width is automatically set to width of the container. For this table, a columnset with only two columns is used to keep the horizontal size manageable.

State
Total Population
UNITED STATES
307006550
ALABAMA
4708708
ALASKA
698473
ARIZONA
6595778
ARKANSAS
2889450
CALIFORNIA
36961664
COLORADO
5024748
CONNECTICUT
3518288
DELAWARE
885122
DISTRICT OF COLUMBIA
599657
FLORIDA
18537969
GEORGIA
9829211
HAWAII
1295178
IDAHO
1545801
ILLINOIS
12910409
INDIANA
6423113
IOWA
3007856
KANSAS
2818747
KENTUCKY
4314113
LOUISIANA
4492076
MAINE
1318301
MARYLAND
5699478
MASSACHUSETTS
6593587
MICHIGAN
9969727
MINNESOTA
5266214
MISSISSIPPI
2951996
MISSOURI
5987580
MONTANA
974989
NEBRASKA
1796619
NEVADA
2643085
NEW HAMPSHIRE
1324575
NEW JERSEY
8707739
NEW MEXICO
2009671
NEW YORK
19541453
NORTH CAROLINA
9380884
NORTH DAKOTA
646844
OHIO
11542645
OKLAHOMA
3687050
OREGON
3825657
PENNSYLVANIA
12604767
RHODE ISLAND
1053209
SOUTH CAROLINA
4561242
SOUTH DAKOTA
812383
TENNESSEE
6296254
TEXAS
24782302
UTAH
2784572
VERMONT
621760
VIRGINIA
7882590
WASHINGTON
6664195
WEST VIRGINIA
1819777
WISCONSIN
5654774
WYOMING
544270