Search code examples
plotlyformattingvisualization

Plotly Indicator Graph how to hide/remove the indicator value


Hello folks, I want to remove/hide the indicator value which is marked red colour in the below image. please suggest something to achieve this.

enter image description here

planned to achieve like following

enter image description here

thanks in advance

I tried via css to hide the value but it was like showing space by replacement which is not good.


Solution

  • Inside go.Indicator, you can pass the argument mode='delta' to hide the number:

    fig = go.Figure(
        go.Indicator(
            mode='delta',
            value=105.42,
            delta={'reference':100, 'relative':True},
            title={'text':'increase in cost'}
        )
    )
    fig.show()
    

    enter image description here