For that purpose you actually don need the DateAxisRenderer, you can use LinearAxisRenderer and provide your formatted ticks (data should be converted to timestamps). Another option is to use the formatter in conjunction with tics but this is more simpler:
function getDaysInMonthTicks(month, year) {
var date = new Date(year, month, 1);
var days = [];
var tstamp;
while (date.getMonth() === month) {
tstamp = date.getTime();
if (date.getDay() == 0) {
days.push([tstamp,$.jsDate.strftime(tstamp, '%Y/%m/%d')]);
} else {
days.push([tstamp]);
}
date.setDate(date.getDate() + 1);
}
return days;
}
function parseDate(input) {
var parts = input.split('-');
return new Date(parts[0], parts[1]-1, parts[2]).getTime(); // months are 0-based
}
$(document).ready(function () {
var bars = [
[parseDate('2014-01-5'), 21],
[parseDate('2014-01-10'), 21],
[parseDate('2014-01-12'), 22],
[parseDate('2014-01-15'), 21],
[parseDate('2014-01-19'), 22],
[parseDate('2014-01-26'), 18]
];
var plot1 = $.jqplot('chart1', [bars], {
title: 'Default Date Axis',
axes: {
xaxis: {
renderer:$.jqplot.LinearAxisRenderer,
min:parseDate("2014-1-1"),
max:parseDate("2014-1-31"),
ticks: getDaysInMonthTicks(0,2014)
}
},
series: [{
pointLabels: {
show: true,
stackedValue: true
},
color: "#00749F",
label: "peer expenses"
}],
legend: {
show: true,
location: 'e',
placement: "outsideGrid"
}
});
});