@@ -21,16 +21,16 @@ var BADNUM = require('../../constants/numerical').BADNUM;
2121 * @param {Array } traces
2222* Array of calculated traces
2323 * @param {object } opts
24- * - @param {boolean} [separateNegativeValues ]
24+ * - @param {boolean} [sepNegVal ]
2525 * If true, then split data at the same position into a bar
2626 * for positive values and another for negative values
27- * - @param {boolean} [dontMergeOverlappingData ]
27+ * - @param {boolean} [overlapNoMerge ]
2828 * If true, then don't merge overlapping bars into a single bar
2929 */
3030function Sieve ( traces , opts ) {
3131 this . traces = traces ;
32- this . separateNegativeValues = opts . separateNegativeValues ;
33- this . dontMergeOverlappingData = opts . dontMergeOverlappingData ;
32+ this . sepNegVal = opts . sepNegVal ;
33+ this . overlapNoMerge = opts . overlapNoMerge ;
3434
3535 // for single-bin histograms - see histogram/calc
3636 var width1 = Infinity ;
@@ -81,7 +81,7 @@ Sieve.prototype.put = function put(position, value) {
8181 * @method
8282 * @param {number } position Position of datum
8383 * @param {number } [value] Value of datum
84- * (required if this.separateNegativeValues is true)
84+ * (required if this.sepNegVal is true)
8585 * @returns {number } Current bin value
8686 */
8787Sieve . prototype . get = function put ( position , value ) {
@@ -95,14 +95,14 @@ Sieve.prototype.get = function put(position, value) {
9595 * @method
9696 * @param {number } position Position of datum
9797 * @param {number } [value] Value of datum
98- * (required if this.separateNegativeValues is true)
98+ * (required if this.sepNegVal is true)
9999 * @returns {string } Bin label
100- * (prefixed with a 'v' if value is negative and this.separateNegativeValues is
100+ * (prefixed with a 'v' if value is negative and this.sepNegVal is
101101 * true; otherwise prefixed with '^')
102102 */
103103Sieve . prototype . getLabel = function getLabel ( position , value ) {
104- var prefix = ( value < 0 && this . separateNegativeValues ) ? 'v' : '^' ;
105- var label = ( this . dontMergeOverlappingData ) ?
104+ var prefix = ( value < 0 && this . sepNegVal ) ? 'v' : '^' ;
105+ var label = ( this . overlapNoMerge ) ?
106106 position :
107107 Math . round ( position / this . binWidth ) ;
108108 return prefix + label ;
0 commit comments