Search code examples
pythonpython-3.xzingchart

How to show reverse y axis of Zingchart in python?


I am trying to implement Zingchart in Python and I want to show y axis in reverse order from top to bottom like -10, 0, 10,20.....120, and also trying to hide alternative line on x axis and show fixed labels on x axis. Does anyone know how to show y axis in reverse order and hide lines on x axis.


Solution

  • Solved by setting mirrored:true in y axis like:

    scale-y:
    {
      label:{
      text:'Hearing Level',
    },
      mirrored:true,
      minorTicks:1,
      values:'10:120:10',
      step:5
    }