|
|
@ -11,12 +11,9 @@ class ExcelService(IFileService):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
def save(self, filePath, videoList):
|
|
|
|
def save(self, filePath, videoList):
|
|
|
|
|
|
|
|
filePath += ".xlsx"
|
|
|
|
tttt.write_to_excel(videoList,filePath)
|
|
|
|
tttt.write_to_excel(videoList,filePath)
|
|
|
|
tttt.calculate_ratio_and_update(filePath, 'Sheet')
|
|
|
|
tttt.calculate_ratio_and_update(filePath, 'Sheet')
|
|
|
|
import openpyxl
|
|
|
|
|
|
|
|
from openpyxl.chart import ScatterChart, BarChart, AreaChart, Reference
|
|
|
|
|
|
|
|
tttt.create_bar_chart(filePath,'Sheet')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
texts = [
|
|
|
|
texts = [
|
|
|
|
"approve",
|
|
|
|
"approve",
|
|
|
|
"money",
|
|
|
|
"money",
|
|
|
@ -24,8 +21,13 @@ class ExcelService(IFileService):
|
|
|
|
"Stunning",
|
|
|
|
"Stunning",
|
|
|
|
"interaction"
|
|
|
|
"interaction"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
tttt.write_english_texts(filePath, 'Sheet', texts)
|
|
|
|
tttt.write_english_texts(filePath, 'Sheet', texts)
|
|
|
|
|
|
|
|
tttt.create_bar_chart(filePath,'Sheet')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("Data analysis written to the Excel file.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|