Пользовательские метки осей в панели Echart

#python #data-visualization #echarts

Вопрос:

Так что я полностью уперся здесь в стену. Я понятия не имею, как изменить метки по умолчанию на диаграмме, которая у меня есть. Соответствующий код находится здесь:

 import panel as pn
#pn.extension('echarts')
gauge = {
    'tooltip': {
        'formatter': '{a} <br/>{b} : {c}%'
    },
    'series': [
        {
            'name': 'Gauge',
            'type': 'gauge',
            'startAngle':-90,
            'endAngle':270,
            'detail': {'formatter': '{value}%'},
            'data': [{'value': 50, 'name': 'Value'}],
            'axisLabel':{'color':'#464646', 'distance':-20,
                         'formatter':}
        }
    ]
};
gauge_pane = pn.pane.ECharts(gauge, width=400, height=400)

slider = pn.widgets.IntSlider(start=-180, end=180)

slider.jscallback(args={'gauge': gauge_pane}, value="""
gauge.data.series[0].data[0].value = cb_obj.value
gauge.properties.data.change.emit()
""")

pn.Column(slider, gauge_pane).show()
'''
The chart should be displaying labels too 180 degrees; ie from the top (indicator starts at correct orientation) the labels should go 0-180-0 in a clockwise way. Carrying on with the clock analogy, 0 would be at 12 o'clock, 90 at 3 and 10, and 180 at 6 o'clock. I tried to do something with the formatter, as that was my best guess as to how to do that translation, but I am currently learning Panel now, so I am likely making some dumb mistakes. Thanks for the help!