docs: function highChartLineChart (arr, valueFieldName, labelFieldName, options) {
    if (arr.length > 120) {
      arr = arr.slice(0,120);
    }
  
    // The object we'll output
    var geckoboardJSON = {};
  
    // build up the elements in chunks
  
    // Chart settings
    geckoboardJSON.chart = {
      style: {
        color: "#b9bbbb"
      },
      renderTo: "container",
      backgroundColor: "transparent",
      lineColor: "rgba(35,37,38,0.5)",
      plotShadow: false
    };
  
    // Credits settings
    geckoboardJSON.credits = {
      enabled: false
    };
  
    // Title settings
    geckoboardJSON.title = {
      text: null
    };
  
    // yAxis
    geckoboardJSON.yXis = {
      title: {
        text: null
      },
      floor: 0,
      ceiling: 100
    };
  
    // legend
    geckoboardJSON.legend = {
        enabled: false
    };
  
    // we'll work on these objects before adding them to geckoboardJSON:
  
    // xAxis
    var xAxis = {
      categories: []
    };
    var ourCategories = [];
  
    // the data that we are graphing
    var series = []; // holds the data to display
    var series1 = {
      color: "#108ec5",
      name: ""
    };
    var ourData = [];
  
    // then modify these objects using our data and settings:
  
    if (options) {
      if (options.color) {
        color = options.color;
        series1.color = color;
      }
    }
  
    for (var i = 0; i < arr.length; i++) {
      ourData.push(arr[i][valueFieldName]);
      ourCategories.push(arr[i][labelFieldName]);
    }
  
    series1.data = ourData;
    series.push(series1);
    geckoboardJSON.series = series;
  
    if (options && options.usingDates) {
      for (var j = 0; j < ourCategories.length; j++) {
        var d = new Date(ourCategories[j]);
        var mm = (d.getMonth()+1).toString(); // getMonth() is zero-based
        var dd  = d.getDate().toString();
        ourCategories[j] =  (mm[1]?mm:"0"+mm[0]) + '-' + (dd[1]?dd:"0"+dd[0]); // padding
      }
    }
  
    xAxis.categories = ourCategories;
    geckoboardJSON.xAxis = xAxis;
  
    return geckoboardJSON;
  }