The tickRenderer is inside axis and not inside the rendererOptions.
HTML
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/jquery.jqplot.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.dateAxisRenderer.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.canvasAxisTickRenderer.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.canvasAxisLabelRenderer.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.canvasTextRenderer.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.highlighter.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.cursor.js"></script>
<script language="javascript" type="text/javascript" src="https://bitbucket.org/cleonello/jqplot/raw/b5a7796a9ebf/src/plugins/jqplot.pointLabels.js"></script>
<div id="container"></div>
CSS
#container{
width: 500px;
height: 100%;
margin: auto;
}
//jquery.jqplot.css
/*rules for the plot target div. These will be cascaded down to all plot elements according to css rules*/
.jqplot-target {
position: relative;
color: #666666;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 1em;
/* height: 300px;
width: 400px;*/
}
/*rules applied to all axes*/
.jqplot-axis {
font-size: 0.75em;
}
.jqplot-xaxis {
margin-top: 10px;
}
.jqplot-x2axis {
margin-bottom: 10px;
}
.jqplot-yaxis {
margin-right: 10px;
}
.jqplot-y2axis, .jqplot-y3axis, .jqplot-y4axis, .jqplot-y5axis, .jqplot-y6axis, .jqplot-y7axis, .jqplot-y8axis, .jqplot-y9axis, .jqplot-yMidAxis {
margin-left: 10px;
margin-right: 10px;
}
/*rules applied to all axis tick divs*/
.jqplot-axis-tick, .jqplot-xaxis-tick, .jqplot-yaxis-tick, .jqplot-x2axis-tick, .jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick, .jqplot-yMidAxis-tick {
position: absolute;
white-space: pre;
}
.jqplot-xaxis-tick {
top: 0px;
/* initial position untill tick is drawn in proper place */
left: 15px;
/* padding-top: 10px;*/
vertical-align: top;
}
.jqplot-x2axis-tick {
bottom: 0px;
/* initial position untill tick is drawn in proper place */
left: 15px;
/* padding-bottom: 10px;*/
vertical-align: bottom;
}
.jqplot-yaxis-tick {
right: 0px;
/* initial position untill tick is drawn in proper place */
top: 15px;
/* padding-right: 10px;*/
text-align: right;
}
.jqplot-yaxis-tick.jqplot-breakTick {
right: -20px;
margin-right: 0px;
padding:1px 5px 1px 5px;
/* background-color: white;*/
z-index: 2;
font-size: 1.5em;
}
.jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick,...
JavaScript
$(document).ready(function() {
var ignOnStyle = {
color: "#00FF00",
showMarker: false,
pointLabels: {
location: 'n'
},
lineWidth: 7,
markerOptions: {
style: "filledCircle",
size: 12,
}
};
var ignOffStyle = {
color: "#FF0000",
showMarker: false,
label: "Contact",
lineWidth: 7
};
var locStyle = {
color: "#941B80",
label: ""
};
var seriesCnf = Array();
var loc = Array();
// add location values
loc.push([[1340877534000, 2, 'location 1'], [1340877669000, 2, 'location 1']]);
seriesCnf.push(locStyle);
loc.push([[1340877779000, 2, 'location 2'], [1340877869000, 2, 'location 2']]);
seriesCnf.push(locStyle);
loc.push([[1340877989000, 2, 'location 1'], [1340878139000, 2, 'location 1']]);
seriesCnf.push(locStyle);
// add ignition values
loc.push([[1340877534000, 1, 'off'], [1340877561000, 1, null]]);
seriesCnf.push(ignOffStyle);
loc.push([[1340877561000, 1, 'on'], [1340877779000, 1, null]]);
seriesCnf.push(ignOnStyle);
loc.push([[1340877779000, 1, 'off'], [1340877839000, 1, null]]);
seriesCnf.push(ignOffStyle);
loc.push([[1340877839000, 1, 'on'], [1340878019000, 1, null]]);
seriesCnf.push(ignOnStyle);
loc.push([[1340878019000, 1, 'off'], [1340878139000, 1, null]]);
seriesCnf.push(ignOffStyle);
plot1 = $.jqplot('container', loc, {
seriesColors: ["#941B80"],
axes: {
xaxis: {
renderer: $.jqplot.DateAxisRenderer,
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
tickOptions: {
formatString: '%R',
angle: 0
},
pad: 0,
},
yaxis: {
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
label: 'Snelheid [km/h]',
labelOptions: {
...