hw6 first commit

This commit is contained in:
2019-10-29 11:19:51 -06:00
parent 778fe73e4a
commit 501727baed
65 changed files with 20108 additions and 26 deletions

View File

@@ -0,0 +1,36 @@
/** Class implementing the shiftChart. */
class ShiftChart {
/**
* Initializes the svg elements required for this chart;
*/
constructor(){
this.divShiftChart = d3.select("#shiftChart").classed("sideBar", true);
};
/**
* Creates a list of states that have been selected by brushing over the Electoral Vote Chart
*
* @param selectedStates data corresponding to the states selected on brush
*/
update(selectedStates){
// ******* TODO: PART V *******
//Display the names of selected states in a list
//******** TODO: PART VI*******
//Use the shift data corresponding to the selected years and sketch a visualization
//that encodes the shift information
//******** TODO: EXTRA CREDIT I*******
//Handle brush selection on the year chart and sketch a visualization
//that encodes the shift informatiomation for all the states on selected years
//******** TODO: EXTRA CREDIT II*******
//Create a visualization to visualize the shift data
//Update the visualization on brush events over the Year chart and Electoral Vote Chart
};
}