code: function() {
              $(this.renderTo).addClass(this.typeName);
              $(this.renderTo).attr('data-gauge-value', this.value);
              if(this.elements.valueDisplay) {
                  this.addClassToElement(this.elements.valueDisplay.element, 'gauge-value');
              }
              for(key in this.elements) {
                  if(/^tickLabel_/.test(key)) {
                      this.addClassToElement(this.elements[key].element, 'gauge-tick-label');
                  }
              }
              for(key in this.elements){
                  if(/^colorBand/.test(key)){
                      this.addClassToElement(this.elements[key].element, 'gauge-color-band');
                  }
              }
              $('.gauge-color-band').each(function(){
                  $(this).attr('data-band-color', $(this).attr('fill'));
              });
  
              if(this.elements.fill){
                  $(this.elements.fill.element).attr('data-indicator-color', $(this.elements.fill.element).attr('fill'));
              }
              // this is bad OOP but I think it's better to keep all of this code in one method
              if(this.elements.needle) {
                  this.addClassToElement(this.elements.needle.element, 'gauge-indicator');
              }
              if(this.elements.markerLine) {
                  this.addClassToElement(this.elements.markerLine.element, 'gauge-indicator');
              }
          }
docs: //////////////////////////////////////////////////////////////////////////////////////////////////////////// code to add testing hooks for automated tests, no other code should rely on these classes!