Knowledge Base Article

Reverse Y-Axis Of A Chart

Paste the following code into the widget script to reverse the Y-Axis.
Instead of the lower number at the bottom of the chart, it will be at the top.
widget.on('processresult', function(se,ev){
   ev.result.yAxis[0].reversed = true;
})
If you have a secondary Y-Axis you can leave it as is or inverse it as well by adding the following line after line 2 of the code above. 
ev.result.yAxis[1].reversed = true;
Updated 03-02-2023
No CommentsBe the first to comment