code: function formatParamsIntoChartInitString(chartConfig=getCurentConfig()) {
      const baseChartName = 'chart';
  
      return Object.keys(chartConfig).reduce((memo, item) => {
          let value = chartConfig[item];
  
          if (typeof value === 'object') {
              value = prettifyJson(value);
          }
  
          return memo.concat(`.${item}(${value})`);
      }, baseChartName);
  }
docs: Obtains chart config [a js object] and formats it into a pretty display string
  TODO: theres a bug here where on refresh,  new line is added between each line
  @param  {Object} chartConfig     chart configuration object
  @return {string}                 Prettified string that when eval'd will initiailize the chart