2015-09-23 46 views

回答

2

這在openpyxl 2.3中是可行的。該文檔仍在工作中,但您可以完全訪問整個格式化API。不幸的是,這個API非常複雜。

代碼看起來像:

chart = LineChart() 
# add some data 
line = chart.series[0] 
line.shapeProperties.line.noFill = True 
line.marker.symbol = "circle" 

http://openpyxl.readthedocs.org/en/stable/charts/introduction.html得到一個開始(和退房更多的例子在2.3分支)。對於完全控制,您將不得不熟悉OOXML規範,並準備閱讀圖表的來源。

相關問題