The scale of the bullet chart goes haywire when a marker is inserted that is larger than the maximum value specified for the ranges. Therefore, in nv.d3.js (nv.models.bullet = function(){...}), the array in
// Setup Scales
// Compute the new x-scale.
var x1 = d3.scale.linear()
.domain( d3.extent(d3.merge([forceX, rangez])))
...
should be changed to include the specified marker values:
// Setup Scales
// Compute the new x-scale.
var x1 = d3.scale.linear()
.domain( d3.extent(d3.merge([forceX, rangez, markerz])))
The scale of the bullet chart goes haywire when a marker is inserted that is larger than the maximum value specified for the ranges. Therefore, in
nv.d3.js
(nv.models.bullet = function(){...}
), the array inshould be changed to include the specified marker values: