使用chart.set_table设置数字格式

时间:2019-07-19 15:20:24

标签: python xlsxwriter

我正在使用Xlsxwriter生成柱形图。 我想将图表下的数字设置为%的格式,而不是默认格式

Current formatting

我正在使用的代码如下:

chart = workbook.add_chart({'type': 'column', 'data_labels': {'value': True} })
chart.set_plotarea ({'layout': { 'width':10 , 'height': 10 } })
chart.set_table({'show_keys': True})
chart.set_title({ 'name': sheetName + ' QOR Trend', 'name_font': { 'name': 'Calibri', 'color': 'black', }, })

如何将表格数据更改为“ 0.00%”

0 个答案:

没有答案