code: function() {
              var fieldNames = this.processedData.fieldNames;
  
              if(fieldNames.length < 1 || (fieldNames.length === 1 && this.processedData.xAxisType === 'time')) {
                  this.chartIsEmpty = true;
                  return;
              }
              this.hcConfig.series = [];
              this.legendFieldNames = [];
  
              if(fieldNames.length === 1) {
                  this.setMode('singleSeries');
                  this.addSingleSeriesData();
              }
              else {
                  this.setMode('multiSeries');
                  this.addMultiSeriesData();
              }
          }
docs: override