With Chinese characters in the data, when using py.image.save_as to save the graph locally, the Chinese characters can’t show correctly as below:
trace = go.Bar(x=[2, 4, 6], y= [‘汽车’, ‘冰箱’, ‘空调’])
data = [trace]
layout = go.Layout(title=‘A Simple Plot’, width=800, height=640)
fig = go.Figure(data=data, layout=layout)
I have been trying to search documents if there is a place to configure in order to support Chinese characters, but so far in vain. Can anyone help me with it? Many thanks.