Skip to content

Instantly share code, notes, and snippets.

View .block
license: mit
@ProQuestionAsker
ProQuestionAsker / index.html
Last active May 24, 2017 — forked from caravinden/index.html
Stacked Bar Chart - d3.v4 implementation
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.axis text {
font: 10px sans-serif;
}
.axis line,
.axis path {
fill: none;
stroke: #000;
@ProQuestionAsker
ProQuestionAsker / Example5.csv
Created May 8, 2017
d3v4 Multi-Line Chart, Nested Data, and 2 Dropdown Menus
View Example5.csv
Month Sales Fruit Year
Jan 87 strawberry 2016
Feb 3 strawberry 2016
Mar 89 strawberry 2016
Apr 56 strawberry 2016
May 1 strawberry 2016
Jun 17 strawberry 2016
Jul 59 strawberry 2016
Aug 43 strawberry 2016
Sep 16 strawberry 2016
@ProQuestionAsker
ProQuestionAsker / Example6.csv
Created May 8, 2017
d3v4 Multi-Line Chart with Nested Data, Dropdown Menu, and Updating Y-Axis
View Example6.csv
Jan 87 strawberry 2016
Feb 3 strawberry 2016
Mar 89 strawberry 2016
Apr 56 strawberry 2016
May 1 strawberry 2016
Jun 17 strawberry 2016
Jul 59 strawberry 2016
Aug 43 strawberry 2016
Sep 16 strawberry 2016
@ProQuestionAsker
ProQuestionAsker / Example4.csv
Created May 8, 2017
d3v4 Multi-Line Chart with Dropdown Menu and Nesting
View Example4.csv
Month Sales Fruit Year
Jan 87 strawberry 2016
Feb 3 strawberry 2016
Mar 89 strawberry 2016
Apr 56 strawberry 2016
May 1 strawberry 2016
Jun 17 strawberry 2016
Jul 59 strawberry 2016
Aug 43 strawberry 2016
Sep 16 strawberry 2016
@ProQuestionAsker
ProQuestionAsker / Example4.csv
Created May 7, 2017
d3v4 Multi-Line Chart with 2 Layers of Nesting
View Example4.csv
Jan 87 strawberry 2016
Feb 3 strawberry 2016
Mar 89 strawberry 2016
Apr 56 strawberry 2016
May 1 strawberry 2016
Jun 17 strawberry 2016
Jul 59 strawberry 2016
Aug 43 strawberry 2016
Sep 16 strawberry 2016
@ProQuestionAsker
ProQuestionAsker / Example3.csv
Created May 5, 2017
d3v4 Rollup Data Bar Chart
View Example3.csv
Month Sales Fruit
Jan 87 strawberry
Feb 3 strawberry
Mar 89 strawberry
Apr 56 strawberry
May 1 strawberry
Jun 17 strawberry
Jul 59 strawberry
Aug 43 strawberry
Sep 16 strawberry
@ProQuestionAsker
ProQuestionAsker / Example2.csv
Created May 3, 2017
d3v4 Multi-Line Chart with Nesting
View Example2.csv
Jan 87 strawberry
Feb 3 strawberry
Mar 89 strawberry
Apr 56 strawberry
May 1 strawberry
Jun 17 strawberry
Jul 59 strawberry
Aug 43 strawberry
Sep 16 strawberry
View Example1.csv
Month Sales
Jan 87
Feb 3
Mar 89
Apr 56
May 1
Jun 17
Jul 59
Aug 43
Sep 16
View RogueOne.csv
Character Sex speaking_turns Total_Words radius diameter
1 Admiral Raddus male 13 128 6.38307648642292 12.7661529728458
2 Announcer male 3 46 3.82651992866291 7.65303985732581
3 Antenna Computer female 3 19 2.45924537968297 4.91849075936593
4 Bail Organa male 5 83 5.14001172695692 10.2800234539138
5 Baze Malbus male 32 168 7.31273279143145 14.6254655828629
6 Blue Squadron 1 male 2 5 1.26156626101008 2.52313252202016
7 Blue Squadron 2 male 1 3 0.97720502380584 1.95441004761168
8 Blue Squadron 3 male 1 4 1.12837916709551 2.25675833419103
9 Blue Squadron 4 male 1 6 1.38197659788534 2.76395319577068