-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lineup-v4' into clehner/203_lineupv4_remove_internal_fr…
…om_renderers
- Loading branch information
Showing
25 changed files
with
289 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8" /> | ||
<title>LineUp Builder Test</title> | ||
|
||
<link href="./LineUpJS.css" rel="stylesheet" /> | ||
<link href="./demo.css" rel="stylesheet" /> | ||
</head> | ||
<body> | ||
<script src="./LineUpJS.js"></script> | ||
|
||
<script> | ||
window.onload = function() { | ||
const data = [ | ||
{ | ||
a: 1, | ||
b: { | ||
b: 2, | ||
b0: 3, | ||
b0b: 4, | ||
arr: [5] | ||
} | ||
}, | ||
{ | ||
a: 1, | ||
b: { | ||
b: 2, | ||
b0: 3, | ||
b0b: 4, | ||
arr: [5] | ||
} | ||
} | ||
]; | ||
|
||
const builder = LineUpJS.builder(data); | ||
|
||
builder | ||
.column( | ||
LineUpJS.buildNumberColumn("a") | ||
.label("A simple accessor") | ||
.width(250) | ||
) | ||
.column( | ||
LineUpJS.buildNumberColumn("b.b") | ||
.label("B complex accessor 1") | ||
.width(250) | ||
) | ||
.column( | ||
LineUpJS.buildNumberColumn("b.b0") | ||
.label("B complex accessor 2") | ||
.width(250) | ||
) | ||
.column( | ||
LineUpJS.buildNumberColumn("b.b0b") | ||
.label("B complex accessor 3") | ||
.width(250) | ||
) | ||
.column( | ||
LineUpJS.buildNumberColumn("b.arr[0]") | ||
.label("B complex accessor 4") | ||
.width(250) | ||
); | ||
|
||
builder.build(document.body); | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>LineUp Builder Test</title> | ||
|
||
<link href="./LineUpJS.css" rel="stylesheet"> | ||
<link href="./demo.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<script src="https://d3js.org/d3.v4.min.js"></script> | ||
<script src="./LineUpJS.js"></script> | ||
|
||
<script> | ||
window.onload = function () { | ||
const arr = []; | ||
const cats = ['c1', 'c2', 'c3']; | ||
for (let i = 0; i < 100; ++i) { | ||
arr.push({ | ||
s: 'Row ' + i, | ||
a: Math.random() * 10, | ||
cat: cats[Math.floor(Math.random() * 3)], | ||
d: new Date(Date.now() - Math.floor(Math.random() * 1000000000000)) | ||
}); | ||
} | ||
const builder = LineUpJS.builder(arr); | ||
|
||
builder | ||
.deriveColumns() | ||
.column(LineUpJS.buildStringColumn('s').summary('Test')) | ||
.column(LineUpJS.buildStringColumn('s').label('Long label that will take up space').summary('Test')) | ||
.column(LineUpJS.buildStringColumn('s').label('Teset').summary('Long summary that will take up space')) | ||
.column(LineUpJS.buildStringColumn('s').label('Long label that will take up space2').summary('Long summary that will take up space')) | ||
|
||
const lineup = builder.build(document.body); | ||
|
||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.