|
|
|
@ -9,7 +9,7 @@ nv.models.scatter = function() {
|
|
|
|
|
, width = 960
|
|
|
|
|
, height = 500
|
|
|
|
|
, color = nv.utils.defaultColor() // chooses color
|
|
|
|
|
, id = Math.floor(Math.random() * 100000) //Create semi-unique ID incase user doesn't selet one
|
|
|
|
|
, id = Math.floor(Math.random() * 100000) //Create semi-unique ID incase user doesn't select one
|
|
|
|
|
, x = d3.scale.linear()
|
|
|
|
|
, y = d3.scale.linear()
|
|
|
|
|
, z = d3.scale.linear() //linear because d3.svg.shape.size is treated as area
|
|
|
|
@ -21,7 +21,7 @@ nv.models.scatter = function() {
|
|
|
|
|
, forceX = [] // List of numbers to Force into the X scale (ie. 0, or a max / min, etc.)
|
|
|
|
|
, forceY = [] // List of numbers to Force into the Y scale
|
|
|
|
|
, forceSize = [] // List of numbers to Force into the Size scale
|
|
|
|
|
, interactive = true // If true, plots a voronoi overlay for advanced point interection
|
|
|
|
|
, interactive = true // If true, plots a voronoi overlay for advanced point intersection
|
|
|
|
|
, pointActive = function(d) { return !d.notActive } // any points that return false will be filtered out
|
|
|
|
|
, padData = false // If true, adds half a data points width to front and back, for lining up a line chart with a bar chart
|
|
|
|
|
, clipEdge = false // if true, masks points within x and y scale
|
|
|
|
|