function augmentScaleBand(band, fsettings) {
    band.data = () => data;

    band.datum = (domainValue) => items[domainToDataMapping[domainValue]];

    /**
     * Get the first value of the domain
     * @return { number }
     */
    band.start = function start() {
      return band.domain()[0];
    };

    /**
     * Get the last value of the domain
     * @return { number }
     */
    band.end = function end() {
      return band.domain()[band.domain().length - 1];
    };

    band.labels = () => labels;

    /**
     * Generate discrete ticks
     * @return {Object[]} Array of ticks
     */
    band.ticks = function ticks(input = {}) {
      input.scale = band;
      return generateDiscreteTicks(input, fsettings.trackBy || 'label');
    };
  }
// I would like to define this outside of scaleBand but it cause the documentation to be in the wrong order
I would like to define this outside of scaleBand but it cause the documentation to be in the wrong order
I would like to define this outside of scaleBand but it cause the documentation to be in the wrong order
function augmentScaleBand(band, fsettings) {
    band.data = () => data;
    band.datum = (domainValue) => items[domainToDataMapping[domainValue]];
    band.start = function start() {
      return band.domain()[0];
    };
    band.end = function end() {
      return band.domain()[band.domain().length - 1];
    };
    band.labels = () => labels;
    band.ticks = function ticks(input = {}) {
      input.scale = band;
      return generateDiscreteTicks(input, fsettings.trackBy || 'label');
    };
  }
function augmentScaleBand ( band , fsettings ) { band . data = ( ) => data ; band . datum = ( domainValue ) => items [ domainToDataMapping [ domainValue ] ] ; band . start = function start ( ) { return band . domain ( ) [ 0 ] ; } ; band . end = function end ( ) { return band . domain ( ) [ band . domain ( ) . length - 1 ] ; } ; band . labels = ( ) => labels ; band . ticks = function ticks ( input = { } ) { input . scale = band ; return generateDiscreteTicks ( input , fsettings . trackBy || 'label' ) ; } ; }
I would like to define this outside of scaleBand but it cause the documentation to be in the wrong order
I would like to define this outside of scaleBand but it cause the documentation to be in the wrong order
/**
     * Get the first value of the domain
     * @return { number }
     */ /**
     * Get the last value of the domain
     * @return { number }
     */ /**
     * Generate discrete ticks
     * @return {Object[]} Array of ticks
     */