Skip to main content

Modifying X Axis Labels



  • Jonathan Sabah

    Interesting article. The above however, transforms widget.queryResult.xAxis and removes all the other non-stated properties (like plotBands, plotLInes, etc...).

    The below will allow the formatter function to be changed to address your needs without affecting other properties.

    widget.on('render', function(widget,args){
    widget.queryResult.xAxis.labels.formatter = function () {
    // do something with this.value here
  • Nathan Giusti

    Great point Jonathan. For anyone who finds this, I would recommend using this suggestion. 


Please sign in to leave a comment.