Permalink
Browse files

Added forceX to bulletchart, still needs to br implrmrnte

  • Loading branch information...
1 parent 4ae1745 commit 87c7e3bb1e3e83be3e527de717752b91a081b31a @bobmonteverde bobmonteverde committed Sep 18, 2012
Showing with 21 additions and 4 deletions.
  1. +8 −0 nv.d3.js
  2. +5 −4 nv.d3.min.js
  3. +8 −0 src/models/bullet.js
View
@@ -923,6 +923,7 @@ nv.models.bullet = function() {
, ranges = function(d) { return d.ranges }
, markers = function(d) { return d.markers }
, measures = function(d) { return d.measures }
+ , forceX = [0] // List of numbers to Force into the X scale (ie. 0, or a max / min, etc.)
, width = 380
, height = 30
, tickFormat = null
@@ -942,6 +943,7 @@ nv.models.bullet = function() {
markerz = markers.call(this, d, i).slice().sort(d3.descending),
measurez = measures.call(this, d, i).slice().sort(d3.descending);
+ nv.log(rangez, markerz, measurez);
//------------------------------------------------------------
// Setup Scales
@@ -1112,6 +1114,12 @@ nv.models.bullet = function() {
return chart;
};
+ chart.forceX = function(_) {
+ if (!arguments.length) return forceX;
+ forceX = _;
+ return chart;
+ };
+
chart.width = function(_) {
if (!arguments.length) return width;
width = _;
Oops, something went wrong.

0 comments on commit 87c7e3b

Please sign in to comment.