s(svg, data, x, y);
}

// salary trends chart
var dataTrendsRaw = {{ .DataSetTrends }};

var parseDate = d3.timeParse("%Y-%m-%d")

var dataTrends = dataTrendsRaw.map(function (d) {
  console.log(d);
    return {
      date:  parseDate(d.date),
      p10: d.p10,
      p25: d.p25,
      p50: d.p50,
      p75: d.p75,
      p90: d.p90
    };
  });

  makeChart(dataTrends);
  function search() {
    if (document.getElementById('search-location').value.trim() === '') {
			  window.location.href = '/{{ .SiteJobCat