linear = d3.scalelinear[....] creates an unclassed map with the domain is the data and range is the visual variable you want to display (ex white -> blue). An unclassed map means that you take the highest and lowest value and assigns them a color and all values between fall within the two
Can also use ([d3.min(data), d3.max(data)]) instead of d3.extent(data) these codes do the same thing d3.extent is just more streamlined
manual classification method. Input the breaks you would like for each class after .domain([....]). Range is the color that you would like to display, you should have a color for each of the classes you create. If you have two breaks then you will have 3 classes and should have three colors listed after .range([...])
this cell calculates the natural breaks for your data. .ckmeans(..) is the code that will actually calculate the breaks. you need to put the data file you are containing your variable of interest followed by a comma and the number of classes you would like to have. The number housed within the parenthesis after array is the number of classes you would like to display.
In this cell you input natural breaks as your .domain([...]) because this will pull the array calculated in the previous cell and give you the breaks calculated. .range([....]) should include colors for the the number of classes you are generating.
quantile = d3.scaleQuantile() is the line of code needed to make a quantile map. To map your data insert your normalized variable of interest in the domain and the colors you wish to map to the bins in the range.