obj63mc
11/15/2017 - 4:36 PM

PostPogo HighCharts display by specific date -

PostPogo HighCharts display by specific date -

This will allow you to display data by date in clean formatting - replace the JQ selector as well the 'response' with the data for the series -

$('#site-stats').highcharts({
  chart: {
      zoomType: 'x'
  },
  title: {
      text: 'Posts per Day per Network'
  },
  subtitle: {
      text: document.ontouchstart === undefined ?
              'Click and drag in the plot area to zoom in' :
              'Pinch the chart to zoom in'
  },
  xAxis: {
      type: 'datetime',
title: {
                text: 'Date'
            },
dateTimeLabelFormats: {
            minute: '%H:%M',
            hour: '%H:%M',
            day: '%b %e.',
            week: '%b %e.',
            month: '%b/%y',
            year: '%Y'
        }
  },
  yAxis: {
      title: {
          text: '# Posts'
      },
min:0,
type:'int'
  },
series:response
});