实列文件添加。

This commit is contained in:
fy3047957834
2021-10-08 16:39:36 +08:00
parent 21b04b906d
commit a8b3abfe23
66 changed files with 8798 additions and 3678303 deletions
+2 -3
View File
@@ -3578,7 +3578,6 @@ gg <- autoplot(datas) +
x="{x_name}",
y="{y_name}") +
theme(title=element_text(size={title_font_size}, color="{title_font_color}"),
axis.text.x=element_text(color="{x_scale_font_color}", size={x_scale_font_size}, angle={x_scale_font_angle}, vjust=0.6), axis.text.y=element_text(color="{y_scale_font_color}", size={y_scale_font_size}, angle={y_scale_font_angle}),
axis.title.x=element_text(size={x_font_size}, color="{x_font_color}"), axis.title.y=element_text(size={y_font_size}, color="{y_font_color}"))
@@ -7399,12 +7398,12 @@ def Time_Series_with_Trend_Panel(file_path, char_out_path, out_path, title, capt
# 高级参数 title_font_color, scale_font_color, font_color
# 示例文件 chord_Diagram_1.csv chord_Diagram_2.csv
def chord_Diagram(file_path_1, file_path_2, char_out_path, out_path, title, caption, subtitle, title_font_size,
def chord_Diagram(file_path, file_path_2, char_out_path, out_path, title, caption, subtitle, title_font_size,
font_size,
title_font_color, scale_font_color, font_color):
code = f"""
library("circlize")
df0 <- read.csv("{file_path_1}", stringsAsFactors=FALSE)
df0 <- read.csv("{file_path}", stringsAsFactors=FALSE)
df1 <- read.csv("{file_path_2}", stringsAsFactors=FALSE)
pdf("{out_path}.pdf")
-4
View File
@@ -136,7 +136,6 @@ class ChartParameter(object):
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "rgb":
parameter.input_type = self.colors_dict[f"{parameter.name}"] = "rgb"
f"""
@@ -145,7 +144,6 @@ class ChartParameter(object):
</div>
"""
self.colors += 1
if parameter.input_type == "palettes":
parameter.input_type = f"""
<select {parameter.astrict} id="{parameter.name}" lay-verify="required" value="{parameter.value}" autocomplete="off"
@@ -254,7 +252,6 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "rgb":
self.colors_dict[f"{parameter.name}"] = "rgb"
parameter.input_type = f"""
@@ -262,7 +259,6 @@ class="layui-input" style="height: 25px; width:80px;margin-top: 6px">
<div id="{parameter.name}" style="margin-left: 30px; display: inline-block"></div>
</div>
"""
if parameter.input_type == "palettes":
parameter.input_type = f"""
<select {parameter.astrict} id="{parameter.name}" lay-verify="required" value="{parameter.value}" autocomplete="off"