I use jQplot with primeFaces.
I would like a date formatter for the CategoryAxis (dates are in millis).
I found different solutions on Stack but the problem seems to be my ticks : they are adds "after" the creation and options/format are not taking into consideration.
ticks: this.cfg.categories,
I tested with datetickformatter, a custom datetickformatter, CanvasAxisTickRenderer, and edition of CanvasAxisTickRenderer. In vain.
this.cfg.axes = {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
rendererOptions: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer
},
tickOptions: {
formatString: '%a.',
fontSize:'7pt',
},
ticks: this.cfg.categories,
},
Thanks, Ju.