# 차트 자리 표시자가 포함된 템플릿을 설정하세요.
# Total Contract Price<<y [m.Total_Contract_Price]>>
# <<seriesColor [color]>>
import groupdocs.assembly as ga
def run():
# 템플릿 파일의 경로를 정의하세요.
template = "table_template.xlsx"
# 차트에 대한 입력 데이터를 로드하세요.
data_json = ga.data.JsonDataSource("Items.json")
# 관련 필드가 포함된 데이터 객체를 구성하세요.
data = ga.DataSourceInfo(data_json, "items")
# 차트 유형, 외관 및 기타 속성을 지정하세요.
design = ga.DataSourceInfo("red", "color")
# DocumentAssembler 구성 요소를 초기화하세요.
asm = ga.DocumentAssembler()
# 차트가 삽입된 문서를 저장하세요.
asm.assemble_document(template, "result.xlsx", data, design)