423baff73b
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
33 lines
802 B
Python
33 lines
802 B
Python
# Copyright (c) 2010-2024 openpyxl
|
|
|
|
"""
|
|
Read a chart
|
|
"""
|
|
|
|
def read_chart(chartspace):
|
|
cs = chartspace
|
|
plot = cs.chart.plotArea
|
|
|
|
chart = plot._charts[0]
|
|
chart._charts = plot._charts
|
|
|
|
chart.title = cs.chart.title
|
|
chart.display_blanks = cs.chart.dispBlanksAs
|
|
chart.visible_cells_only = cs.chart.plotVisOnly
|
|
chart.layout = plot.layout
|
|
chart.legend = cs.chart.legend
|
|
|
|
# 3d attributes
|
|
chart.floor = cs.chart.floor
|
|
chart.sideWall = cs.chart.sideWall
|
|
chart.backWall = cs.chart.backWall
|
|
chart.pivotSource = cs.pivotSource
|
|
chart.pivotFormats = cs.chart.pivotFmts
|
|
chart.idx_base = min((s.idx for s in chart.series), default=0)
|
|
chart._reindex()
|
|
|
|
# Border, fill, etc.
|
|
chart.graphical_properties = cs.graphical_properties
|
|
|
|
return chart
|