Created
February 9, 2021 00:35
-
-
Save t2y/168d7cfbb2d1c274199b706bcf1b1887 to your computer and use it in GitHub Desktop.
chart のデータラベルの表示
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from openpyxl import load_workbook | |
from pprint import pprint | |
if len(sys.argv) < 2: | |
print(f'{__file__}の後にExcelファイルを指定してください') | |
sys.exit(0) | |
filename = sys.argv[1] | |
wb = load_workbook(filename) | |
ws = wb.active | |
for chart in ws._charts: | |
pprint(chart.dataLabels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
なにかヒントになる内容が出力されるかも?