Modifying X Axis Labels



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

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

    Comment actions Permalink

Please sign in to leave a comment.