diff --git a/index.css b/index.css
index f483b61..8fa1099 100644
--- a/index.css
+++ b/index.css
@@ -18,10 +18,34 @@
fill: purple;
}
+.killLegend {
+ text-align: left;
+}
+
+.rightAlign {
+ text-align: right;
+}
+
.areaFilter-switch {
width: 120px;
}
+.flexContainer {
+ display: flex;
+}
+
+.flexOneContainer {
+ flex: 1;
+}
+
+.flexTwoContainer {
+ flex: 2;
+}
+
+.flexAreaFilterContainer {
+ flex: 10;
+}
+
.interactive-area {
flex: 1;
padding: 5px;
diff --git a/index.html b/index.html
index 44ddb8e..ea0705e 100644
--- a/index.html
+++ b/index.html
@@ -64,11 +64,19 @@
Both
-
+
diff --git a/index.js b/index.js
index 4b37471..0c2e088 100644
--- a/index.js
+++ b/index.js
@@ -110,6 +110,7 @@ $(".summoner-name").keyup(function(event) {
setupAreaFilter();
drawTimeFilter();
+drawLegend();
function setupAreaFilter() {
d3.select(".areaFilter-checkbox").on("change", d => {
@@ -363,6 +364,38 @@ function drawTimeFilter() {
redrawSliderText([0, 60]);
}
+function drawLegend() {
+ d3.select('.killLegend')
+ .append("svg")
+ .attr("width", 20)
+ .attr("height", 20)
+ .append("svg:circle")
+ .attr('r', 5)
+ .attr('cx', 10)
+ .attr('cy', 10)
+ .classed("kills", true);
+
+ d3.select('.deathLegend')
+ .append("svg")
+ .attr("width", 20)
+ .attr("height", 20)
+ .append("svg:circle")
+ .attr('r', 5)
+ .attr('cx', 10)
+ .attr('cy', 10)
+ .classed("deaths", true);
+
+ d3.select('.assistLegend')
+ .append("svg")
+ .attr("width", 20)
+ .attr("height", 20)
+ .append("svg:circle")
+ .attr('r', 5)
+ .attr('cx', 10)
+ .attr('cy', 10)
+ .classed("assists", true);
+}
+
function onSliderChange(event, ui) {
var values = ui.values;
redrawSliderText(values);