Is there an easy way to display one digit months / dates with a leading (left padded) zero in the jQuery graph tool "flot" along the x-axis (version 0.7)?
xaxis: { mode: "time", timeformat: "%y-%m-%d/", TickSize: [1, "day"]}
gives for example 2012-9-5, which preferably should be 2012-09-05
More of the code....
<div id="placeholder" style="width:900px;height:200px;"></div>
<script>
$(function () {
var d = [<?php echo $qforgraph; //[1203894000000, 288]
?>];
var options = {
lines: { show: true },
points: { show: true },
xaxis: { mode: "time", timeformat: "%y-%0-%0", minTickSize: [1, "month"]},
grid: { backgroundColor: { colors: ["#FFF", "#EEF"] } }
};
var plot = $.plot($("#placeholder"), [d], options);
});
</script>