Modifying X Axis Labels

Comments

2 comments

  • Avatar
    Jonathan Sabah (Edited )

    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
    }
    })
    2
    Comment actions Permalink
  • Avatar
    Nathan Giusti

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

    -1
    Comment actions Permalink

Please sign in to leave a comment.