commit 0f5e5327d80ef69ee1f6016aa8a6f23e8b820a5e Author: Your Name <2606432452@qq.com> Date: Tue Sep 7 23:12:03 2021 +0800 Initial commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..081b737 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 数据源本地存储已忽略文件 +/dataSources/ +/dataSources.local.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ diff --git a/.idea/Simple_Drawing.iml b/.idea/Simple_Drawing.iml new file mode 100644 index 0000000..a766126 --- /dev/null +++ b/.idea/Simple_Drawing.iml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..380c887 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,20 @@ + + + + + sqlite.xerial + true + org.sqlite.JDBC + jdbc:sqlite:C:\Users\XXAY\Desktop\Simple_Drawing\db.sqlite3 + $ProjectFileDir$ + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.34.0/sqlite-jdbc-3.34.0.jar + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.31.1/sqlite-jdbc-3.31.1.jar + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..e9d8521 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..73f9023 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,44 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d1e22ec --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..af37bf5 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/other.xml b/.idea/other.xml new file mode 100644 index 0000000..640fd80 --- /dev/null +++ b/.idea/other.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Simple_Drawing/__init__.py b/Simple_Drawing/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Simple_Drawing/asgi.py b/Simple_Drawing/asgi.py new file mode 100644 index 0000000..29b9cf5 --- /dev/null +++ b/Simple_Drawing/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for Simple_Drawing project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Simple_Drawing.settings') + +application = get_asgi_application() diff --git a/Simple_Drawing/settings.py b/Simple_Drawing/settings.py new file mode 100644 index 0000000..ee91992 --- /dev/null +++ b/Simple_Drawing/settings.py @@ -0,0 +1,120 @@ +""" +Django settings for Simple_Drawing project. + +Generated by 'django-admin startproject' using Django 3.1.7. + +For more information on this file, see +https://docs.djangoproject.com/en/3.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/3.1/ref/settings/ +""" +import os +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'ymufuute@10ilxfo4-e1&38e4u$5w)+8#xtn^-c(la&vqh_ldx' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = ["*"] + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'chart.apps.ChartConfig', + 'pages.apps.PagesConfig', + 'tools.apps.ToolsConfig', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'Simple_Drawing.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [BASE_DIR / 'templates'], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'Simple_Drawing.wsgi.application' + +# Database +# https://docs.djangoproject.com/en/3.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + +# Password validation +# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + +# Internationalization +# https://docs.djangoproject.com/en/3.1/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/3.1/howto/static-files/ + +STATIC_URL = '/static/' +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, 'static'), +] diff --git a/Simple_Drawing/urls.py b/Simple_Drawing/urls.py new file mode 100644 index 0000000..535f3b8 --- /dev/null +++ b/Simple_Drawing/urls.py @@ -0,0 +1,24 @@ +"""Simple_Drawing URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.1/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.conf.urls import url +from django.urls import path, include + +urlpatterns = [ + # path('admin/', admin.site.urls), + path('chart/', include('chart.urls')), + path('tools/', include('tools.urls')), + path('', include('pages.urls')), +] \ No newline at end of file diff --git a/Simple_Drawing/wsgi.py b/Simple_Drawing/wsgi.py new file mode 100644 index 0000000..eca47d2 --- /dev/null +++ b/Simple_Drawing/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for Simple_Drawing project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Simple_Drawing.settings') + +application = get_wsgi_application() diff --git a/chart/__init__.py b/chart/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/chart/admin.py b/chart/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/chart/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/chart/apps.py b/chart/apps.py new file mode 100644 index 0000000..16aa43d --- /dev/null +++ b/chart/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ChartConfig(AppConfig): + name = 'chart' diff --git a/chart/charts.py b/chart/charts.py new file mode 100644 index 0000000..38f688e --- /dev/null +++ b/chart/charts.py @@ -0,0 +1,7414 @@ +import os + +import joypy +import matplotlib.pyplot as plt +import numpy as np +import pandas as pd +import seaborn as sns + + +def keep_txt_to_file(code, script_path): + with open(script_path, 'w', encoding='utf-8') as f: + f.write(code) + + +def scatter_plot(file_path, chart_out_path, out_path, x_scale_font_angle, y_scale_font_angle, group_by_column='color', x_name="x", y_name="y", + title="chart", dpi=100, width=10, height=6, title_font_size=12, ): + midwest = pd.read_csv(file_path) # 导入文件 + + plt.figure(figsize=(width, height), dpi=dpi, facecolor='w', edgecolor='k') + + group_by_column = np.unique(midwest[group_by_column]) + colors = [ + plt.cm.Set1(i / float(len(group_by_column) - 1)) for i in range(len(group_by_column)) + ] + + for i, category in enumerate(group_by_column): + plt.scatter(midwest.keys()[0], + midwest.keys()[1], + data=midwest.loc[midwest[midwest.keys()[2]] == category, :], + s=20, + c=colors[i], + label=str(category)) + + # xy轴的刻度 + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # xy轴的名称 + plt.xlabel(x_name, fontdict={'fontsize': 10}) + plt.ylabel(y_name, fontdict={'fontsize': 10}) + + # 标题 + plt.title(title, fontsize=int(title_font_size)) + + # 加上图例 + plt.legend(fontsize=10) + + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Each_regression_line_in_its_own_column(file_path, chart_out_path, out_path, group_by_column, group_by_range, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, color): + df = pd.read_csv(file_path) + group_by_range = [group_by_range.split("-")[0], group_by_range.split("-")[1]] + df_select = df.loc[df[group_by_column].isin(group_by_range), :] + plt.figure(figsize=(5, 3), dpi=200) + gridobj = sns.lmplot(x=x_column_name, + y=y_column_name, + data=df_select, + robust=True, + palette=color, + col=group_by_column, + scatter_kws=dict(s=60, linewidths=.7, edgecolors='black')) + + # Decorations + sns.set(style="whitegrid", font_scale=1.5) + gridobj.fig.set_size_inches(10, 6) + + plt.title(title, fontsize=int(title_font_size)) + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # xy轴的名称 + plt.xlabel(x_name, fontdict={'fontsize': 10}) + plt.ylabel(y_name, fontdict={'fontsize': 10}) + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Jittering_with_stripplot(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, color): + df = pd.read_csv(file_path) + fig, ax = plt.subplots(figsize=(5, 3), dpi=180) + print(fig, ax) + sns.stripplot(df[x_column_name], + df[y_column_name], + jitter=0.25, + size=8, + ax=ax, + linewidth=.5, + palette=color) + + sns.set(style="whitegrid", font_scale=1.1) + + plt.title(title, fontsize=int(title_font_size)) + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.legend(fontsize=10) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # xy轴的名称 + plt.xlabel(x_name, fontdict={'fontsize': 10}) + plt.ylabel(y_name, fontdict={'fontsize': 10}) + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Marginal_Histogram(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, chart_bar_x_color='#0078d4', chart_bar_y_color='#098154'): + df = pd.read_csv(file_path) + + # Create Fig and gridspec + fig = plt.figure(figsize=(9.4, 4.25), dpi=200) + + grid = plt.GridSpec(4, 4, hspace=0.5, wspace=0.2) + + # Define the axes + ax_main = fig.add_subplot(grid[:-1, :-1]) + ax_right = fig.add_subplot(grid[:-1, -1], xticklabels=[], yticklabels=[]) + ax_bottom = fig.add_subplot(grid[-1, 0:-1], xticklabels=[], yticklabels=[]) + + # Scatterplot on main ax + ax_main.scatter(x_column_name, + y_column_name, + c=df.manufacturer.astype('category').cat.codes, + alpha=.9, + data=df, + cmap="Set1", + edgecolors='gray', + linewidths=.5) + + # histogram on the right + ax_bottom.hist(df[x_column_name], + 40, + histtype='stepfilled', + orientation='vertical', + color=chart_bar_x_color) + ax_bottom.invert_yaxis() + + # histogram in the bottom + ax_right.hist(df[y_column_name], + 40, + histtype='stepfilled', + orientation='horizontal', + color=chart_bar_y_color) + + ax_main.title.set_fontsize(fontsize=int(title_font_size)) + + ax_main.set(title=title, + xlabel=x_name, + ylabel=y_name) + + for item in ([ax_main.xaxis.label, ax_main.yaxis.label] + + ax_main.get_xticklabels() + ax_main.get_yticklabels()): + item.set_fontsize(10) + + xlabels = ax_main.get_xticks().tolist() + ax_main.set_xticklabels(xlabels) + + plt.savefig(chart_out_path) # 保存图片 + + plt.legend(fontsize=10) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Correllogram(file_path, chart_out_path, out_path, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, font_size, font_color, weight): + df = pd.read_csv(file_path) + plt.figure(figsize=(9.4, 4.25), dpi=200) + sns.heatmap( + df.corr(), + xticklabels=df.corr().columns, + yticklabels=df.corr().columns, + cmap='Set1', + center=0, + annot=True, + annot_kws={ + 'size': font_size, + 'weight': weight, + 'color': font_color + }, + ) + + plt.title(title, fontsize=int(title_font_size)) + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.legend(fontsize=10) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # xy轴的名称 + plt.xlabel(x_name, fontdict={'fontsize': 10}) + plt.ylabel(y_name, fontdict={'fontsize': 10}) + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Marginal_Boxplot(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, color): + # 边缘箱图(Marginal Boxplot) + df = pd.read_csv(file_path) + + fig = plt.figure(figsize=(9.4, 4.25), dpi=100) + grid = plt.GridSpec( + 4, 4, hspace=0.5, wspace=0.2 + ) + + # Define the axes + ax_main = fig.add_subplot(grid[:-1, :-1]) + ax_right = fig.add_subplot(grid[:-1, -1], xticklabels=[], yticklabels=[]) + ax_bottom = fig.add_subplot(grid[-1, 0:-1], xticklabels=[], yticklabels=[]) + + # Scatterplot on main ax + ax_main.scatter(x_column_name, + y_column_name, + c=df.manufacturer.astype('category').cat.codes, + alpha=.9, + data=df, + cmap="Set1", + edgecolors='black', + linewidths=.5) + + # Add a graph in each part + sns.boxplot(df[y_column_name], ax=ax_right, orient="v", linewidth=1, palette=color) + sns.boxplot(df[x_column_name], ax=ax_bottom, orient="h", linewidth=1, palette=color) + + ax_bottom.set(xlabel='') + ax_right.set(ylabel='') + + ax_main.title.set_fontsize(fontsize=int(title_font_size)) + ax_main.set(title=title, + xlabel=x_name, + ylabel=y_name) + + for item in ([ax_main.xaxis.label, ax_main.yaxis.label] + + ax_main.get_xticklabels() + ax_main.get_yticklabels()): + item.set_fontsize(11) + + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.legend(fontsize=10) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # xy轴的名称 + plt.xlabel(x_name, fontdict={'fontsize': 10}) + plt.ylabel(y_name, fontdict={'fontsize': 10}) + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Pairwise_Plot(file_path, chart_out_path, out_path, title, title_font_size, features_column, color): + df = pd.read_csv(file_path) + + plt.figure(figsize=(9.4, 4.25), dpi=100) + + plt.title(title, fontsize=int(title_font_size)) + sns.pairplot(df, + hue=features_column, + palette=color, + plot_kws=dict(s=80, edgecolor="white", linewidth=2.5)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Diverging_Bars(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name): + df = pd.read_csv(file_path) + x = df.loc[:, [x_column_name]] + df[x_column_name + "_z"] = (x - x.mean()) / x.std() + df['colors'] = ['red' if x < 0 else 'green' for x in df[x_column_name + "_z"]] + df.sort_values(x_column_name + "_z", inplace=True) + df.reset_index(inplace=True) + + # Draw plot + plt.figure(figsize=(9.4, 4.25), dpi=80) + plt.hlines(y=df.index, + xmin=0, + xmax=df.mpg_z, + color=df.colors, + alpha=0.8, + linewidth=5) + + # Decorations + plt.gca().set(ylabel=y_name, xlabel=x_name) + plt.yticks(df.index, df[y_column_name], fontsize=12) + plt.xticks(fontsize=12) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.title(title, fontsize=int(title_font_size)) + + plt.grid(linestyle='--', alpha=0.5) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Diverging_Bars_vertical(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name): + df = pd.read_csv(file_path) + x = df.loc[:, [y_column_name]] + + df[y_column_name + 'z'] = (x - x.mean()) / x.std() + df['colors'] = ['red' if x < 0 else 'green' for x in df[y_column_name + 'z']] + df.sort_values(y_column_name + 'z', inplace=True) + df.reset_index(inplace=True) + + # Draw plot + plt.figure(figsize=(10, 6), dpi=80) + plt.vlines(x=df.index, + ymin=0, + ymax=df[y_column_name + 'z'], + color=df.colors, + alpha=0.8, + linewidth=5) + + plt.gca().set(ylabel=y_name, xlabel=x_name) + + for y, x, tex in zip(df[y_column_name + 'z'], df.index, df[y_column_name + 'z']): + plt.text(x, + y + 0.2, + round(tex, 1), + horizontalalignment='center', + fontdict={ + 'color': 'black' if x < 0 else 'black', + 'size': 8 + }) + + # Decorations + plt.xticks(df.index, df[x_column_name], fontsize=12, rotation=90) + plt.yticks(fontsize=12) + plt.title(title, fontdict={'size': int(title_font_size)}) + plt.grid(linestyle='--', alpha=0.5) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.title(title, fontsize=int(title_font_size)) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Ordered_Bar_Chart(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, color): + df_raw = pd.read_csv(file_path) + df = df_raw[[x_column_name, y_column_name]].groupby(y_column_name).apply(lambda x: x.mean()) + df.sort_values(x_column_name, inplace=True) + df.reset_index(inplace=True) + + import matplotlib.patches as patches + + plt.gca().set(ylabel=y_name, xlabel=x_name) + + fig, ax = plt.subplots(figsize=(9.4, 4.25), facecolor='white', dpi=80) + ax.vlines(x=df.index, + ymin=0, + ymax=df.cty, + color=color, + alpha=0.7, + linewidth=20) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + # Annotate Text + for i, cty in enumerate(df.cty): + ax.text(i, cty + 0.5, round(cty, 1), horizontalalignment='center') + + # Title, Label, Ticks and Ylim + + plt.xticks(df.index, + df.manufacturer.str.upper(), + rotation=60, + horizontalalignment='right', + fontsize=10) + plt.yticks(fontsize=12) + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.ylim = (0, 30) + + # 添加底纹 + p1 = patches.Rectangle((.57, -0.005), + width=.33, + height=.13, + alpha=.1, + facecolor='green', + transform=fig.transFigure) + p2 = patches.Rectangle((.124, -0.005), + width=.446, + height=.13, + alpha=.1, + facecolor='red', + transform=fig.transFigure) + fig.add_artist(p1) + fig.add_artist(p2) + + plt.title(title, fontsize=int(title_font_size)) + plt.savefig(f"{chart_out_path}") # 保存图片 输出一个展示的png + + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Lollipop_Chart(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, color): + df_raw = pd.read_csv(file_path) + df = df_raw[[x_column_name, + y_column_name]].groupby(y_column_name).apply(lambda x: x.mean()) + df.sort_values(x_column_name, inplace=True) + df.reset_index(inplace=True) + + # Draw plot + fig, ax = plt.subplots(figsize=(9.4, 4.25), dpi=200) + + ax.vlines(x=df.index, + ymin=0, + ymax=df.cty, + color=color, + alpha=0.7, + linewidth=4) + + ax.scatter(x=df.index, y=df[x_column_name], s=85, color=color, alpha=0.7) + + # Title, Label, Ticks and Ylim + + ax.set_xticks(df.index) + ax.set_xticklabels(df.manufacturer.str.upper(), + rotation=60, + fontdict={ + 'horizontalalignment': 'right', + 'size': 11 + }) + ax.set_ylim(0, 30) + plt.yticks(fontsize=12) + + # Annotate + for row in df.itertuples(): + ax.text(row.Index, + row.cty + .5, + s=round(row.cty, 2), + horizontalalignment='center', + verticalalignment='bottom', + fontsize=12) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=int(title_font_size)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Dot_Plot(file_path, chart_out_path, out_path, x_column_name, y_column_name, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name, line_color, point_color): + df_raw = pd.read_csv(file_path) + df = df_raw[[x_column_name, + y_column_name]].groupby(y_column_name).apply(lambda x: x.mean()) + df.sort_values('cty', inplace=True) + df.reset_index(inplace=True) + + # Draw plot + fig, ax = plt.subplots(figsize=(10, 6), dpi=80) + ax.hlines(y=df.index, + xmin=11, + xmax=26, + color=line_color, + alpha=0.7, + linewidth=1, + linestyles='dashdot') + ax.scatter(y=df.index, x=df.cty, s=75, color=point_color, alpha=0.7) + + ax.set_yticks(df.index) + ax.set_yticklabels(df.manufacturer.str.title(), + fontdict={ + 'horizontalalignment': 'right', + 'fontsize': 12, + }) + + ax.set_xlim(10, 27) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=int(title_font_size)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Slope_Chart(file_path, chart_out_path, out_path, column_name_1, column_name_2, column_name_3, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name): + import matplotlib.lines as mlines + df = pd.read_csv(file_path) + + def newline(p1, p2): + ax = plt.gca() + l = mlines.Line2D([p1[0], p2[0]], [p1[1], p2[1]], + color='red' if p1[1] - p2[1] > 0 else 'green', + marker='o', + markersize=6) + ax.add_line(l) + return l + + fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=80) + + # Vertical Lines + ax.vlines(x=1, + ymin=500, + ymax=13000, + color='black', + alpha=0.7, + linewidth=1, + linestyles='dotted') + ax.vlines(x=3, + ymin=500, + ymax=13000, + color='black', + alpha=0.7, + linewidth=1, + linestyles='dotted') + + ax.scatter(y=df[column_name_1], + x=np.repeat(1, df.shape[0]), + s=10, + color='black', + alpha=0.7) + ax.scatter(y=df[column_name_2], + x=np.repeat(3, df.shape[0]), + s=10, + color='black', + alpha=0.7) + + # Line Segmentsand Annotation + for p1, p2, c in zip(df[column_name_1], df[column_name_2], df[column_name_3]): + newline([1, p1], [3, p2]) + ax.text(1 - 0.05, + p1, + c + ', ' + str(round(p1)), + horizontalalignment='right', + verticalalignment='center', + fontdict={'size': 14}) + ax.text(3 + 0.05, + p2, + c + ', ' + str(round(p2)), + horizontalalignment='left', + verticalalignment='center', + fontdict={'size': 14}) + + # 'Before' and 'After' Annotations + ax.text(1 - 0.05, + 13000, + 'BEFORE', + horizontalalignment='right', + verticalalignment='center', + fontdict={ + 'size': 15, + 'weight': 700 + }) + ax.text(3 + 0.05, + 13000, + 'AFTER', + horizontalalignment='left', + verticalalignment='center', + fontdict={ + 'size': 15, + 'weight': 700 + }) + + # Decoration + + ax.set(xlim=(0, 4), ylim=(0, 14000)) + + ax.set_xticks([1, 3]) + ax.set_xticklabels([column_name_1, column_name_2], fontdict={'size': 15, 'weight': 700}) + plt.yticks(np.arange(500, 13000, 2000), rotation=y_scale_font_angle, fontsize=10) + + # Lighten borders + plt.gca().spines["top"].set_alpha(.0) + plt.gca().spines["bottom"].set_alpha(.0) + plt.gca().spines["right"].set_alpha(.0) + plt.gca().spines["left"].set_alpha(.0) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=int(title_font_size)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Dumbbell_Plot(file_path, chart_out_path, out_path, column_name_1, column_name_2, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name): + import matplotlib.lines as mlines + + # Import Data + df = pd.read_csv(file_path) + df.sort_values(column_name_1, inplace=True) + df.reset_index(inplace=True) + + # Func to draw line segment + def newline(p1, p2): + ax = plt.gca() + l = mlines.Line2D([p1[0], p2[0]], [p1[1], p2[1]], color='#d5695d') + ax.add_line(l) + return l + + # Figure and Axes + fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), facecolor='#f8f2e4', dpi=80) + + # Vertical Lines + ax.vlines(x=.05, + ymin=0, + ymax=26, + color='black', + alpha=1, + linewidth=1, + linestyles='dotted') + ax.vlines(x=.10, + ymin=0, + ymax=26, + color='black', + alpha=1, + linewidth=1, + linestyles='dotted') + ax.vlines(x=.15, + ymin=0, + ymax=26, + color='black', + alpha=1, + linewidth=1, + linestyles='dotted') + ax.vlines(x=.20, + ymin=0, + ymax=26, + color='black', + alpha=1, + linewidth=1, + linestyles='dotted') + + # Points + ax.scatter(y=df['index'], x=df[column_name_1], s=50, color='#dc2624') + ax.scatter(y=df['index'], x=df[column_name_2], s=50, color='#e87a59') + + # Line Segments + for i, p1, p2 in zip(df['index'], df[column_name_1], df[column_name_2]): + newline([p1, i], [p2, i]) + + # Decoration + ax.set_facecolor('#f8f2e4') + + ax.set(xlim=(0, .25), ylim=(-1, 27)) + plt.yticks(fontsize=15) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=int(title_font_size)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +def Stacked_Histogram_for_Continuous_Variable(file_path, chart_out_path, out_path, x_column_name, group_by_column, + title, title_font_size, x_scale_font_angle, y_scale_font_angle, x_name, y_name): + df = pd.read_csv(file_path) + + # Prepare data + x_var = x_column_name + groupby_var = group_by_column + df_agg = df.loc[:, [x_var, groupby_var]].groupby(groupby_var) + vals = [df[x_var].values.tolist() for i, df in df_agg] + + # Draw + plt.figure(figsize=(9.4, 4.25), dpi=180) + colors = [plt.cm.Set1(i / float(len(vals) - 1)) for i in range(len(vals))] + n, bins, patches = plt.hist(vals, + 30, + stacked=True, + density=False, + color=colors[:len(vals)]) + + # Decoration + plt.legend({ + group: col + for group, col in zip( + np.unique(df[groupby_var]).tolist(), colors[:len(vals)]) + }) + + plt.xlabel(x_var) + + # plt.ylim(0, 25) + plt.xticks(ticks=bins[::3], labels=[round(b, 1) for b in bins[::3]]) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=int(title_font_size)) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 23、密度图(Density_Plot) +# 测试文件 mpg.csv +# 基础参数 图片的长/宽/分辨率/字号/x轴字号/标题的字号、xy轴限制/颜色 + +def Density_Plot(file_path, chart_out_path, x_scale_font_angle, y_scale_font_angle, y_name, x_name, y_font_size, x_font_size, out_path, + scale_font_size, title, title_font_size, column_name): + df = pd.read_csv(file_path) + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + sns.kdeplot(df.loc[df[column_name] == 4, column_name], + shade=True, + color="#01a2d9", + label=f"{column_name}=4", + alpha=.7) + sns.kdeplot(df.loc[df[column_name] == 5, column_name], + shade=True, + color="#dc2624", + label=f"{column_name}=5", + alpha=.7) + sns.kdeplot(df.loc[df[column_name] == 6, column_name], + shade=True, + color="#C89F91", + label=f"{column_name}=6", + alpha=.7) + sns.kdeplot(df.loc[df[column_name] == 8, column_name], + shade=True, + color="#649E7D", + label=f"{column_name}=8", + alpha=.7) + + # Decoration + sns.set(style="whitegrid", font_scale=scale_font_size) + plt.title(title, fontsize=title_font_size) + plt.legend() + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=y_font_size) + plt.ylabel(x_name, fontsize=x_font_size) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 25、山峰叠峦图(Joy_Plot) +# 测试文件 mpg.csv +# 基础参数 图片的长/宽/分辨率/字号/x轴字号/标题的字号、xy轴限制/颜色 + +def Joy_Plot(file_path, chart_out_path, out_path, title, title_font_size, x_scale_font_angle, y_scale_font_angle, y_name, x_name, column_name_1, column_name_2, + group_by_column, y_scale_limit): + mpg = pd.read_csv(file_path) + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + fig, axes = joypy.joyplot(mpg, + column=[column_name_1, column_name_2], + by=group_by_column, + ylim=y_scale_limit, + colormap=plt.cm.Set1, + figsize=(10, 6)) + + # Decoration + plt.title(title, fontsize=title_font_size) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 27、箱图(boxplot) + +# 测试文件 mpg.csv +# 基础参数 图片的长/宽/分辨率/字号/x轴字号/标题的字号、xy轴限制/颜色 + +def boxplot(file_path, chart_out_path, out_path, + scale_font_size, title, title_font_size, font_size, font_color, y_scale_min, y_scale_max, x_column_name, y_column_name, x_scale_font_angle, y_scale_font_angle, y_name, x_name, color): + df = pd.read_csv(file_path) + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + sns.boxplot( + x=x_column_name, + y=y_column_name, + data=df, + notch=False, + palette=color, + ) + + # Add N Obs inside boxplot (optional) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + def add_n_obs(df, group_col, y): + medians_dict = { + grp[0]: grp[1][y].median() + for grp in df.groupby(group_col) + } + xticklabels = [x.get_text() for x in plt.gca().get_xticklabels()] + n_obs = df.groupby(group_col)[y].size().values + for (x, xticklabel), n_ob in zip(enumerate(xticklabels), n_obs): + plt.text(x, + medians_dict[xticklabel] * 1.01, + "#obs : " + str(n_ob), + horizontalalignment='center', + fontdict={'size': font_size}, + color=font_color) + + add_n_obs(df, group_col=x_column_name, y=y_column_name) + + # Decoration + sns.set(style="whitegrid", font_scale=scale_font_size) + plt.title(title, fontsize=title_font_size) + plt.ylim(y_scale_min, y_scale_max) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 28、箱图结合点图(Dot_Box_Plot) +# 测试文件 mpg.csv + + +def Dot_Box_Plot(file_path, chart_out_path, out_path, + title, title_font_size, point_size, line_color, x_scale_font_angle, y_scale_font_angle, y_name, x_name, x_column_name, y_column_name, group_by_column, legend_name, color): + df = pd.read_csv(file_path) + plt.figure(figsize=(9.4, 4.25), dpi=180) + sns.boxplot( + x=x_column_name, + y=y_column_name, + data=df, + hue=legend_name, + palette=color, + ) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.legend(loc=9) + sns.stripplot(x=x_column_name, + y=y_column_name, + data=df, + color='#dc2624', + size=point_size, + jitter=1) + + for i in range(len(df[group_by_column].unique()) - 1): + plt.vlines(i + .5, 10, 45, linestyles='solid', colors=line_color, alpha=0.2) + + # Decoration + plt.title(title, fontsize=title_font_size) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 28、箱图结合点图(Dot_Box_Plot) +# 测试文件 mpg.csv + + +def Violin_Plot(file_path, chart_out_path, out_path, + title, title_font_size, x_column_name, y_column_name, x_scale_font_angle, y_scale_font_angle, y_name, x_name, color): + df = pd.read_csv(file_path) + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + sns.violinplot(x=x_column_name, + y=y_column_name, + data=df, + scale='width', + palette=color, + inner='quartile') + + # Decoration + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.title(title, fontsize=title_font_size) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 30、金字塔图(Population_Pyramid) + +# 测试文件 email_campaign_funnel.csv + + +def Population_Pyramid(file_path, chart_out_path, out_path, + title, title_font_size, x_name, y_name, group_by_column, x_scale_font_angle, y_scale_font_angle, y_column_name, x_column_name): + df = pd.read_csv(file_path) + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + group_col = group_by_column + order_of_bars = df.Stage.unique()[::-1] + colors = [ + plt.cm.Set1(i / float(len(df[group_col].unique()) - 1)) + for i in range(len(df[group_col].unique())) + ] + + for c, group in zip(colors, df[group_col].unique()): + sns.barplot(x=x_column_name, + y=y_column_name, + data=df.loc[df[group_col] == group, :], + order=order_of_bars, + color=c, + label=group) + + # Decorations + plt.title(title, fontsize=title_font_size) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.legend() + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 32、华夫饼图(Waffle_Chart) + +# 测试文件 mpg.csv + + +def Waffle_Chart(file_path, chart_out_path, out_path, rows_number, group_by_column, data_column, x_scale_font_angle, y_scale_font_angle, y_name, x_name, + title_font_size, title): + df_raw = pd.read_csv(file_path) + + from pywaffle import Waffle + + # Prepare Data + df = df_raw.groupby(group_by_column).size().reset_index(name='counts') + n_categories = df.shape[0] + colors = [plt.cm.Set1(i / float(n_categories)) + for i in range(n_categories)] + + # Draw Plot and Decorate + plt.figure(FigureClass=Waffle, + plots={ + '111': { + 'values': + df[data_column], + 'labels': [ + "{0} ({1})".format(n[0], n[1]) + for n in df[[group_by_column, data_column]].itertuples() + ], + 'legend': { + 'loc': 'upper left', + 'bbox_to_anchor': (1.05, 1), + 'fontsize': 12 + }, + }, + }, + rows=rows_number, + colors=colors, + dpi=180, + figsize=(9.4, 4.25)) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + plt.title(title, fontsize=title_font_size) + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 33、饼图(Pie_Chart) +# 测试文件 mpg.csv + + +def Pie_Chart(file_path, chart_out_path, out_path, y_name, title, group_by_column, title_font_size, y_scale_font_angle): + df_raw = pd.read_csv(file_path) + + plt.figure(figsize=(9.4, 4.25), dpi=180) + # Prepare Data + df = df_raw.groupby(group_by_column).size() + + # Make the plot with pandas + df.plot(kind='pie', subplots=True) + plt.title(title, fontsize=title_font_size) + + plt.ylabel(y_name) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 34、树状图(Treemap) +# 测试文件 mpg.csv + + +def Treemap(file_path, chart_out_path, out_path, title, group_by_column, data_column, title_font_size): + import squarify + + df_raw = pd.read_csv(file_path) + + # Prepare Data + df = df_raw.groupby(group_by_column).size().reset_index(name='counts') + labels = df.apply(lambda x: str(x[0]) + "\n (" + str(x[1]) + ")", axis=1) + sizes = df[data_column].values.tolist() + colors = [plt.cm.Set2(i / float(len(labels))) for i in range(len(labels))] + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + squarify.plot(sizes=sizes, label=labels, color=colors, alpha=.8) + + # Decorate + plt.title(title, fontsize=title_font_size) + plt.axis('off') + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 35、柱状图(Bar_Chart +# 测试文件 mpg.csv + + +def Bar_Chart(file_path, chart_out_path, out_path, title, title_font_size, font_size, y_scale_min, y_scale_max, width, group_by_column, x_scale_font_angle, + y_scale_font_angle, y_name, x_name): + import random + df_raw = pd.read_csv(file_path) + + df = df_raw.groupby(group_by_column).size().reset_index(name='counts') + n = df[group_by_column].unique().__len__() + 1 + all_colors = list(plt.cm.colors.cnames.keys()) + random.seed(100) + c = random.choices(all_colors, k=n) + + # Plot Bars + plt.figure(figsize=(9.4, 4.25), dpi=180) + plt.bar(df[group_by_column], df['counts'], color=c, width=width) + for i, val in enumerate(df['counts'].values): + plt.text(i, + val, + float(val), + horizontalalignment='center', + verticalalignment='bottom', + fontdict={ + 'fontweight': 500, + 'size': font_size + }) + + # Decoration + plt.gca().set_xticklabels(df[group_by_column], + rotation=60, + horizontalalignment='right') + plt.title(title, fontsize=title_font_size) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.ylim(y_scale_min, y_scale_max) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 36、时间序列图(Time_Series_Plot) +# 测试文件 AirPassengers.csv + + +def Time_Series_Plot(file_path, chart_out_path, out_path, + polt_color, title, title_font_size, x_column, y_column, x_font_size, y_font_size, y_scale_min, y_scale_max, x_scale_font_angle, + y_scale_font_angle, y_name, x_name): + df = pd.read_csv(file_path) + + # Draw Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + plt.plot(df[x_column], df[y_column], color=polt_color) + + # Decoration + plt.ylim(y_scale_min, y_scale_max) + xtick_location = df.index.tolist()[::12] + xtick_labels = [x[-4:] for x in df.date.tolist()[::12]] + plt.xticks(ticks=xtick_location, + labels=xtick_labels, + rotation=0, + fontsize=x_font_size, + horizontalalignment='center', + alpha=.7) + plt.yticks(fontsize=y_font_size, alpha=.7) + plt.title(title, fontsize=title_font_size) + plt.grid(axis='both', alpha=.3) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + # Remove borders + plt.gca().spines["top"].set_alpha(0.0) + plt.gca().spines["bottom"].set_alpha(0.3) + plt.gca().spines["right"].set_alpha(0.0) + plt.gca().spines["left"].set_alpha(0.3) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 41、多重时间序列图(Multiple_Time_Series)!!! +# 测试文件 mortality.csv + +def Multiple_Time_Series(file_path, chart_out_path, out_path, + font_size, title, title_font_size, x_font_size, y_font_size, x_scale_min, x_scale_max, x_scale_font_angle, y_scale_font_angle, y_name, + x_name): + df = pd.read_csv(file_path) + + y_LL = 100 + y_UL = int(df.iloc[:, 1:].max().max() * 1.1) + y_interval = 400 + mycolors = ['tab:red', 'tab:blue', 'tab:green', 'tab:orange'] + + fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=180) + + columns = df.columns[1:] + for i, column in enumerate(columns): + plt.plot(df.date.values, df[column].values, lw=1.5, color=mycolors[i]) + plt.text(df.shape[0] + 1, + df[column].values[-1], + column, + fontsize=font_size, + color=mycolors[i]) + + for y in range(y_LL, y_UL, y_interval): + plt.hlines(y, + xmin=0, + xmax=71, + colors='black', + alpha=0.3, + linestyles="--", + lw=0.5) + + # Decorations + plt.tick_params(axis="both", + which="both", + bottom=False, + top=False, + labelbottom=True, + left=False, + right=False, + labelleft=True) + + # Lighten borders + plt.gca().spines["top"].set_alpha(.3) + plt.gca().spines["bottom"].set_alpha(.3) + plt.gca().spines["right"].set_alpha(.3) + plt.gca().spines["left"].set_alpha(.3) + + plt.title(title, + fontsize=title_font_size) + plt.yticks(range(y_LL, y_UL, y_interval), + [str(y) for y in range(y_LL, y_UL, y_interval)], + fontsize=y_font_size) + plt.xticks(range(0, df.shape[0], 12), + df.date.values[::12], + horizontalalignment='left', + rotation=45, + fontsize=x_font_size) + plt.ylim(y_LL, y_UL) + plt.xlim(x_scale_min, x_scale_max) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 42、双坐标系时间序列图(Plotting_with_different_scales_using_secondary_Y_axis) +# 测试文件 economics.csv + +def Plotting_with_different_scales_using_secondary_Y_axis(file_path, chart_out_path, out_path, + x_name, x_font_size, y_name_1, y_font_size_1, y_font_color_1, y_name_2, y_font_size_2, + y_font_color_2, title, title_font_size, x_column, y_column_1, y_column_2, x_scale_font_angle, + y_scale_font_angle): + df = pd.read_csv(file_path) + + x = df[x_column] + y1 = df[y_column_1] + y2 = df[y_column_2] + + # Plot Line1 (Left Y Axis) + fig, ax1 = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=180) + ax1.plot(x, y1, color='tab:red') + + # Plot Line2 (Right Y Axis) + ax2 = ax1.twinx() # instantiate a second axes that shares the same x-axis + ax2.plot(x, y2, color='tab:blue') + + # Decorations + # ax1 (left Y axis) + ax1.set_xlabel(x_name, fontsize=x_font_size) + ax1.tick_params(axis='x', rotation=70, labelsize=12) + ax1.set_ylabel(y_name_1, color=y_font_color_1, fontsize=y_font_size_1) + ax1.tick_params(axis='y', rotation=0, labelcolor='#dc2624') + ax1.grid(alpha=.4) + + # ax2 (right Y axis) + ax2.set_ylabel(y_name_2, color=y_font_color_2, fontsize=y_font_size_2) + ax2.tick_params(axis='y', labelcolor='#01a2d9') + ax2.set_xticks(np.arange(0, len(x), 60)) + ax2.set_xticklabels(x[::60], rotation=90, fontdict={'fontsize': 10}) + ax2.set_title( + title, + fontsize=title_font_size) + fig.tight_layout() + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name_1, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 44、堆积面积图(Stacked_Area_Chart) +# 测试文件 nightvisitors.csv + +def Stacked_Area_Chart(file_path, chart_out_path, out_path, + y_scale_min, y_scale_max, title, title_font_size, data_column, x_scale_font_angle, y_scale_font_angle, y_name, x_name): + df = pd.read_csv(file_path) + + # Decide Colors + mycolors = ['#dc2624', '#2b4750', '#45a0a2', '#e87a59', + '#7dcaa9', '#649E7D', '#dc8018', '#C89F91'] + + # Draw Plot and Annotate + + fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=180) + columns = df.columns[1:] + labs = columns.values.tolist() + + # Prepare data + x = df[data_column].values.tolist() + y0 = df[columns[0]].values.tolist() + y1 = df[columns[1]].values.tolist() + y2 = df[columns[2]].values.tolist() + y3 = df[columns[3]].values.tolist() + y4 = df[columns[4]].values.tolist() + y5 = df[columns[5]].values.tolist() + y6 = df[columns[6]].values.tolist() + y7 = df[columns[7]].values.tolist() + y = np.vstack([y0, y2, y4, y6, y7, y5, y1, y3]) + + # Plot for each column + labs = columns.values.tolist() + ax = plt.gca() + ax.stackplot(x, y, labels=labs, colors=mycolors, alpha=0.8) + ax.tick_params(axis='x', rotation=45, labelsize=12) + # Decorations + ax.set_title(title, fontsize=title_font_size) + ax.set(ylim=[y_scale_min, y_scale_max]) + ax.legend(fontsize=10, ncol=4) + plt.xticks(x[::5], fontsize=10, horizontalalignment='center') + plt.yticks(np.arange(10000, 100000, 20000)) + plt.xlim(x[0], x[-1]) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + # Lighten borders + plt.gca().spines["top"].set_alpha(0) + plt.gca().spines["bottom"].set_alpha(.3) + plt.gca().spines["right"].set_alpha(0) + plt.gca().spines["left"].set_alpha(.3) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 45、非堆积面积图(Area_Chart_UnStacked) +# 测试文件 economics.csv + +def Area_Chart_UnStacked(file_path, chart_out_path, out_path, + y_scale_min, y_scale_max, title, title_font_size, x_column, y_column_1, y_column_2, x_scale_font_angle, y_scale_font_angle, y_name, x_name): + df = pd.read_csv(file_path) + + # Prepare Data + x = df[x_column].values.tolist() + y1 = df[y_column_1].values.tolist() + y2 = df[y_column_2].values.tolist() + columns = [y_column_1, y_column_2] + + # Draw Plot + fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=180) + ax.fill_between(x, + y1=y1, + y2=0, + label=columns[1], + alpha=0.5, + color='#dc2624', + linewidth=2) + ax.fill_between(x, + y1=y2, + y2=0, + label=columns[0], + alpha=0.5, + color='#649E7D', + linewidth=2) + + # Decorations + ax.set_title(title, + fontsize=title_font_size) + ax.set(ylim=[y_scale_min, y_scale_max]) + ax.legend(loc='best', fontsize=12) + plt.xticks(x[::50], fontsize=10, horizontalalignment='center') + plt.yticks(np.arange(2.5, 30.0, 2.5)) + plt.xlim(-10, x[-1]) + plt.tick_params(axis='x', rotation=45, labelsize=12) + + # Draw Tick lines + for y in np.arange(2.5, 30.0, 2.5): + plt.hlines(y, + xmin=0, + xmax=len(x), + colors='black', + alpha=0.3, + linestyles="--", + lw=0.5) + + # Lighten borders + plt.gca().spines["top"].set_alpha(0) + plt.gca().spines["bottom"].set_alpha(.3) + plt.gca().spines["right"].set_alpha(0) + plt.gca().spines["left"].set_alpha(.3) + + plt.xticks(rotation=x_scale_font_angle, fontsize=10) + plt.yticks(rotation=y_scale_font_angle, fontsize=10) + + plt.ylabel(y_name, fontsize=12) + plt.ylabel(x_name, fontsize=12) + + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 48、聚类树形图(Dendrogram) !!! +# 测试文件 USArrests.csv +# + +def Dendrogram(file_path, chart_out_path, out_path, + x_font_size, y_font_size, title, title_font_size): + import scipy.cluster.hierarchy as shc + + df = pd.read_csv(file_path) + + # Plot + plt.figure(figsize=(9.4, 4.25), dpi=180) + plt.title(title, fontsize=title_font_size) + dend = shc.dendrogram(shc.linkage(df[['Murder', 'Assault', 'UrbanPop', + 'Rape']], + method='ward'), + labels=df.State.values, + color_threshold=200) + plt.xticks(fontsize=x_font_size) + plt.yticks(fontsize=y_font_size) + plt.savefig(f"{chart_out_path}") # 保存图片 + plt.savefig(f"{out_path}.png") + plt.savefig(f"{out_path}.svg") + plt.savefig(f"{out_path}.pdf") + + +# 冯洋 +# 基础参数 file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Composition_Bar.csv + +def Composition_Bar(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + code = f""" +datas <- read.csv("{file_path}") + +freqtable <- table(datas[,1]) +df <- as.data.frame.table(freqtable) +library(ggplot2) +theme_set(theme_classic()) + +x <- df[,1] + +y <- df[,2] + +# Plot +g <- ggplot(df, aes(x, y)) +gg <- g + geom_bar(stat="identity", width = 0.5, fill="tomato2") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +def Composition_BarOfColorsDataByGroup(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, + legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +library(ggplot2) +theme_set(theme_classic()) + +x <- datas[,1] + +y <- datas[,2] + +# Plot +g <- ggplot(datas, aes(x)) +gg <- g + geom_bar(aes(fill=y), width = 0.5) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 Composition_Pie.csv + +def Composition_Pie(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +library(ggplot2) +theme_set(theme_classic()) + +# Source: Frequency table +df <- as.data.frame(table(datas)) +colnames(df) <- c("class", "freq") +pie <- ggplot(df, aes(x = "", y=freq, fill = factor(class))) + + geom_bar(width = 1, stat = "identity") + + theme(axis.line = element_blank(), + plot.title = element_text(hjust=0.5)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- pie + coord_polar(theta = "y", start=0) + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 Composition_Pie.csv + +def Composition_Waffles(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +library("ggplot2") + +var <- datas[,1] # the categorical data + +nrows <- 10 +df <- expand.grid(y = 1:nrows, x = 1:nrows) +categ_table <- round(table(var) * ((nrows*nrows)/(length(var)))) + +df$category <- factor(rep(names(categ_table), categ_table)) + +## Plot +gg <- ggplot(df, aes(x = x, y = y, fill = category)) + + geom_tile(color = "black", size = 0.5) + + scale_x_continuous(expand = c(0, 0)) + + scale_y_continuous(expand = c(0, 0), trans = 'reverse') + + scale_fill_brewer(palette = "{color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, model2, model3, model4, model5 +# 实例文件 Correlation_Box.csv + +def Correlation_Box(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, model1, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, model2, model3, model4, + model5): + code_1 = """ggMarginal(gg, type = "histogram", fill="transparent")""" + code_2 = """ggMarginal(gg, type = "density", fill="transparent")""" + code_3 = """ggMarginal(gg, type = "boxplot", fill="transparent")""" + code_4 = """ggMarginal(gg, type = "violin", fill="transparent")""" + code_5 = """ggMarginal(gg, type = "densigram", fill="transparent")""" + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +# load package and data +library(ggplot2) +library(ggExtra) + +# Scatterplot +theme_set(theme_bw()) # pre-set the bw theme. + +gg <- ggplot(datas, aes(x, y)) + + geom_count(show.legend={legend}) + + geom_smooth(method="lm", se=F) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + + +png("{chart_out_path}",width=900,height=408) +if({model1}) {code_1} +if({model2}) {code_2} +if({model3}) {code_3} +if({model4}) {code_4} +if({model5}) {code_5} +dev.off() + +png("{out_path}.png") +if({model1}) {code_1} +if({model2}) {code_2} +if({model3}) {code_3} +if({model4}) {code_4} +if({model5}) {code_5} +dev.off() + +pdf("{out_path}.pdf") +if({model1}) {code_1} +if({model2}) {code_2} +if({model3}) {code_3} +if({model4}) {code_4} +if({model5}) {code_5} +dev.off() + +svg("{out_path}.svg") +if({model1}) {code_1} +if({model2}) {code_2} +if({model3}) {code_3} +if({model4}) {code_4} +if({model5}) {code_5} +dev.off() + + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Correlation_Bubble.csv + +def Correlation_Bubble(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, size_legend_name, legend_name, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +z <- datas[,3] + +w <- datas[,4] + +library(ggplot2) + +# Scatterplot +theme_set(theme_bw()) # pre-set the bw theme. +g <- ggplot(datas, aes(y, z)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + col="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +gg <- g + geom_jitter(aes(col=x, size=w)) + + geom_smooth(aes(col=x), method="lm", se=F) + + labs(size="{size_legend_name}") + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Correlation_Correlation.csv + +def Correlation_Correlation(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + code = f""" +datas <- read.csv("{file_path}") + +library(ggplot2) +library(ggcorrplot) + +# Correlation matrix +corr <- round(cor(datas), 1) + +# Plot +gg <- ggcorrplot(corr, hc.order = TRUE, + type = "lower", + lab = TRUE, + lab_size = 3, + method="circle", + colors = c("tomato2", "white", "springgreen3"), + title="{title}", + ggtheme=theme_bw) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Correlation_Count.csv + +def Correlation_Count(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +# load package and data +library(ggplot2) + +# Scatterplot +theme_set(theme_bw()) # pre-set the bw theme. +gg <- ggplot(datas, aes(x, y)) + + geom_count(col="tomato3", show.legend={legend}) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Correlation_Jitter.csv + +def Correlation_Jitter(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + legend, legend_name, legend_position = "", "", "" + + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + + # load package and data +library(ggplot2) + +# Scatterplot +theme_set(theme_bw()) # pre-set the bw theme. +g <- ggplot(datas, aes(x, y, fill=x)) +gg <- g + geom_jitter(width = .5, size=1) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Correlation_Scatter.csv + +def Correlation_Scatter(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, size_legend_name, legend_name, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +z <- datas[,3] + +w <- datas[,4] + +library(ggplot2) + +options(scipen=999) +library(ggplot2) +theme_set(theme_bw()) + +# Scatterplot +gg <- ggplot(datas, aes(x=y, y=z)) + + geom_point(aes(col=x, size=w)) + + geom_smooth(method="loess", se=F) + + xlim(c(0, 0.1)) + + ylim(c(0, 500000)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + col="{legend_name}", + size="{size_legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Deviation_Area.csv + +def Deviation_Area(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +library(lubridate) + +# Compute % Returns +datas$returns_perc <- c(0, diff(y)/y[-length(y)]) + +x <- as.Date(x) + +# Create break points and labels for axis ticks +brks <- x[seq(1, length(x), 12)] +lbls <- lubridate::year(x[seq(1, length(x), 12)]) + +# Plot +gg <- ggplot(datas, aes(x, returns_perc)) + + geom_area() + + scale_x_date(breaks=brks, labels=lbls) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Deviation_Bar.csv + +def Deviation_Bar(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, type_1, type_2, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}", row.name = 1) + +y <- datas[,1] + +library(ggplot2) +theme_set(theme_bw()) + +# Data Prep +x <- rownames(datas) +z <- round((y - mean(y))/sd(y), 2) +w <- ifelse(z < 0, "{type_2}", "{type_1}") +datas <- datas[order(z), ] # sort +x <- factor(x,levels = x) + +#Diverging Barcharts +gg <- ggplot(datas, aes(x, z, label=z)) + + geom_bar(stat='identity', aes(fill=w), width=.5) + + scale_fill_manual( + labels = c("{type_1}", "{type_2}"), + values = c("{type_1}"="#00ba38", "{type_2}"="#f8766d")) + + coord_flip() + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Deviation_Dots.csv + +def Deviation_Dots(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, type_1, type_2, x_font_color, y_font_color, + x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" + datas <- read.csv("{file_path}") + + x <- datas[,1] + + y <- datas[,2] + + z <- datas[,3] + + library(ggplot2) + theme_set(theme_bw()) + + # Plot + gg <- ggplot(datas, aes(x, y, label=y)) + + geom_point(stat='identity', aes(col=z), size=6) + + scale_font_color_manual( + labels = c("{type_1}", "{type_2}"), + values = c("{type_1}"="#00ba38", "{type_2}"="#f8766d")) + + geom_text(color="white", size=2) + + ylim(-2.5, 2.5) + + coord_flip() + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Deviation_Lollipop.csv + +def Deviation_Lollipop(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_bw()) + +gg <- ggplot(datas, aes(x, y, label=y)) + + geom_point(stat='identity', fill="black", size=6) + + geom_segment(aes(y = 0, + x = x, + yend = y, + xend = x), + color = "black") + + geom_text(color="white", size=2) + + ylim(-2.5, 2.5) + + coord_flip() + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, line_color, point_color +# 实例文件 Distribution_BoxWithDots.csv + +def Distribution_BoxWithDots(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, + legend_position, line_color, point_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_bw()) + +# plot +g <- ggplot(datas, aes(x, y, fill=x)) +gg <- g + geom_boxplot(color="{line_color}") + + geom_dotplot(binaxis='y', + stackdir='center', + dotsize = .5, + fill="{point_color}", + binwidth=0.5) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, line_color +# 实例文件 Distribution_Box_1.csv + +def Distribution_Box_1(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, line_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_classic()) + +g <- ggplot(datas, aes(x, y)) +gg <- g + geom_boxplot(varwidth=T, fill="plum", color="{line_color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, line_color +# 实例文件 Distribution_Box_2.csv + +def Distribution_Box_2(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, + line_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +z <- datas[,3] + +library(ggthemes) +library(ggplot2) + +g <- ggplot(datas, aes(x, y)) +gg <- g + geom_boxplot(aes(fill=factor(z)), color="{line_color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, line_color +# 实例文件 Distribution_DensityFunction.csv + +def Distribution_DensityFunction(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, + legend_position, line_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_classic()) + +g <- ggplot(datas, aes(x)) +gg <- g + geom_density(aes(fill=factor(y)), alpha=0.8, color="{line_color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, model +# 实例文件 Distribution_Histogram.csv + +def Distribution_Histogram(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, model, x_font_color, + y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" + datas <- read.csv("{file_path}") + + x <- datas[,1] + + y <- datas[,2] + + library(ggplot2) + theme_set(theme_classic()) + + # Histogram on a Continuous (Numeric) Variable + g <- ggplot(mpg, aes(x)) + + + scale_fill_brewer(palette = "{color}") + + + g1 <- g + geom_histogram(aes(fill=y), + binwidth = .1, + col="black", + size=.1) # change binwidth + + g2 <- g + geom_histogram(aes(fill=y), + bins=5, + col="black", + size=.1) # change number of bins + + gg <- if({model}) g2 else g1 + + gg <- gg + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + + gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 Distribution_HistogramOfClassificationVariables.csv + +def Distribution_HistogramOfClassificationVariables(file_path, chart_out_path, out_path, title, caption, subtitle, + x_name, y_name, title_font_size, x_font_size, y_font_size, x_scale_font_size, + y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, + background_color, legend_name, legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_classic()) + +# Histogram on a Categorical variable +g <- ggplot(datas, aes(x)) +gg <- g + geom_bar(aes(fill=y), width = 0.5) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, color +# 实例文件 Distribution_PopulationPyramid.csv + +def Distribution_PopulationPyramid(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, legend_name, + legend_position, color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +legend <- datas[,3] + +library(ggplot2) +library(ggthemes) +options(scipen = 999) # turns of scientific notations like 1e+40 + +# X Axis Breaks and Labels +brks <- seq(-15000000, 15000000, 5000000) +lbls = paste0(as.character(c(seq(15, 0, -5), + seq(5, 15, 5))), "m") + +# Plot +g <- ggplot(datas, aes(x = x, + y = y, fill = legend)) # Fill column +gg <- g + geom_bar(stat = "identity", width = .6) + # draw the bars +scale_y_continuous(breaks = brks, # Breaks +labels = lbls) + # Labels + coord_flip() + # Flip axes +labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_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}"), + legend.position="{legend_position}") + +theme_tufte() + # Tufte theme from ggfortify +theme(plot.title = element_text(hjust = .5), + axis.ticks = element_blank()) + # Centre plot title +scale_fill_brewer(palette = "{color}") # Color palette + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, color +# 实例文件 Distribution_TufteBox.csv + +def Distribution_TufteBox(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, + color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggthemes) +library(ggplot2) + +theme_set(theme_tufte()) # from ggthemes + +# plot +g <- ggplot(datas, aes(x, y, fill=x)) +gg <- g + geom_tufteboxplot(color="{color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, line_color +# 实例文件 Distribution_Violin.csv + +def Distribution_Violin(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, + x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position, + line_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_bw()) + +g <- ggplot(datas, aes(x, y, fill=x)) +gg <- g + geom_violin(color="{line_color}") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + # 基础参数 file_path, chart_out_path, out_path, title, caption, subtitle, title_font_size, + + +# 高级参数 title_font_color, background_color +# 实例文件 Group_HierarchicalTree.csv + +def Group_HierarchicalTree(file_path, chart_out_path, out_path, title, caption, subtitle, title_font_size, + title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}", row.names = 1) + +library(ggplot2) +library(ggdendro) +theme_set(theme_bw()) + +hc <- hclust(dist(datas), "ave") # hierarchical clustering + +# plot +gg <- ggdendrogram(hc, rotate = TRUE, size = 2) + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_color}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 Sort_Dots.csv + +def Sort_Dots(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, y_font_size, + x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +library(scales) +theme_set(theme_classic()) + +# Plot +gg <- ggplot(datas, aes(x, y, fill=x)) + + geom_point(col="tomato2", size=3) + # Draw points + geom_segment(aes(x=x, + xend=x, + y=min(y), + yend=max(y)), + linetype="dashed", + size=0.1) + # Draw dashed lines + coord_flip() + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, species_1, species_2 +# 实例文件 Sort_Lean.csv + +def Sort_Lean(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, y_font_size, + x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, time_1, time_2, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, species_1, species_2): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +df <- read.csv("{file_path}") + +library(ggplot2) +library(scales) +theme_set(theme_classic()) + +# prep data +colnames(df) <- c("continent", "{time_1}", "{time_2}") +left_label <- paste(df$continent, round(df$`{time_1}`),sep=", ") +right_label <- paste(df$continent, round(df$`{time_2}`),sep=", ") +df$class <- ifelse((df$`{time_2}` - df$`{time_1}`) < 0, "red", "green") + +# Plot +g <- ggplot(df) + + geom_segment(aes(x=1, xend=2, + y=`{time_1}`, yend=`{time_2}`, + col=class), size=.75, + show.legend=F) + + geom_vline(xintercept=1, linetype="dashed", size=.1) + + geom_vline(xintercept=2, linetype="dashed", size=.1) + + scale_font_color_manual(labels = c("Up", "Down"), + values = c("green"="#00ba38", + "red"="#f8766d")) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + + xlim(.5, 2.5) + ylim(0,(1.1*(max(df$`{time_1}`, df$`{time_2}`)))) + +# Add texts +g <- g + geom_text(label=left_label, y=df$`{time_1}`, + x=rep(1, NROW(df)), hjust=1.1, size=3.5) +g <- g + geom_text(label=right_label, y=df$`{time_2}`, + x=rep(2, NROW(df)), hjust=-0.1, size=3.5) +g <- g + geom_text(label="{species_1}", x=1, y=1.1*(max(df$`{time_1}`, + df$`{time_2}`)), hjust=1.2, size=5) +g <- g + geom_text(label="{species_2}", x=2, y=1.1*(max(df$`{time_1}`, + df$`{time_2}`)), hjust=-0.1, size=5) + +# Minify theme +gg <- g + theme(panel.background_color = element_blank(), + panel.grid = element_blank(), + axis.ticks = element_blank(), + axis.text.x = element_blank(), + panel.border = element_blank(), + plot.margin = unit(c(1,2,1,2), "cm")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 Sort_Lollipop.csv + +def Sort_Lollipop(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +theme_set(theme_bw()) + +# Plot +gg <- ggplot(datas, aes(x, y, fill=x)) + + geom_point(size=3) + + geom_segment(aes(x=x, + xend=x, + y=0, + yend=y)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 Sort_OrderedBar.csv + +def Sort_OrderedBar(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, title_font_size, x_font_size, + y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +df <- aggregate(y, by=list(x), FUN=mean) +colnames(df) <- c("{x_name}", "{y_name}") +df <- df[order(df${y_name}), ] +df${x_name} <- factor(df${x_name}, levels = df${x_name}) + library(ggplot2) +theme_set(theme_bw()) + +# Draw plot +gg <- ggplot(df, aes(x={x_name}, y={y_name}, fill={x_name})) + + geom_bar(stat="identity", width=.5, fill="tomato3") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_Accumulation.csv + +def TemporalChanges_Accumulation(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + type_1, type_2, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +z <- datas[,3] + +library(ggplot2) +library(lubridate) +theme_set(theme_bw()) + +x <- as.Date(x) + +# labels and breaks for X axis text +brks <- x[seq(1, length(x), 12)] +lbls <- lubridate::year(brks) + +# plot +gg <- ggplot(datas, aes(x)) + + geom_area(aes(y=y+z, fill="{type_1}")) + + geom_area(aes(y=z, fill="{type_2}")) + + scale_x_date(labels = lbls, breaks = brks) + + scale_fill_manual( + values = c("{type_1}"="#00ba38", "{type_2}"="#f8766d")) + + theme(panel.grid.minor = element_blank()) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, legend_position +# 实例文件 TemporalChanges_CalendarHeat.csv + +def TemporalChanges_CalendarHeat(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + legend, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color, legend_name, + legend_position): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +df <- read.csv("{file_path}") + +x <- df[,1] + +y <- df[,2] + +z <- df[,3] + +w <- df[,4] + +v <- df[,5] + +u <- df[,6] + +library(ggplot2) +library(plyr) +library(scales) +library(zoo) + +x <- as.Date(x) # format date + +names(df) <- c("x", "y", "z", "w", "v", "u") + +# Create Month Week +df$yearmonth <- as.yearmon(x) +df$yearmonthf <- factor(df$yearmonth) +df <- ddply(df,.(yearmonthf), transform, monthweek=1+u-min(u)) + +# Plot +gg <- ggplot(df, aes(monthweek, v, fill = y)) + + geom_tile(colour = "white") + + facet_grid(z~w) + + scale_fill_gradient(low="red", high="green") + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + fill="{legend_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}"), + legend.position="{legend_position}") + +gg <- if(!{legend}) gg+guides(fill="none") else gg + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_DataframeTimeSeries.csv + +def TemporalChanges_DataframeTimeSeries(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, + y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +x <- as.Date(x) + +library(ggplot2) +theme_set(theme_classic()) + +# Allow Default X Axis Labels +gg <- ggplot(datas, aes(x)) + + geom_line(aes(y=y)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_SeasonalTimeSeries.csv + +def TemporalChanges_SeasonalTimeSeries(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, + time, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + time = time.split("-") + + time = (int(time[0]), int(time[1])) + + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +datas <- ts(datas, frequency = 12, start = c({time[0]},{time[1]})) + +library(ggplot2) +library(forecast) +theme_set(theme_classic()) + +# Plot +gg <-ggseasonplot(datas) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_ShowMultipleTimeSeriesSimultaneously.csv + +def TemporalChanges_ShowMultipleTimeSeriesSimultaneously(file_path, chart_out_path, out_path, title, caption, subtitle, + x_name, y_name, title_font_size, x_font_size, y_font_size, x_scale_font_size, + y_scale_font_size, x_scale_font_angle, y_scale_font_angle, type_1, type_2, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, + background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" + datas <- read.csv("{file_path}") + + x <- datas[,1] + + y <- datas[,2] + + z <- datas[,3] + + library(ggplot2) + library(lubridate) + theme_set(theme_bw()) + + x <- as.Date(x) + + # labels and breaks for X axis text + brks <- x[seq(1, length(x), 12)] + lbls <- lubridate::year(brks) + + # plot + gg <- ggplot(datas, aes(x)) + + geom_line(aes(y=y, col=z)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}", + color=NULL) + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + # title and caption + scale_x_date(labels = lbls, breaks = brks) + + scale_font_color_manual(labels = c("{type_1}", "{type_2}"), + values = c("{type_1}"="#00ba38", + "{type_2}"="#f8766d")) + + theme(panel.grid.minor = element_blank()) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_TimeSeries.csv + +def TemporalChanges_TimeSeries(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, y_name, + title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, y_scale_font_angle, time, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + time = time.split("-") + + time = (int(time[0]), int(time[1])) + + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +datas <- ts(datas, frequency = 12, start = c({time[0]},{time[1]})) + +library(ggplot2) +library(ggfortify) +theme_set(theme_classic()) + +# Plot +gg <- autoplot(datas) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_TimeSeriesOfAnnualData.csv + +def TemporalChanges_TimeSeriesOfAnnualData(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, + y_name, title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, + y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +library(lubridate) +theme_set(theme_bw()) + +x <- as.Date(x) + +# labels and breaks for X axis text +brks <- x[seq(1, length(x), 12)] +lbls <- lubridate::year(brks) + +# plot +gg <- ggplot(datas, aes(x)) + + geom_line(aes(y=y)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + # title and caption + scale_x_date(labels = lbls, + breaks = brks) + + theme(panel.grid.minor = element_blank()) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 高级参数 x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color +# 实例文件 TemporalChanges_TimeSeriesOfMonthlyData.csv + +def TemporalChanges_TimeSeriesOfMonthlyData(file_path, chart_out_path, out_path, title, caption, subtitle, x_name, + y_name, title_font_size, x_font_size, y_font_size, x_scale_font_size, y_scale_font_size, x_scale_font_angle, + y_scale_font_angle, + x_font_color, y_font_color, x_scale_font_color, y_scale_font_color, title_font_color, background_color): + file_path = file_path.replace("\\", "\\\\") + + code = f""" +datas <- read.csv("{file_path}") + +x <- datas[,1] + +y <- datas[,2] + +library(ggplot2) +library(lubridate) +theme_set(theme_bw()) + +x <- as.Date(x) + +# labels and breaks for X axis text +lbls <- paste0(month.abb[month(x)], " ", lubridate::year(x)) +brks <- x + +# plot +gg <- ggplot(datas, aes(x)) + + geom_line(aes(y=y)) + + labs(title="{title}", + subtitle="{subtitle}", + caption="{caption}", + x="{x_name}", + y="{y_name}") + + theme(title=element_text(size={title_font_size}, color="{title_font_color}"), + plot.background_color = element_rect(fill="{background_color}", color="{background_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}")) + # title and caption + scale_x_date(labels = lbls, + breaks = brks) + + theme(panel.grid.minor = element_blank()) + +png("{chart_out_path}",width=900,height=408) +plot(gg) +dev.off() + +png("{out_path}.png") +plot(gg) +dev.off() + +pdf("{out_path}.pdf") +plot(gg) +dev.off() + +svg("{out_path}.svg") +plot(gg) +dev.off() + """ + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") + + +# 最后一组 + +# 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, scale_font_size, font_size, heading_1, heading_2, heading_font_size +# 高级参数 title_font_color, scale_font_color, line_color, font_color, heading_font_color +# 示例文件 Aggregated_Pyramids.xlsx + +def Aggregated_Pyramids(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, scale_font_size, font_size, + heading_1, heading_2, heading_font_size, + title_font_color, scale_font_color, line_color, font_color, heading_font_color): + code = f""" + library(gdata) + x<-read.xls("{file_path}", encoding="latin1") + names(x) <- c("","Group","M","F","des") + + pdf("{out_path}.pdf") + par(mai=c(0.2,0.25,0.8,0.25),omi=c(0.75,0.2,0.85,0.2),cex=0.75,las=1) + + right<-t(as.matrix(data.frame(800,x$F))) + left<--t(as.matrix(data.frame(800,x$M))) + + myColour_right<-c(par("bg"),rgb(255,0,210,150,maxColorValue=255)) + myColour_left<-c(par("bg"),rgb(191,239,255,maxColorValue=255)) + + b1<-barplot(right,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_right,xlim=c(-8000,8000)) + barplot(left,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_left,xlim=c(-7500,7500),add=T) + + abline(v=seq(0,6000,by=2000)+800,col="{line_color}",lty=3) + abline(v=seq(-6000,0,by=2000)-800,col="{line_color}",lty=3) + + mtext(format(seq(0,6000,by=2000),big.mark="."),at=seq(0,6000,by=2000)+800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + mtext(format(abs(seq(-6000,0,by=2000)),big.mark="."),at=seq(-6000,0,by=2000)-800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + text(0,b1,x$des,cex={font_size},font=3,col="{font_color}") + + mtext("{heading_1}",3,line=1,adj=0.25,cex={heading_font_size},col="{heading_font_color}") + mtext("{heading_2}",3,line=1,adj=0.75,cex={heading_font_size},col="{heading_font_color}") + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("...",1,line=2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=540) + par(mai=c(0.2,0.25,0.8,0.25),omi=c(0.75,0.2,0.85,0.2),cex=0.75,las=1) + + right<-t(as.matrix(data.frame(800,x$F))) + left<--t(as.matrix(data.frame(800,x$M))) + + myColour_right<-c(par("bg"),rgb(255,0,210,150,maxColorValue=255)) + myColour_left<-c(par("bg"),rgb(191,239,255,maxColorValue=255)) + + b1<-barplot(right,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_right,xlim=c(-8000,8000)) + barplot(left,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_left,xlim=c(-7500,7500),add=T) + + abline(v=seq(0,6000,by=2000)+800,col="{line_color}",lty=3) + abline(v=seq(-6000,0,by=2000)-800,col="{line_color}",lty=3) + + mtext(format(seq(0,6000,by=2000),big.mark="."),at=seq(0,6000,by=2000)+800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + mtext(format(abs(seq(-6000,0,by=2000)),big.mark="."),at=seq(-6000,0,by=2000)-800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + text(0,b1,x$des,cex={font_size},font=3,col="{font_color}") + + mtext("{heading_1}",3,line=1,adj=0.25,cex={heading_font_size},col="{heading_font_color}") + mtext("{heading_2}",3,line=1,adj=0.75,cex={heading_font_size},col="{heading_font_color}") + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("...",1,line=2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(mai=c(0.2,0.25,0.8,0.25),omi=c(0.75,0.2,0.85,0.2),cex=0.75,las=1) + + right<-t(as.matrix(data.frame(800,x$F))) + left<--t(as.matrix(data.frame(800,x$M))) + + myColour_right<-c(par("bg"),rgb(255,0,210,150,maxColorValue=255)) + myColour_left<-c(par("bg"),rgb(191,239,255,maxColorValue=255)) + + b1<-barplot(right,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_right,xlim=c(-8000,8000)) + barplot(left,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_left,xlim=c(-7500,7500),add=T) + + abline(v=seq(0,6000,by=2000)+800,col="{line_color}",lty=3) + abline(v=seq(-6000,0,by=2000)-800,col="{line_color}",lty=3) + + mtext(format(seq(0,6000,by=2000),big.mark="."),at=seq(0,6000,by=2000)+800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + mtext(format(abs(seq(-6000,0,by=2000)),big.mark="."),at=seq(-6000,0,by=2000)-800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + text(0,b1,x$des,cex={font_size},font=3,col="{font_color}") + + mtext("{heading_1}",3,line=1,adj=0.25,cex={heading_font_size},col="{heading_font_color}") + mtext("{heading_2}",3,line=1,adj=0.75,cex={heading_font_size},col="{heading_font_color}") + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("...",1,line=2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + + svg("{out_path}.svg") + par(mai=c(0.2,0.25,0.8,0.25),omi=c(0.75,0.2,0.85,0.2),cex=0.75,las=1) + + right<-t(as.matrix(data.frame(800,x$F))) + left<--t(as.matrix(data.frame(800,x$M))) + + myColour_right<-c(par("bg"),rgb(255,0,210,150,maxColorValue=255)) + myColour_left<-c(par("bg"),rgb(191,239,255,maxColorValue=255)) + + b1<-barplot(right,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_right,xlim=c(-8000,8000)) + barplot(left,axes=F,horiz=T,axis.lty=0,border=NA,col=myColour_left,xlim=c(-7500,7500),add=T) + + abline(v=seq(0,6000,by=2000)+800,col="{line_color}",lty=3) + abline(v=seq(-6000,0,by=2000)-800,col="{line_color}",lty=3) + + mtext(format(seq(0,6000,by=2000),big.mark="."),at=seq(0,6000,by=2000)+800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + mtext(format(abs(seq(-6000,0,by=2000)),big.mark="."),at=seq(-6000,0,by=2000)-800,1,line=0,cex={scale_font_size},col="{scale_font_color}") + text(0,b1,x$des,cex={font_size},font=3,col="{font_color}") + + mtext("{heading_1}",3,line=1,adj=0.25,cex={heading_font_size},col="{heading_font_color}") + mtext("{heading_2}",3,line=1,adj=0.75,cex={heading_font_size},col="{heading_font_color}") + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("...",1,line=2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") + + +# 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, event_1, event_2, event_3, font_size +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, line_color, color +# 示例文件 Areas_Under_a_Time_Series.csv + +def Areas_Under_a_Time_Series(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, + x_scale_font_size, y_name, y_font_size, y_scale_font_size, event_1, event_2, event_3, font_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, line_color, color): + code = f""" + library(gdata) + colour<-rgb({font_color},150,maxColorValue=255) + myShapeColour1<-rgb({color},50,maxColorValue=255) + myShapeColour2<-rgb({color},80,maxColorValue=255) + myData<-read.csv('{file_path}',encoding="latin1") + names(myData) <- c("x","y") + attach(myData) + mySelection<-subset(myData,x >= 1879 & x <= 1884) + + pdf("{out_path}.pdf") + par(cex.axis=1.1,mai=c(0.75,1.5,0.25,0.5),omi=c(0.5,0.5,1.1,0.5), mgp=c(6,1,0),las=1) + + plot(x,y,axes=F,type="n",xlab="",xlim=c(1800,2020),ylim=c(0,14000),xpd=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,at=pretty(x),col="{x_scale_font_color}",cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,at=py<-pretty(y),col="{y_scale_font_color}",cex.lab=1.2,labels=format(py,big.mark=","),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + y<-ts(y,start=1800,frequency=1) + points(window(y, end=1869),col="{line_color}") + lines(window(y, start=1870),col="{line_color}") + + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1860,2200,adj=0,col=colour,"{event_1}",cex={font_size}) + mySelection<-subset(myData,x >= 1940 & x <= 1973) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour1,border=NA) + text(1930,5000,adj=0,col=colour,"{event_2}",cex={font_size}) + mySelection<-subset(myData,x >= 1973 & x <= 1990) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1960,6800,adj=0,col=colour,"{event_3}",cex={font_size}) + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3, outer=T,col="{title_font_color}") + mtext("{caption}",1,line=4.5,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + myData<-read.csv('{file_path}',encoding="latin1") + names(myData) <- c("x","y") + attach(myData) + mySelection<-subset(myData,x >= 1879 & x <= 1884) + + png("{char_out_path}",width=900,height=540) + par(cex.axis=1.1,mai=c(0.75,1.5,0.25,0.5),omi=c(0.5,0.5,1.1,0.5), mgp=c(6,1,0),las=1) + + plot(x,y,axes=F,type="n",xlab="",xlim=c(1800,2020),ylim=c(0,14000),xpd=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,at=pretty(x),col="{x_scale_font_color}",cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,at=py<-pretty(y),col="{y_scale_font_color}",cex.lab=1.2,labels=format(py,big.mark=","),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + y<-ts(y,start=1800,frequency=1) + points(window(y, end=1869),col="{line_color}") + lines(window(y, start=1870),col="{line_color}") + + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1860,2200,adj=0,col=colour,"{event_1}",cex={font_size}) + mySelection<-subset(myData,x >= 1940 & x <= 1973) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour1,border=NA) + text(1930,5000,adj=0,col=colour,"{event_2}",cex={font_size}) + mySelection<-subset(myData,x >= 1973 & x <= 1990) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1960,6800,adj=0,col=colour,"{event_3}",cex={font_size}) + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3, outer=T,col="{title_font_color}") + mtext("{caption}",1,line=4.5,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + myData<-read.csv('{file_path}',encoding="latin1") + names(myData) <- c("x","y") + attach(myData) + mySelection<-subset(myData,x >= 1879 & x <= 1884) + + png("{out_path}.png") + par(cex.axis=1.1,mai=c(0.75,1.5,0.25,0.5),omi=c(0.5,0.5,1.1,0.5), mgp=c(6,1,0),las=1) + + plot(x,y,axes=F,type="n",xlab="",xlim=c(1800,2020),ylim=c(0,14000),xpd=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,at=pretty(x),col="{x_scale_font_color}",cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,at=py<-pretty(y),col="{y_scale_font_color}",cex.lab=1.2,labels=format(py,big.mark=","),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + y<-ts(y,start=1800,frequency=1) + points(window(y, end=1869),col="{line_color}") + lines(window(y, start=1870),col="{line_color}") + + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1860,2200,adj=0,col=colour,"{event_1}",cex={font_size}) + mySelection<-subset(myData,x >= 1940 & x <= 1973) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour1,border=NA) + text(1930,5000,adj=0,col=colour,"{event_2}",cex={font_size}) + mySelection<-subset(myData,x >= 1973 & x <= 1990) + attach(mySelection) + polygon(c(min(mySelection$x),mySelection$x,max(mySelection$x)),c(-500,mySelection$y,-500),col=myShapeColour2,border=NA) + text(1960,6800,adj=0,col=colour,"{event_3}",cex={font_size}) + + mtext("{title}",3,line=2,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.5,adj=0,cex={title_font_size}*0.6,font=3, outer=T,col="{title_font_color}") + mtext("{caption}",1,line=4.5,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") + + +# 基础参数 file_path, char_out_path, out_path, title, caption_1, caption_2, subtitle, title_font_size, font_size +# 高级参数 title_font_color, font_color, color_1, color_2 +# 示例文件 Balloon_Plot.csv + +def Balloon_Plot(file_path, char_out_path, out_path, title, caption_1, caption_2, subtitle, title_font_size, font_size, + title_font_color, font_color, color_1, color_2): + code = f""" + library(gplots) + myData <- read.csv("{file_path}") + attach(myData) + myColours <- character(length(myData$Survived)) + for(i in 1:length(myData$Survived)) + myColours[i] <- if(myData$Survived[i] == "Yes") "{color_1}" else "{color_2}" + + pdf("{out_path}.pdf") + par(omi=c(0.75,0.25,0.5,0.25),mai=c(0.25,0.55,0.25,0),cex={font_size}) + balloonplot(x=list(Age,Sex),main="", + y=list(Class=Class, + Survived=gdata::reorder.factor(Survived,new.order=c(2,1))), + z=Freq,dotsize=18, + sort=T, + dotcol=myColours, + show.zeros=T, + show.margins=T, + text.color="{font_color}", + label.color="{font_color}") + + mtext("{title}",3,line=0,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_1}",1,line=1,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_2}",1,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.75,0.25,0.5,0.25),mai=c(0.25,0.55,0.25,0),cex={font_size}) + balloonplot(x=list(Age,Sex),main="", + y=list(Class=Class, + Survived=gdata::reorder.factor(Survived,new.order=c(2,1))), + z=Freq,dotsize=18, + sort=T, + dotcol=myColours, + show.zeros=T, + show.margins=T, + text.color="{font_color}", + label.color="{font_color}") + + mtext("{title}",3,line=0,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_1}",1,line=1,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_2}",1,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.75,0.25,0.5,0.25),mai=c(0.25,0.55,0.25,0),cex={font_size}) + balloonplot(x=list(Age,Sex),main="", + y=list(Class=Class, + Survived=gdata::reorder.factor(Survived,new.order=c(2,1))), + z=Freq,dotsize=18, + sort=T, + dotcol=myColours, + show.zeros=T, + show.margins=T, + text.color="{font_color}", + label.color="{font_color}") + + mtext("{title}",3,line=0,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_1}",1,line=1,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_2}",1,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=408) + par(omi=c(0.75,0.25,0.5,0.25),mai=c(0.25,0.55,0.25,0),cex={font_size}) + balloonplot(x=list(Age,Sex),main="", + y=list(Class=Class, + Survived=gdata::reorder.factor(Survived,new.order=c(2,1))), + z=Freq,dotsize=18, + sort=T, + dotcol=myColours, + show.zeros=T, + show.margins=T, + text.color="{font_color}", + label.color="{font_color}") + + mtext("{title}",3,line=0,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-2,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_1}",1,line=1,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption_2}",1,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, image_name_font_size, mark_country_1, mark_country_2, average_font_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, image_name_font_color, background_color, average_font_color, mark_color, color +# 示例文件 Bar_Chart_Simple.xlsx + +def Bar_Chart_Simple(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, + x_scale_font_size, y_name, y_font_size, y_scale_font_size, image_name_font_size, mark_country_1, + mark_country_2, average_font_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, image_name_font_color, background_color, + average_font_color, mark_color, color): + y_name = "\n".join(y_name) + + code = f""" + library(gdata) + ipsos<-read.xls('{file_path}',encoding="latin1") + names(ipsos) <- c("Country","Percent") + sort.ipsos<-ipsos[order(ipsos$Percent) ,] + attach(sort.ipsos) + percent_max <- max(ipsos[,2])/2 + myValue2 <- numeric(length(Country)) + + pdf("{out_path}.pdf") + par(omi=c(0.65,0.25,0.75,0.75),mai=c(0.3,2,0.35,0),mgp=c(3,3,0),las=1) + x<-barplot(Percent,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col="{color}", cex.names=0.85,axes=F) + + for (i in 1:length(Country)) + {{ + if (Country[i] %in% c("{mark_country_1}","{mark_country_2}")) + {{ + myValue2[i] <- Percent[i] + text(-8,x[i],Country[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + text(-3.5,x[i],Percent[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + + rect(0,-0.5,20,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(20,-0.5,40,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(40,-0.5,60,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(60,-0.5,80,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(80,-0.5,100,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + + myColour2<-rgb({mark_color},maxColorValue=255) + x2<-barplot(myValue2,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col=myColour2,cex.names=0.85,axes=F,add=T) + + arrows(percent_max,-0.5,percent_max,20.5,lwd=1.5,length=0,xpd=T,col="{average_font_color}") + arrows(percent_max,-0.5,percent_max,-0.75,lwd=3,length=0,xpd=T) + arrows(percent_max,20.5,percent_max,20.75,lwd=3,length=0,xpd=T) + text(percent_max-5,20.5,"Average",adj=1,xpd=T,cex={average_font_size},font=3) + text(percent_max-1,20.5,percent_max,adj=1,xpd=T,cex={average_font_size},font=4,col="{average_font_color}") + text(100,20.5,"All values in percent",adj=1,xpd=T,cex={image_name_font_size},font=3,col="{image_name_font_color}") + mtext(c(0,20,40,60,80,100),at=c(0,20,40,60,80,100),1,line=0,cex={x_scale_font_size},col="{x_scale_font_color}") + + mtext("{title}",3,line={title_font_size},adj=0,cex=1.2,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.4,adj=0,cex={title_font_size}*0.6,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1.0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-0.2,adj=0.6,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",2,line=0.25,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.65,0.25,0.75,0.75),mai=c(0.3,2,0.35,0),mgp=c(3,3,0),las=1) + x<-barplot(Percent,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col="{color}", cex.names=0.85,axes=F) + + for (i in 1:length(Country)) + {{ + if (Country[i] %in% c("{mark_country_1}","{mark_country_2}")) + {{ + myValue2[i] <- Percent[i] + text(-8,x[i],Country[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + text(-3.5,x[i],Percent[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + + rect(0,-0.5,20,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(20,-0.5,40,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(40,-0.5,60,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(60,-0.5,80,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(80,-0.5,100,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + + myColour2<-rgb({mark_color},maxColorValue=255) + x2<-barplot(myValue2,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col=myColour2,cex.names=0.85,axes=F,add=T) + + arrows(percent_max,-0.5,percent_max,20.5,lwd=1.5,length=0,xpd=T,col="{average_font_color}") + arrows(percent_max,-0.5,percent_max,-0.75,lwd=3,length=0,xpd=T) + arrows(percent_max,20.5,percent_max,20.75,lwd=3,length=0,xpd=T) + text(percent_max-5,20.5,"Average",adj=1,xpd=T,cex={average_font_size},font=3) + text(percent_max-1,20.5,percent_max,adj=1,xpd=T,cex={average_font_size},font=4,col="{average_font_color}") + text(100,20.5,"All values in percent",adj=1,xpd=T,cex={image_name_font_size},font=3,col="{image_name_font_color}") + mtext(c(0,20,40,60,80,100),at=c(0,20,40,60,80,100),1,line=0,cex={x_scale_font_size},col="{x_scale_font_color}") + + mtext("{title}",3,line={title_font_size},adj=0,cex=1.2,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.4,adj=0,cex={title_font_size}*0.6,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1.0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-0.2,adj=0.6,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",2,line=0.25,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=408) + par(omi=c(0.65,0.25,0.75,0.75),mai=c(0.3,2,0.35,0),mgp=c(3,3,0),las=1) + x<-barplot(Percent,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col="{color}", cex.names=0.85,axes=F) + + for (i in 1:length(Country)) + {{ + if (Country[i] %in% c("{mark_country_1}","{mark_country_2}")) + {{ + myValue2[i] <- Percent[i] + text(-8,x[i],Country[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + text(-3.5,x[i],Percent[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + + rect(0,-0.5,20,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(20,-0.5,40,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(40,-0.5,60,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(60,-0.5,80,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(80,-0.5,100,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + + myColour2<-rgb({mark_color},maxColorValue=255) + x2<-barplot(myValue2,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col=myColour2,cex.names=0.85,axes=F,add=T) + + arrows(percent_max,-0.5,percent_max,20.5,lwd=1.5,length=0,xpd=T,col="{average_font_color}") + arrows(percent_max,-0.5,percent_max,-0.75,lwd=3,length=0,xpd=T) + arrows(percent_max,20.5,percent_max,20.75,lwd=3,length=0,xpd=T) + text(percent_max-5,20.5,"Average",adj=1,xpd=T,cex={average_font_size},font=3) + text(percent_max-1,20.5,percent_max,adj=1,xpd=T,cex={average_font_size},font=4,col="{average_font_color}") + text(100,20.5,"All values in percent",adj=1,xpd=T,cex={image_name_font_size},font=3,col="{image_name_font_color}") + mtext(c(0,20,40,60,80,100),at=c(0,20,40,60,80,100),1,line=0,cex={x_scale_font_size},col="{x_scale_font_color}") + + mtext("{title}",3,line={title_font_size},adj=0,cex=1.2,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.4,adj=0,cex={title_font_size}*0.6,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1.0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-0.2,adj=0.6,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",2,line=0.25,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.65,0.25,0.75,0.75),mai=c(0.3,2,0.35,0),mgp=c(3,3,0),las=1) + x<-barplot(Percent,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col="{color}", cex.names=0.85,axes=F) + + for (i in 1:length(Country)) + {{ + if (Country[i] %in% c("{mark_country_1}","{mark_country_2}")) + {{ + myValue2[i] <- Percent[i] + text(-8,x[i],Country[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + text(-3.5,x[i],Percent[i],xpd=T,adj=1,cex={y_scale_font_size},col="{y_scale_font_color}") + }} + + rect(0,-0.5,20,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(20,-0.5,40,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(40,-0.5,60,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + rect(60,-0.5,80,28,col=rgb({background_color},120,maxColorValue=255),border=NA) + rect(80,-0.5,100,28,col=rgb({background_color},80,maxColorValue=255),border=NA) + + myColour2<-rgb({mark_color},maxColorValue=255) + x2<-barplot(myValue2,names.arg=F,horiz=T,border=NA,xlim=c(0,100),col=myColour2,cex.names=0.85,axes=F,add=T) + + arrows(percent_max,-0.5,percent_max,20.5,lwd=1.5,length=0,xpd=T,col="{average_font_color}") + arrows(percent_max,-0.5,percent_max,-0.75,lwd=3,length=0,xpd=T) + arrows(percent_max,20.5,percent_max,20.75,lwd=3,length=0,xpd=T) + text(percent_max-5,20.5,"Average",adj=1,xpd=T,cex={average_font_size},font=3) + text(percent_max-1,20.5,percent_max,adj=1,xpd=T,cex={average_font_size},font=4,col="{average_font_color}") + text(100,20.5,"All values in percent",adj=1,xpd=T,cex={image_name_font_size},font=3,col="{image_name_font_color}") + mtext(c(0,20,40,60,80,100),at=c(0,20,40,60,80,100),1,line=0,cex={x_scale_font_size},col="{x_scale_font_color}") + + mtext("{title}",3,line={title_font_size},adj=0,cex=1.2,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=-0.4,adj=0,cex={title_font_size}*0.6,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1.0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-0.2,adj=0.6,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",2,line=0.25,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") + + +# 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, scale_font_size +# 高级参数 title_font_color, scale_font_color, mark_scale_font_color, font_color +# 示例文件 Bump_Chart.xlsx + +def Bump_Chart(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, scale_font_size, + title_font_color, scale_font_color, mark_scale_font_color, font_color): + code = f""" + library(plotrix) + library(gdata) + + z1<-read.xls('{file_path}', row.names = 1, encoding="latin1") + + myColours<-rep("{scale_font_color}",nrow(z1)); myLineWidth<-rep(1,nrow(z1)) + myColours[5]<-"{mark_scale_font_color}"; myLineWidth[5]<-8 + + pdf("{out_path}.pdf") + par(omi=c(0.5,0.5,0.9,0.5),mai=c(0,0.75,0.25,0.75),xpd=T,las=1,col="{font_color}") + + bumpchart(z1,rank=F,pch=18,top.labels=c("",""),col=myColours,lwd=myLineWidth,mar=c(2,12,1,12),cex=1.1) + + mtext("{title}",3,line=1.5,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{caption}",1,line=0,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2002), max(z1$r2002)),c(round(min(z1$r2002)/1000,digits=1), round(max(z1$r2002)/1000, digits=1)),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2011), max(z1$r2011)),c(round(min(z1$r2011)/1000,digits=1), round(max(z1$r2011)/1000, digits=1)),cex.axis={scale_font_size}) + + mtext("{subtitle}",3,font=3,adj=0,cex={title_font_size}*0.6,line=-0.5,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,1],round(z1[5,1]/1000, digits=1),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,2],round(z1[5,2]/1000, digits=1),cex.axis={scale_font_size}) + dev.off() + + png("{out_path}.png") + par(omi=c(0.5,0.5,0.9,0.5),mai=c(0,0.75,0.25,0.75),xpd=T,las=1,col="{font_color}") + + bumpchart(z1,rank=F,pch=18,top.labels=c("",""),col=myColours,lwd=myLineWidth,mar=c(2,12,1,12),cex=1.1) + + mtext("{title}",3,line=1.5,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{caption}",1,line=0,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2002), max(z1$r2002)),c(round(min(z1$r2002)/1000,digits=1), round(max(z1$r2002)/1000, digits=1)),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2011), max(z1$r2011)),c(round(min(z1$r2011)/1000,digits=1), round(max(z1$r2011)/1000, digits=1)),cex.axis={scale_font_size}) + + mtext("{subtitle}",3,font=3,adj=0,cex={title_font_size}*0.6,line=-0.5,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,1],round(z1[5,1]/1000, digits=1),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,2],round(z1[5,2]/1000, digits=1),cex.axis={scale_font_size}) + dev.off() + + png("{char_out_path}") + par(omi=c(0.5,0.5,0.9,0.5),mai=c(0,0.75,0.25,0.75),xpd=T,las=1,col="{font_color}") + + bumpchart(z1,rank=F,pch=18,top.labels=c("",""),col=myColours,lwd=myLineWidth,mar=c(2,12,1,12),cex=1.1) + + mtext("{title}",3,line=1.5,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{caption}",1,line=0,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2002), max(z1$r2002)),c(round(min(z1$r2002)/1000,digits=1), round(max(z1$r2002)/1000, digits=1)),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2011), max(z1$r2011)),c(round(min(z1$r2011)/1000,digits=1), round(max(z1$r2011)/1000, digits=1)),cex.axis={scale_font_size}) + + mtext("{subtitle}",3,font=3,adj=0,cex={title_font_size}*0.6,line=-0.5,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,1],round(z1[5,1]/1000, digits=1),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,2],round(z1[5,2]/1000, digits=1),cex.axis={scale_font_size}) + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.5,0.5,0.9,0.5),mai=c(0,0.75,0.25,0.75),xpd=T,las=1,col="{font_color}") + + bumpchart(z1,rank=F,pch=18,top.labels=c("",""),col=myColours,lwd=myLineWidth,mar=c(2,12,1,12),cex=1.1) + + mtext("{title}",3,line=1.5,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{caption}",1,line=0,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2002), max(z1$r2002)),c(round(min(z1$r2002)/1000,digits=1), round(max(z1$r2002)/1000, digits=1)),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{scale_font_color}",col.axis="{scale_font_color}",lwd.ticks=0.5,tck=-0.025, at=c(min(z1$r2011), max(z1$r2011)),c(round(min(z1$r2011)/1000,digits=1), round(max(z1$r2011)/1000, digits=1)),cex.axis={scale_font_size}) + + mtext("{subtitle}",3,font=3,adj=0,cex={title_font_size}*0.6,line=-0.5,outer=T,col="{title_font_color}") + + axis(2,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,1],round(z1[5,1]/1000, digits=1),cex.axis={scale_font_size}) + axis(4,col=par("bg"),col.ticks="{mark_scale_font_color}",col.axis="{mark_scale_font_color}",lwd.ticks=0.5,tck=-0.025,at=z1[5,2],round(z1[5,2]/1000, digits=1),cex.axis={scale_font_size}) + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") + + +# 基础参数 file_path, char_out_path,out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, high_color, low_color +# 示例文件 Column_Chart_with_Percentages_for_Growth_Developments.csv + +def Column_Chart_for_Developments(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, + x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, high_color, low_color): + y_name = "\n".join(y_name) + + code = f""" + datas <- read.csv("{file_path}") + + myData <- datas[,2]/10000 + myLabels <- datas[,1] + myColours<-c(rep("{low_color}",length(myData)-1),"{high_color}") + + pdf("{out_path}.pdf") + par(las=1,cex=0.9,omi=c(0.75,0.25,1.25,0.25),mai=c(0.5,0.25,0.5,0.75),las=1) + barplot(myData,border=NA,col=myColours,names.arg=substr(myLabels,3,4),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + abline(h=c(10,20,30,40,50,60,70,80),col=par("bg"),lwd=1.5) + axis(4,at=c(0,20,40,60),col="{y_scale_font_color}") + text(11.5,myData[length(myData)]+0.025*myData[length(myData)],format(round(myData[length(myData)]),nsmall=1),adj=0.5,xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size}) + + # Titling + + mtext("{title}",3,line=4,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=0,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",4,line=0,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + png("{out_path}.png") + par(las=1,cex=0.9,omi=c(0.75,0.25,1.25,0.25),mai=c(0.5,0.25,0.5,0.75),las=1) + barplot(myData,border=NA,col=myColours,names.arg=substr(myLabels,3,4),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + abline(h=c(10,20,30,40,50,60,70,80),col=par("bg"),lwd=1.5) + axis(4,at=c(0,20,40,60),col="{y_scale_font_color}") + text(11.5,myData[length(myData)]+0.025*myData[length(myData)],format(round(myData[length(myData)]),nsmall=1),adj=0.5,xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size}) + + # Titling + + mtext("{title}",3,line=4,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=0,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",4,line=0,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + png("{char_out_path}") + par(las=1,cex=0.9,omi=c(0.75,0.25,1.25,0.25),mai=c(0.5,0.25,0.5,0.75),las=1) + barplot(myData,border=NA,col=myColours,names.arg=substr(myLabels,3,4),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + abline(h=c(10,20,30,40,50,60,70,80),col=par("bg"),lwd=1.5) + axis(4,at=c(0,20,40,60),col="{y_scale_font_color}") + text(11.5,myData[length(myData)]+0.025*myData[length(myData)],format(round(myData[length(myData)]),nsmall=1),adj=0.5,xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size}) + + # Titling + + mtext("{title}",3,line=4,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=0,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",4,line=0,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + + svg("{out_path}.svg") + par(las=1,cex=0.9,omi=c(0.75,0.25,1.25,0.25),mai=c(0.5,0.25,0.5,0.75),las=1) + barplot(myData,border=NA,col=myColours,names.arg=substr(myLabels,3,4),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + abline(h=c(10,20,30,40,50,60,70,80),col=par("bg"),lwd=1.5) + axis(4,at=c(0,20,40,60),col="{y_scale_font_color}") + text(11.5,myData[length(myData)]+0.025*myData[length(myData)],format(round(myData[length(myData)]),nsmall=1),adj=0.5,xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size}) + + # Titling + + mtext("{title}",3,line=4,adj=0,outer=T,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,line=1,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1.0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=0,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + mtext("{y_name}",4,line=0,adj=0.5,cex={y_font_size},font=3,outer=T,col="{y_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") + + +# 基础参数 file_path, char_out_path,out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, color, high_color, low_color +# 示例文件 Column_Chart_with_Percentages_for_Growth_Developments.csv + +def Column_Chart_with_Percentages_for_Growth_Developments(file_path, char_out_path, out_path, title, caption, subtitle, + title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, + y_scale_font_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, + color, high_color, low_color): + code = f""" + datas <- read.csv("{file_path}") + + myData <- datas[,2]/10000 + myLabels <- datas[,1] + + pdf("{out_path}.pdf") + par(las=1,cex=0.9,omi=c(0.75,0.5,1.25,0.5),mai=c(0.5,1,0,1),las=1) + + # Define data + + myGrowth<-0 + for (i in 2:length(myData)) myGrowth<-c(myGrowth,myData[i]-myData[i-1]) + myValueLeft<-myData-myGrowth + + x<-rbind(t(myData),t(myData)) + y<-rbind(t(myValueLeft),rep(0,length(myData))) + f1<-"{high_color}"; f2<-"{color}" + myColours<-c(f1,f2) + for (i in 1:length(myData)-1) myColours<-c(myColours,f1,f2) + + for (i in 1:length(myData)) + {{ + if (y[1,i]>x[1,i]) + {{ + tmp<-x[1,i]; x[1,i]<-y[1,i]; y[1,i]<-tmp + myColours[(2*i)-1]<-"{low_color}" + }} + }} + + # Create chart and other elements + + barplot(x,beside=T,border=NA,col=myColours,space=c(0,2),axes=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}",col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size},fg="{y_scale_font_color}") + barplot(y,beside=T,border=NA,col=rep("{color}",2*length(myData)),add=T,names.arg=myLabels,space=c(0,2),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + + hoehe<-0.1*max(myData) + j<-1 + k<-j + for (i in 1:length(myData)) + {{ + if (j > 1) k<-k+4 + text(k+1.3,hoehe,format(round(x[2,i]),nsmall=0),cex=1.25,adj=0,xpd=T,col="white") + j<-j+3 + if (ix[1,i]) + {{ + tmp<-x[1,i]; x[1,i]<-y[1,i]; y[1,i]<-tmp + myColours[(2*i)-1]<-"{low_color}" + }} + }} + + # Create chart and other elements + + barplot(x,beside=T,border=NA,col=myColours,space=c(0,2),axes=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}",col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size},fg="{y_scale_font_color}") + barplot(y,beside=T,border=NA,col=rep("{color}",2*length(myData)),add=T,names.arg=myLabels,space=c(0,2),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + + hoehe<-0.1*max(myData) + j<-1 + k<-j + for (i in 1:length(myData)) + {{ + if (j > 1) k<-k+4 + text(k+1.3,hoehe,format(round(x[2,i]),nsmall=0),cex=1.25,adj=0,xpd=T,col="white") + j<-j+3 + if (ix[1,i]) + {{ + tmp<-x[1,i]; x[1,i]<-y[1,i]; y[1,i]<-tmp + myColours[(2*i)-1]<-"{low_color}" + }} + }} + + # Create chart and other elements + + barplot(x,beside=T,border=NA,col=myColours,space=c(0,2),axes=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}",col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size},fg="{y_scale_font_color}") + barplot(y,beside=T,border=NA,col=rep("{color}",2*length(myData)),add=T,names.arg=myLabels,space=c(0,2),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + + hoehe<-0.1*max(myData) + j<-1 + k<-j + for (i in 1:length(myData)) + {{ + if (j > 1) k<-k+4 + text(k+1.3,hoehe,format(round(x[2,i]),nsmall=0),cex=1.25,adj=0,xpd=T,col="white") + j<-j+3 + if (ix[1,i]) + {{ + tmp<-x[1,i]; x[1,i]<-y[1,i]; y[1,i]<-tmp + myColours[(2*i)-1]<-"{low_color}" + }} + }} + + # Create chart and other elements + + barplot(x,beside=T,border=NA,col=myColours,space=c(0,2),axes=T,ylab="{y_name}",cex.lab={y_font_size},col.lab="{y_font_color}",col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size},fg="{y_scale_font_color}") + barplot(y,beside=T,border=NA,col=rep("{color}",2*length(myData)),add=T,names.arg=myLabels,space=c(0,2),axes=F,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + + hoehe<-0.1*max(myData) + j<-1 + k<-j + for (i in 1:length(myData)) + {{ + if (j > 1) k<-k+4 + text(k+1.3,hoehe,format(round(x[2,i]),nsmall=0),cex=1.25,adj=0,xpd=T,col="white") + j<-j+3 + if (i 2007) + x<-ts(rev(gdp$jeworiginal),start=2008,frequency=4) + + pdf("{out_path}.pdf") + par(omi=c(0.65,0.75,0.95,0.75),mai=c(0.9,0,0.25,0.02),fg="{x_scale_font_color}",bg="{background_color}",las=1) + + plot(x,type="n",axes=F,xlim=c(2008,2012),ylim=c(560,670),xlab="",ylab="") + abline(v=c(2008:2012),col="{scale_line_color}",lty=1,lwd=1) + lines(x,lwd=8,type="b",col=rgb({line_color},80,maxColorValue=255)) + points(x,pch=19,cex=3,col=rgb({point_color},maxColorValue=255)) + faktor<-rep(0.985,length(x)) + for (i in 1:length(x)) + {{ + if (i>1 & ix[i-1] & x[i]>x[i+1]) {{ faktor[i]<-1.015 }} }} + text((2008+i*0.25)-0.25,faktor[i]*x[i],x[i],col="{font_color}",cex={font_size}) + }} + axis(1,at=c(2008:2012),tck=0,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=NA,col.ticks="{y_scale_font_color}",lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.025,col.axis="{y_scale_font_color}") + + mtext("{title}",3,line=2.3,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=0,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.65,0.75,0.95,0.75),mai=c(0.9,0,0.25,0.02),fg="{x_scale_font_color}",bg="{background_color}",las=1) + + plot(x,type="n",axes=F,xlim=c(2008,2012),ylim=c(560,670),xlab="",ylab="") + abline(v=c(2008:2012),col="{scale_line_color}",lty=1,lwd=1) + lines(x,lwd=8,type="b",col=rgb({line_color},80,maxColorValue=255)) + points(x,pch=19,cex=3,col=rgb({point_color},maxColorValue=255)) + faktor<-rep(0.985,length(x)) + for (i in 1:length(x)) + {{ + if (i>1 & ix[i-1] & x[i]>x[i+1]) {{ faktor[i]<-1.015 }} }} + text((2008+i*0.25)-0.25,faktor[i]*x[i],x[i],col="{font_color}",cex={font_size}) + }} + axis(1,at=c(2008:2012),tck=0,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=NA,col.ticks="{y_scale_font_color}",lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.025,col.axis="{y_scale_font_color}") + + mtext("{title}",3,line=2.3,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=0,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{char_out_path}") + par(omi=c(0.65,0.75,0.95,0.75),mai=c(0.9,0,0.25,0.02),fg="{x_scale_font_color}",bg="{background_color}",las=1) + + plot(x,type="n",axes=F,xlim=c(2008,2012),ylim=c(560,670),xlab="",ylab="") + abline(v=c(2008:2012),col="{scale_line_color}",lty=1,lwd=1) + lines(x,lwd=8,type="b",col=rgb({line_color},80,maxColorValue=255)) + points(x,pch=19,cex=3,col=rgb({point_color},maxColorValue=255)) + faktor<-rep(0.985,length(x)) + for (i in 1:length(x)) + {{ + if (i>1 & ix[i-1] & x[i]>x[i+1]) {{ faktor[i]<-1.015 }} }} + text((2008+i*0.25)-0.25,faktor[i]*x[i],x[i],col="{font_color}",cex={font_size}) + }} + axis(1,at=c(2008:2012),tck=0,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=NA,col.ticks="{y_scale_font_color}",lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.025,col.axis="{y_scale_font_color}") + + mtext("{title}",3,line=2.3,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=0,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.65,0.75,0.95,0.75),mai=c(0.9,0,0.25,0.02),fg="{x_scale_font_color}",bg="{background_color}",las=1) + + plot(x,type="n",axes=F,xlim=c(2008,2012),ylim=c(560,670),xlab="",ylab="") + abline(v=c(2008:2012),col="{scale_line_color}",lty=1,lwd=1) + lines(x,lwd=8,type="b",col=rgb({line_color},80,maxColorValue=255)) + points(x,pch=19,cex=3,col=rgb({point_color},maxColorValue=255)) + faktor<-rep(0.985,length(x)) + for (i in 1:length(x)) + {{ + if (i>1 & ix[i-1] & x[i]>x[i+1]) {{ faktor[i]<-1.015 }} }} + text((2008+i*0.25)-0.25,faktor[i]*x[i],x[i],col="{font_color}",cex={font_size}) + }} + axis(1,at=c(2008:2012),tck=0,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=NA,col.ticks="{y_scale_font_color}",lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.025,col.axis="{y_scale_font_color}") + + mtext("{title}",3,line=2.3,adj=0,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,line=0,adj=0,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.5,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, legend_1, legend_2, legend_size + + +# 高级参数 legend_position, title_font_color, color_1, color_2, line_color +# 示例文件 Radial_Polygons_Overlay.xlsx + +def Radial_Polygons_Overlay(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, legend_1, + legend_2, legend_size, + legend_position, title_font_color, color_1, color_2, line_color): + code = f""" + library(plotrix) + library(gdata) + + myRegions <- read.xls("{file_path}", encoding="latin1") + + myRegions[,1]<-NULL + + myLabelling <- names(myRegions) + + myC1<-rgb({color_1},155,maxColorValue=255) + myC2<-rgb({color_2},155,maxColorValue=255) + + pdf("{out_path}.pdf") + par(omi=c(1,0.25,1,1),mai=c(0,2,0,0.5),cex.axis=1.5,cex.lab=1,xpd=T,las=1) + + # Create chart + + radial.plot(myRegions[2:3,],start=1,grid.left=T,labels=myLabelling,rp.type="p",main="",line.col=c(myC1,myC2),poly.col=c(myC1,myC2),show.grid=T,radial.lim=c(0,55),lwd=8,rad.col="{line_color}",grid.col="{line_color}") + legend("{legend_position}",c("{legend_1}","{legend_2}"),pch=15,col=c(myC1,myC2),bty="n",cex={legend_size}) + + # Titling + + mtext(line=3,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=1,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=2,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(1,0.25,1,1),mai=c(0,2,0,0.5),cex.axis=1.5,cex.lab=1,xpd=T,las=1) + + # Create chart + + radial.plot(myRegions[2:3,],start=1,grid.left=T,labels=myLabelling,rp.type="p",main="",line.col=c(myC1,myC2),poly.col=c(myC1,myC2),show.grid=T,radial.lim=c(0,55),lwd=8,rad.col="{line_color}",grid.col="{line_color}") + legend("{legend_position}",c("{legend_1}","{legend_2}"),pch=15,col=c(myC1,myC2),bty="n",cex={legend_size}) + + # Titling + + mtext(line=3,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=1,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=2,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + scg("{out_path}.svg") + par(omi=c(1,0.25,1,1),mai=c(0,2,0,0.5),cex.axis=1.5,cex.lab=1,xpd=T,las=1) + + # Create chart + + radial.plot(myRegions[2:3,],start=1,grid.left=T,labels=myLabelling,rp.type="p",main="",line.col=c(myC1,myC2),poly.col=c(myC1,myC2),show.grid=T,radial.lim=c(0,55),lwd=8,rad.col="{line_color}",grid.col="{line_color}") + legend("{legend_position}",c("{legend_1}","{legend_2}"),pch=15,col=c(myC1,myC2),bty="n",cex={legend_size}) + + # Titling + + mtext(line=3,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=1,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=2,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{char_out_path}") + par(omi=c(1,0.25,1,1),mai=c(0,2,0,0.5),cex.axis=1.5,cex.lab=1,xpd=T,las=1) + + # Create chart + + radial.plot(myRegions[2:3,],start=1,grid.left=T,labels=myLabelling,rp.type="p",main="",line.col=c(myC1,myC2),poly.col=c(myC1,myC2),show.grid=T,radial.lim=c(0,55),lwd=8,rad.col="{line_color}",grid.col="{line_color}") + legend("{legend_position}",c("{legend_1}","{legend_2}"),pch=15,col=c(myC1,myC2),bty="n",cex={legend_size}) + + # Titling + + mtext(line=3,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=1,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=2,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, annotation, annotation_size, deviations_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, annotation_color, color_1, color_2, deviations_color, mean_line_color +# 示例文件 Scatter_Plot_Variant_2_Outliers_Highlighted.csv + +def Scatter_Plot_Variant_2_Outliers_Highlighted(file_path, char_out_path, out_path, title, caption, subtitle, + title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, + annotation, annotation_size, deviations_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, + annotation_color, color_1, color_2, deviations_color, mean_line_color): + code = f""" + library(gdata) + myStructuralData<-read.csv(file="{file_path}",head=F) + myData<-subset(myStructuralData,V2 > 0 & V34 > 10) + attach(myData) + myXDes<-"" + myYDes<-"{y_name}" + + pdf("{out_path}.pdf") + par(mar=c(4,4,0.5,2),omi=c(0.5,0.5,1,0),las=1) + + plot(type="n",xlab=myXDes,ylab=myYDes,V34,V21,xlim=c(10,26),ylim=c(-20,35),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,lwd.ticks=0.5,cex.axis={x_scale_font_size},tck=-0.015,col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.015,col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + + myC1<-rgb({color_1},200,maxColorValue=255) + myC2<-rgb({color_2},150,maxColorValue=255) + + fit<-lm(V21 ~ V34) + myData$fit<-fitted(fit) + points(V34,myData$fit,col=myC2,type="l",lwd=8) + + myData$resid<-residuals(fit) + myData.sort<-myData[order(-abs(myData$resid)) ,] + myData.sort_begin<-myData.sort[1:5,] + + myP1<-myData.sort[5+1:length(myData$fit),c("V34","V21")] + myP2<-myData.sort_begin[c("V34","V21")] + + myR1<-sqrt(myData.sort$V6)/10 + myR2<-sqrt(myData.sort_begin$V6)/10 + + symbols(myP1,circles=myR1,inches=0.3,bg=myC1,fg="white",add=T) + symbols(myP2,circles=myR2,inches=0.3,bg=myC2,fg="white",add=T) + + text(myP2,iconv(as.matrix(myData.sort_begin["V3"]),"LATIN1","UTF-8"),cex={deviations_size},pos=3,offset=1.1,col="{deviations_color}") + + abline(v=mean(V34,na.rm=T),col="{mean_line_color}",lty=3) + abline(h=mean(V21,na.rm=T),col="{mean_line_color}",lty=3) + + text(20,20, "{annotation}", adj=0,cex={annotation_size},col="{annotation_color}") + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=4,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.52,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{out_path}.png") + par(mar=c(4,4,0.5,2),omi=c(0.5,0.5,1,0),las=1) + + plot(type="n",xlab=myXDes,ylab=myYDes,V34,V21,xlim=c(10,26),ylim=c(-20,35),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,lwd.ticks=0.5,cex.axis={x_scale_font_size},tck=-0.015,col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.015,col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + + myC1<-rgb({color_1},200,maxColorValue=255) + myC2<-rgb({color_2},150,maxColorValue=255) + + fit<-lm(V21 ~ V34) + myData$fit<-fitted(fit) + points(V34,myData$fit,col=myC2,type="l",lwd=8) + + myData$resid<-residuals(fit) + myData.sort<-myData[order(-abs(myData$resid)) ,] + myData.sort_begin<-myData.sort[1:5,] + + myP1<-myData.sort[5+1:length(myData$fit),c("V34","V21")] + myP2<-myData.sort_begin[c("V34","V21")] + + myR1<-sqrt(myData.sort$V6)/10 + myR2<-sqrt(myData.sort_begin$V6)/10 + + symbols(myP1,circles=myR1,inches=0.3,bg=myC1,fg="white",add=T) + symbols(myP2,circles=myR2,inches=0.3,bg=myC2,fg="white",add=T) + + text(myP2,iconv(as.matrix(myData.sort_begin["V3"]),"LATIN1","UTF-8"),cex={deviations_size},pos=3,offset=1.1,col="{deviations_color}") + + abline(v=mean(V34,na.rm=T),col="{mean_line_color}",lty=3) + abline(h=mean(V21,na.rm=T),col="{mean_line_color}",lty=3) + + text(20,20, "{annotation}", adj=0,cex={annotation_size},col="{annotation_color}") + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=4,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.52,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{char_out_path}") + par(mar=c(4,4,0.5,2),omi=c(0.5,0.5,1,0),las=1) + + plot(type="n",xlab=myXDes,ylab=myYDes,V34,V21,xlim=c(10,26),ylim=c(-20,35),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,lwd.ticks=0.5,cex.axis={x_scale_font_size},tck=-0.015,col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.015,col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + + myC1<-rgb({color_1},200,maxColorValue=255) + myC2<-rgb({color_2},150,maxColorValue=255) + + fit<-lm(V21 ~ V34) + myData$fit<-fitted(fit) + points(V34,myData$fit,col=myC2,type="l",lwd=8) + + myData$resid<-residuals(fit) + myData.sort<-myData[order(-abs(myData$resid)) ,] + myData.sort_begin<-myData.sort[1:5,] + + myP1<-myData.sort[5+1:length(myData$fit),c("V34","V21")] + myP2<-myData.sort_begin[c("V34","V21")] + + myR1<-sqrt(myData.sort$V6)/10 + myR2<-sqrt(myData.sort_begin$V6)/10 + + symbols(myP1,circles=myR1,inches=0.3,bg=myC1,fg="white",add=T) + symbols(myP2,circles=myR2,inches=0.3,bg=myC2,fg="white",add=T) + + text(myP2,iconv(as.matrix(myData.sort_begin["V3"]),"LATIN1","UTF-8"),cex={deviations_size},pos=3,offset=1.1,col="{deviations_color}") + + abline(v=mean(V34,na.rm=T),col="{mean_line_color}",lty=3) + abline(h=mean(V21,na.rm=T),col="{mean_line_color}",lty=3) + + text(20,20, "{annotation}", adj=0,cex={annotation_size},col="{annotation_color}") + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=4,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.52,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + svg("{out_path}.svg") + par(mar=c(4,4,0.5,2),omi=c(0.5,0.5,1,0),las=1) + + plot(type="n",xlab=myXDes,ylab=myYDes,V34,V21,xlim=c(10,26),ylim=c(-20,35),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,lwd.ticks=0.5,cex.axis={x_scale_font_size},tck=-0.015,col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,lwd.ticks=0.5,cex.axis={y_scale_font_size},tck=-0.015,col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + + myC1<-rgb({color_1},200,maxColorValue=255) + myC2<-rgb({color_2},150,maxColorValue=255) + + fit<-lm(V21 ~ V34) + myData$fit<-fitted(fit) + points(V34,myData$fit,col=myC2,type="l",lwd=8) + + myData$resid<-residuals(fit) + myData.sort<-myData[order(-abs(myData$resid)) ,] + myData.sort_begin<-myData.sort[1:5,] + + myP1<-myData.sort[5+1:length(myData$fit),c("V34","V21")] + myP2<-myData.sort_begin[c("V34","V21")] + + myR1<-sqrt(myData.sort$V6)/10 + myR2<-sqrt(myData.sort_begin$V6)/10 + + symbols(myP1,circles=myR1,inches=0.3,bg=myC1,fg="white",add=T) + symbols(myP2,circles=myR2,inches=0.3,bg=myC2,fg="white",add=T) + + text(myP2,iconv(as.matrix(myData.sort_begin["V3"]),"LATIN1","UTF-8"),cex={deviations_size},pos=3,offset=1.1,col="{deviations_color}") + + abline(v=mean(V34,na.rm=T),col="{mean_line_color}",lty=3) + abline(h=mean(V21,na.rm=T),col="{mean_line_color}",lty=3) + + text(20,20, "{annotation}", adj=0,cex={annotation_size},col="{annotation_color}") + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=4,adj=1,cex={title_font_size}*0.4,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1,adj=0.52,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, average, average_font_size, celebrities_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, average_line_color, celebrities_color, color_1, color_2, average_font_color +# 示例文件 Scatter_Plot_Variant_3_Areas_Highlighted.xlsx + +def Scatter_Plot_Variant_3_Areas_Highlighted(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, + x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, average, + average_font_size, celebrities_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, + average_line_color, celebrities_color, color_1, color_2, average_font_color): + code = f""" + library(gdata) + library(gdata) + myPersons<-read.xls('{file_path}',encoding="latin1") + names(myPersons) <- c("markings","name","s","group1","group2","group3","h","w","comment") + attach(myPersons) + myData<-subset(myPersons,w>0 & s=="m" & name!="Max Schmeling") + attach(myData) + + pdf("{out_path}.pdf") + par(mai=c(0.85,1,0.25,0.25),omi=c(1,0.5,1,0.5),las=1) + + plot(type="n",xlab="",ylab="{y_name}",h,w,xlim=c(160,220),ylim=c(50,125),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis={x_scale_font_size}) + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + + myC1<-rgb(255,0,210,maxColorValue=255) + myC2<-rgb(0,208,226,100,maxColorValue=255) + + myP1<-subset(myData[c("h","w")],w>20*(h/100*h/100) & w<25*(h/100*h/100)) + myP2<-subset(myData[c("h","w")],w<20*(h/100*h/100)) + myP3<-subset(myData[c("h","w")],w>25*(h/100*h/100)) + + myDes2<-as.matrix(subset(name,w<20*(h/100*h/100))) + myDes3<-as.matrix(subset(name,w>25*(h/100*h/100))) + + symbols(myP1,bg='{color_1}',fg="white",circles=rep(1,nrow(myP1)),inches=0.25,add=T) + symbols(myP2,bg='{color_2}',fg="white",circles=rep(1,nrow(myP2)),inches=0.25,add=T) + symbols(myP3,bg='{color_2}',fg="white",circles=rep(1,nrow(myP3)),inches=0.25,add=T) + + text(myP2,myDes2,cex={celebrities_size},pos=1,offset=1.1,col="{celebrities_color}") + text(myP3,myDes3,cex={celebrities_size},pos=3,offset=1.1,col="{celebrities_color}") + + curve(20*(x/100*x/100),xlim=c(160,220),add=T) + curve(25*(x/100*x/100),xlim=c(160,220),add=T) + + abline(v=mean(h,na.rm=T),lty=3,col="{average_line_color}") + abline(h=mean(w,na.rm=T),lty=3,col="{average_line_color}") + text(182.5,52,"{average}",adj=0,font=3,cex={average_font_size},col="{average_font_color}") + + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1.2,adj=0.535,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{out_path}.png",width=900,height=408) + par(mai=c(0.85,1,0.25,0.25),omi=c(1,0.5,1,0.5),las=1) + + plot(type="n",xlab="",ylab="{y_name}",h,w,xlim=c(160,220),ylim=c(50,125),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis={x_scale_font_size}) + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + + myC1<-rgb(255,0,210,maxColorValue=255) + myC2<-rgb(0,208,226,100,maxColorValue=255) + + myP1<-subset(myData[c("h","w")],w>20*(h/100*h/100) & w<25*(h/100*h/100)) + myP2<-subset(myData[c("h","w")],w<20*(h/100*h/100)) + myP3<-subset(myData[c("h","w")],w>25*(h/100*h/100)) + + myDes2<-as.matrix(subset(name,w<20*(h/100*h/100))) + myDes3<-as.matrix(subset(name,w>25*(h/100*h/100))) + + symbols(myP1,bg='{color_1}',fg="white",circles=rep(1,nrow(myP1)),inches=0.25,add=T) + symbols(myP2,bg='{color_2}',fg="white",circles=rep(1,nrow(myP2)),inches=0.25,add=T) + symbols(myP3,bg='{color_2}',fg="white",circles=rep(1,nrow(myP3)),inches=0.25,add=T) + + text(myP2,myDes2,cex={celebrities_size},pos=1,offset=1.1,col="{celebrities_color}") + text(myP3,myDes3,cex={celebrities_size},pos=3,offset=1.1,col="{celebrities_color}") + + curve(20*(x/100*x/100),xlim=c(160,220),add=T) + curve(25*(x/100*x/100),xlim=c(160,220),add=T) + + abline(v=mean(h,na.rm=T),lty=3,col="{average_line_color}") + abline(h=mean(w,na.rm=T),lty=3,col="{average_line_color}") + text(182.5,52,"{average}",adj=0,font=3,cex={average_font_size},col="{average_font_color}") + + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1.2,adj=0.535,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{char_out_path}") + par(mai=c(0.85,1,0.25,0.25),omi=c(1,0.5,1,0.5),las=1) + + plot(type="n",xlab="",ylab="{y_name}",h,w,xlim=c(160,220),ylim=c(50,125),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis={x_scale_font_size}) + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + + myC1<-rgb(255,0,210,maxColorValue=255) + myC2<-rgb(0,208,226,100,maxColorValue=255) + + myP1<-subset(myData[c("h","w")],w>20*(h/100*h/100) & w<25*(h/100*h/100)) + myP2<-subset(myData[c("h","w")],w<20*(h/100*h/100)) + myP3<-subset(myData[c("h","w")],w>25*(h/100*h/100)) + + myDes2<-as.matrix(subset(name,w<20*(h/100*h/100))) + myDes3<-as.matrix(subset(name,w>25*(h/100*h/100))) + + symbols(myP1,bg='{color_1}',fg="white",circles=rep(1,nrow(myP1)),inches=0.25,add=T) + symbols(myP2,bg='{color_2}',fg="white",circles=rep(1,nrow(myP2)),inches=0.25,add=T) + symbols(myP3,bg='{color_2}',fg="white",circles=rep(1,nrow(myP3)),inches=0.25,add=T) + + text(myP2,myDes2,cex={celebrities_size},pos=1,offset=1.1,col="{celebrities_color}") + text(myP3,myDes3,cex={celebrities_size},pos=3,offset=1.1,col="{celebrities_color}") + + curve(20*(x/100*x/100),xlim=c(160,220),add=T) + curve(25*(x/100*x/100),xlim=c(160,220),add=T) + + abline(v=mean(h,na.rm=T),lty=3,col="{average_line_color}") + abline(h=mean(w,na.rm=T),lty=3,col="{average_line_color}") + text(182.5,52,"{average}",adj=0,font=3,cex={average_font_size},col="{average_font_color}") + + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1.2,adj=0.535,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + svg("{out_path}.svg") + par(mai=c(0.85,1,0.25,0.25),omi=c(1,0.5,1,0.5),las=1) + + plot(type="n",xlab="",ylab="{y_name}",h,w,xlim=c(160,220),ylim=c(50,125),axes=F,cex.lab={y_font_size},col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis={x_scale_font_size}) + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + + myC1<-rgb(255,0,210,maxColorValue=255) + myC2<-rgb(0,208,226,100,maxColorValue=255) + + myP1<-subset(myData[c("h","w")],w>20*(h/100*h/100) & w<25*(h/100*h/100)) + myP2<-subset(myData[c("h","w")],w<20*(h/100*h/100)) + myP3<-subset(myData[c("h","w")],w>25*(h/100*h/100)) + + myDes2<-as.matrix(subset(name,w<20*(h/100*h/100))) + myDes3<-as.matrix(subset(name,w>25*(h/100*h/100))) + + symbols(myP1,bg='{color_1}',fg="white",circles=rep(1,nrow(myP1)),inches=0.25,add=T) + symbols(myP2,bg='{color_2}',fg="white",circles=rep(1,nrow(myP2)),inches=0.25,add=T) + symbols(myP3,bg='{color_2}',fg="white",circles=rep(1,nrow(myP3)),inches=0.25,add=T) + + text(myP2,myDes2,cex={celebrities_size},pos=1,offset=1.1,col="{celebrities_color}") + text(myP3,myDes3,cex={celebrities_size},pos=3,offset=1.1,col="{celebrities_color}") + + curve(20*(x/100*x/100),xlim=c(160,220),add=T) + curve(25*(x/100*x/100),xlim=c(160,220),add=T) + + abline(v=mean(h,na.rm=T),lty=3,col="{average_line_color}") + abline(h=mean(w,na.rm=T),lty=3,col="{average_line_color}") + text(182.5,52,"{average}",adj=0,font=3,cex={average_font_size},col="{average_font_color}") + + mtext("{title}",3,adj=0,line=2,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=0,cex={title_font_size}*0.6,outer=T,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=1,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + mtext("{x_name}",1,line=-1.2,adj=0.535,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, font_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, line_color, color +# 示例文件 Scatter_Plot_Variant_5_Connected_Points.xlsx + +def Scatter_Plot_Variant_5_Connected_Points(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, + x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, font_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, + line_color, color): + code = f""" + library(gdata) + myData<-read.xls('{file_path}',encoding="latin1") + names(myData) <- c("Year","GDP","LEXP") + myData<-myData[myData$Year>=1985, ] + attach(myData) + n<-nrow(myData) + grGDP<-vector() + grLEXP<-vector() + + for (i in 2:n) + {{ + grGDP[i]<-(GDP[i]-GDP[i-1])/GDP[i-1] + grLEXP[i]<-(LEXP[i]-LEXP[i-1])/LEXP[i-1] + }} + myData$grGDP<-grGDP*100 + myData$grLEXP<-grLEXP*100 + myData<-myData[2:n, ] + + n<-nrow(myData) + + t <- 1:n + ts <- seq(1, n, by = 1/10) + xs <- splinefun(t, myData$grGDP)(ts) + ys <- splinefun(t, myData$grLEXP)(ts) + + pdf("{out_path}.pdf") + par(mai=c(1.1,1.25,0.15,0),omi=c(1,0.5,1,0.5), mgp=c(4.5,1,0),las=1) + + plot(myData$grGDP, myData$grLEXP, type="n", xlab="", ylab="{y_name}", cex.lab={y_font_size}, axes=F, col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + lines(xs, ys,lwd=7,col="{line_color}") + for (i in 1:n) + {{ + symbols(myData$grGDP[i],myData$grLEXP[i],bg="{color}",fg="{font_color}",circles=1,inches=0.25,add=T) + text(myData$grGDP[i],myData$grLEXP[i], myData$Year[i],col="{font_color}",cex={font_size}) + }} + + mtext("{title}",3,adj=0,line=1.5,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1.05,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{out_path}.png") + par(mai=c(1.1,1.25,0.15,0),omi=c(1,0.5,1,0.5), mgp=c(4.5,1,0),las=1) + + plot(myData$grGDP, myData$grLEXP, type="n", xlab="", ylab="{y_name}", cex.lab={y_font_size}, axes=F, col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + lines(xs, ys,lwd=7,col="{line_color}") + for (i in 1:n) + {{ + symbols(myData$grGDP[i],myData$grLEXP[i],bg="{color}",fg="{font_color}",circles=1,inches=0.25,add=T) + text(myData$grGDP[i],myData$grLEXP[i], myData$Year[i],col="{font_color}",cex={font_size}) + }} + + mtext("{title}",3,adj=0,line=1.5,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1.05,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + png("{char_out_path}") + par(mai=c(1.1,1.25,0.15,0),omi=c(1,0.5,1,0.5), mgp=c(4.5,1,0),las=1) + + plot(myData$grGDP, myData$grLEXP, type="n", xlab="", ylab="{y_name}", cex.lab={y_font_size}, axes=F, col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + lines(xs, ys,lwd=7,col="{line_color}") + for (i in 1:n) + {{ + symbols(myData$grGDP[i],myData$grLEXP[i],bg="{color}",fg="{font_color}",circles=1,inches=0.25,add=T) + text(myData$grGDP[i],myData$grLEXP[i], myData$Year[i],col="{font_color}",cex={font_size}) + }} + + mtext("{title}",3,adj=0,line=1.5,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1.05,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + + svg("{out_path}.svg") + par(mai=c(1.1,1.25,0.15,0),omi=c(1,0.5,1,0.5), mgp=c(4.5,1,0),las=1) + + plot(myData$grGDP, myData$grLEXP, type="n", xlab="", ylab="{y_name}", cex.lab={y_font_size}, axes=F, col.lab="{y_font_color}") + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}") + + lines(xs, ys,lwd=7,col="{line_color}") + for (i in 1:n) + {{ + symbols(myData$grGDP[i],myData$grLEXP[i],bg="{color}",fg="{font_color}",circles=1,inches=0.25,add=T) + text(myData$grGDP[i],myData$grLEXP[i], myData$Year[i],col="{font_color}",cex={font_size}) + }} + + mtext("{title}",3,adj=0,line=1.5,cex={title_font_size},outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext("{caption}",1,line=2,adj=1,cex={title_font_size}*0.4,font=3,outer=T,col="{title_font_color}") + mtext("{x_name}",1,line=-1.05,adj=0.57,cex={x_font_size},font=3,outer=T,col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, font_size, character, time_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, time_color +# 示例文件 Scatter_Plot_With_User_Defined_Symbols.xlsx + +def Scatter_Plot_With_User_Defined_Symbols(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, + x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, font_size, + character, time_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, font_color, + time_color): + code = f""" + library(maptools) + library(gdata) + myData<-read.xls("{file_path}", encoding="latin1") + names(myData) <- c("WarNum","WarName","WarType","CcodeA","SideA","CcodeB","SideB","Intnl","StartMonth1","StartDay1","StartYear1","EndMonth1","EndDay1","EndYear1","StartMonth2","StartDay2","StartYear2","EndMonth2","EndDay2","EndYear2","TransFrom","WhereFought","Initiator","Outcome","TransTo","SideADeaths","SideBDeaths","Version") + mySelection<-subset(myData, myData$StartYear1>=1995 & myData$SideADeaths > 0 & myData$SideADeaths < 2000 & myData$SideBDeaths > 0 & myData$SideBDeaths < 4000) + attach(mySelection) + myColour<-"{font_color}" + myN<-nrow(mySelection) + h<-rep(0, myN) + v<-rep(0, myN) + myOffset<-cbind(h, v) + mySelection[, c("WarName", "StartYear1", "SideADeaths", "SideBDeaths")] + myOffset[1, "h"]<--400 + myOffset[5, "h"]<-232 + myOffset[4, "h"]<--275 + myOffset[2, "h"]<-270; myOffset[2, "v"]<-100; + myOffset[13, "h"]<--275 + myOffset[12, "h"]<--300 + myX<-as.numeric(SideADeaths) + myY<-as.numeric(SideBDeaths) + + pdf("{out_path}.pdf") + par(omi=c(0.5,0.5,0,0),mai=c(0.5,1.25,0,0.25),las=1) + plot(myX, myY, typ="n", xlab="", ylab="", axes=F, xlim=c(0, 2000), ylim=c(0, 4000)) + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis="{x_scale_font_size}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis="{y_scale_font_size}") + text(myX+130+myOffset[, "h"], myY-180+myOffset[, "v"], paste(WarName, StartYear1, sep=" "), cex={time_size}, xpd=T, col="{time_color}") + + mtext(side=1, "{x_name}", adj=0.5, line=3, cex={x_font_size}, col="{x_font_color}") + mtext(side=2, "{y_name}", las=0, adj=0.5, line=4, cex={y_font_size}, col="{y_font_color}") + + mtext("{title}",3,adj=1,line=-3,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,adj=1,line=-5,cex={title_font_size}*0.6,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + text(myX, myY, "{character}", col=myColour, cex={font_size}, xpd=T) + dev.off() + + png("{out_path}.png") + par(omi=c(0.5,0.5,0,0),mai=c(0.5,1.25,0,0.25),las=1) + plot(myX, myY, typ="n", xlab="", ylab="", axes=F, xlim=c(0, 2000), ylim=c(0, 4000)) + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis="{x_scale_font_size}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis="{y_scale_font_size}") + text(myX+130+myOffset[, "h"], myY-180+myOffset[, "v"], paste(WarName, StartYear1, sep=" "), cex={time_size}, xpd=T, col="{time_color}") + + mtext(side=1, "{x_name}", adj=0.5, line=3, cex={x_font_size}, col="{x_font_color}") + mtext(side=2, "{y_name}", las=0, adj=0.5, line=4, cex={y_font_size}, col="{y_font_color}") + + mtext("{title}",3,adj=1,line=-3,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,adj=1,line=-5,cex={title_font_size}*0.6,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + text(myX, myY, "{character}", col=myColour, cex={font_size}, xpd=T) + dev.off() + + png("{char_out_path}") + par(omi=c(0.5,0.5,0,0),mai=c(0.5,1.25,0,0.25),las=1) + plot(myX, myY, typ="n", xlab="", ylab="", axes=F, xlim=c(0, 2000), ylim=c(0, 4000)) + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis="{x_scale_font_size}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis="{y_scale_font_size}") + text(myX+130+myOffset[, "h"], myY-180+myOffset[, "v"], paste(WarName, StartYear1, sep=" "), cex={time_size}, xpd=T, col="{time_color}") + + mtext(side=1, "{x_name}", adj=0.5, line=3, cex={x_font_size}, col="{x_font_color}") + mtext(side=2, "{y_name}", las=0, adj=0.5, line=4, cex={y_font_size}, col="{y_font_color}") + + mtext("{title}",3,adj=1,line=-3,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,adj=1,line=-5,cex={title_font_size}*0.6,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + text(myX, myY, "{character}", col=myColour, cex={font_size}, xpd=T) + dev.off() + + + svg("{out_path}.svg") + par(omi=c(0.5,0.5,0,0),mai=c(0.5,1.25,0,0.25),las=1) + plot(myX, myY, typ="n", xlab="", ylab="", axes=F, xlim=c(0, 2000), ylim=c(0, 4000)) + axis(1,col=par("bg"),col.ticks="{x_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{x_scale_font_color}",cex.axis="{x_scale_font_size}") + axis(2,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis="{y_scale_font_size}") + text(myX+130+myOffset[, "h"], myY-180+myOffset[, "v"], paste(WarName, StartYear1, sep=" "), cex={time_size}, xpd=T, col="{time_color}") + + mtext(side=1, "{x_name}", adj=0.5, line=3, cex={x_font_size}, col="{x_font_color}") + mtext(side=2, "{y_name}", las=0, adj=0.5, line=4, cex={y_font_size}, col="{y_font_color}") + + mtext("{title}",3,adj=1,line=-3,cex={title_font_size},col="{title_font_color}") + mtext("{subtitle}",3,adj=1,line=-5,cex={title_font_size}*0.6,font=3,col="{title_font_color}") + mtext("{caption}",1,line=1,adj=0,cex={title_font_size}*0.4,outer=T,font=3,col="{title_font_color}") + text(myX, myY, "{character}", col=myColour, cex={font_size}, xpd=T) + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, annotation, number_size + + +# 高级参数 title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, number_font_color, color_1, color_2, color_3, line_color +# 示例文件 Scatter_Plot_with_Few_Points.csv + +def Scatter_Plot_with_Few_Points(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_name, + x_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, annotation, number_size, + title_font_color, x_font_color, x_scale_font_color, y_font_color, y_scale_font_color, number_font_color, color_1, + color_2, color_3, line_color): + code = f""" + datas <- read.csv("{file_path}", header = FALSE) + + myValue <- datas[,1] + myRevenue <- datas[,2] + myProfit <- datas[,3] + + myC1<-rgb({color_2},maxColorValue=255) + myC2<-rgb({color_3},maxColorValue=255) + myC3<-"grey" + myC4<-rgb({color_1},maxColorValue=255) + + names<-c("BMW:\n44,6 Bn.","Daimler:\n45,5 Bn.","","Facebook:\n75-100 Bn.") + + pdf("{out_path}.pdf") + dev.off() + + png("{out_path}.png") + par(mai=c(2,1,1,1),omi=c(0,0,0,0),xpd=T,las=1) + + plot(myRevenue,myProfit,axes=F,type="n",xlab="",ylab="{y_name}",xlim=c(-20,100),ylim=c(-1,6),cex.lab={y_font_size},col.lab="{y_font_color}") + for (i in 1:3) + {{ + arrows(myRevenue[i],-1,myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + arrows(-20,myProfit[i],myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + }} + points(myRevenue,myProfit,pch=19,cex=myValue/2.6,col=c(myC1,myC2,myC3,myC4)) + text(myRevenue,myProfit,names,col="{number_font_color}",cex={number_size}) + axis(1,at=c(2.5,60.5,97.8),labels=c("2.5*","60.5","97.8"),cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,at=c(1,4.8),labels=c("1.0","4.8\n4.7"),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + text(-25.5,5.08,"**",col="{y_scale_font_color}") + text(-26.5,1.08,"*",col="{y_scale_font_color}") + + mtext(line=1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=6.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + mtext(side=1,line=4.5,"{annotation}",cex={title_font_size}*0.6,adj=0,col="{title_font_color}") + mtext("{x_name}",1,3,adj=0.5,cex={x_font_size},col="{x_font_color}") + par(mai=c(2,1,1,1),omi=c(0,0,0,0),xpd=T,las=1) + + plot(myRevenue,myProfit,axes=F,type="n",xlab="",ylab="{y_name}",xlim=c(-20,100),ylim=c(-1,6),cex.lab={y_font_size},col.lab="{y_font_color}") + for (i in 1:3) + {{ + arrows(myRevenue[i],-1,myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + arrows(-20,myProfit[i],myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + }} + points(myRevenue,myProfit,pch=19,cex=myValue/2.6,col=c(myC1,myC2,myC3,myC4)) + text(myRevenue,myProfit,names,col="{number_font_color}",cex={number_size}) + axis(1,at=c(2.5,60.5,97.8),labels=c("2.5*","60.5","97.8"),cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,at=c(1,4.8),labels=c("1.0","4.8\n4.7"),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + text(-25.5,5.08,"**",col="{y_scale_font_color}") + text(-26.5,1.08,"*",col="{y_scale_font_color}") + + mtext(line=1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=6.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + mtext(side=1,line=4.5,"{annotation}",cex={title_font_size}*0.6,adj=0,col="{title_font_color}") + mtext("{x_name}",1,3,adj=0.5,cex={x_font_size},col="{x_font_color}") + dev.off() + + png("{char_out_path}") + par(mai=c(2,1,1,1),omi=c(0,0,0,0),xpd=T,las=1) + + plot(myRevenue,myProfit,axes=F,type="n",xlab="",ylab="{y_name}",xlim=c(-20,100),ylim=c(-1,6),cex.lab={y_font_size},col.lab="{y_font_color}") + for (i in 1:3) + {{ + arrows(myRevenue[i],-1,myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + arrows(-20,myProfit[i],myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + }} + points(myRevenue,myProfit,pch=19,cex=myValue/2.6,col=c(myC1,myC2,myC3,myC4)) + text(myRevenue,myProfit,names,col="{number_font_color}",cex={number_size}) + axis(1,at=c(2.5,60.5,97.8),labels=c("2.5*","60.5","97.8"),cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,at=c(1,4.8),labels=c("1.0","4.8\n4.7"),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + text(-25.5,5.08,"**",col="{y_scale_font_color}") + text(-26.5,1.08,"*",col="{y_scale_font_color}") + + mtext(line=1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=6.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + mtext(side=1,line=4.5,"{annotation}",cex={title_font_size}*0.6,adj=0,col="{title_font_color}") + mtext("{x_name}",1,3,adj=0.5,cex={x_font_size},col="{x_font_color}") + dev.off() + + + svg("{out_path}.svg") + par(mai=c(2,1,1,1),omi=c(0,0,0,0),xpd=T,las=1) + + plot(myRevenue,myProfit,axes=F,type="n",xlab="",ylab="{y_name}",xlim=c(-20,100),ylim=c(-1,6),cex.lab={y_font_size},col.lab="{y_font_color}") + for (i in 1:3) + {{ + arrows(myRevenue[i],-1,myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + arrows(-20,myProfit[i],myRevenue[i],myProfit[i],length=0.10,lty="dotted",angle=10,code=0,lwd=1,col="{line_color}") + }} + points(myRevenue,myProfit,pch=19,cex=myValue/2.6,col=c(myC1,myC2,myC3,myC4)) + text(myRevenue,myProfit,names,col="{number_font_color}",cex={number_size}) + axis(1,at=c(2.5,60.5,97.8),labels=c("2.5*","60.5","97.8"),cex.axis={x_scale_font_size},col.axis="{x_scale_font_color}",col="{x_scale_font_color}") + axis(2,at=c(1,4.8),labels=c("1.0","4.8\n4.7"),cex.axis={y_scale_font_size},col.axis="{y_scale_font_color}",col="{y_scale_font_color}") + text(-25.5,5.08,"**",col="{y_scale_font_color}") + text(-26.5,1.08,"*",col="{y_scale_font_color}") + + mtext(line=1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=6.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + mtext(side=1,line=4.5,"{annotation}",cex={title_font_size}*0.6,adj=0,col="{title_font_color}") + mtext("{x_name}",1,3,adj=0.5,cex={x_font_size},col="{x_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, title_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, name_1, name_2 + + +# 高级参数 title_font_color, x_scale_font_color, y_font_color, y_scale_font_color, color_1, color_2, name_color +# 示例文件 Seasonal_Ranges_Panel.xlsx + +def Seasonal_Ranges_Panel(file_path, char_out_path, out_path, title, caption, title_font_size, x_scale_font_size, y_name, y_font_size, + y_scale_font_size, name_1, name_2, + title_font_color, x_scale_font_color, y_font_color, y_scale_font_color, color_1, color_2, name_size, name_color): + code = f""" + library(gplots) + library(gdata) + myData<-read.xls('{file_path}', encoding="latin1") + attach(myData) + myLines<-c(-5,0,5,10,15,20,25,30) + + pdf("{out_path}.pdf") + par(omi=c(0.25,0.25,0.5,0.25),mai=c(0.45,0.35,0.5,0),mfcol=c(1,2),las=1) + myT1<-barplot2(t(cbind(NY_min,NY_max-NY_min)),col=c(NA,"{color_1}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + for (i in 1:length(myLines)) {{text(-0.8,myLines[i]+1.1,myLines[i],xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size})}} + text(0.25,33,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + mtext(side=3,"{name_1}",cex={name_size},col="{name_color}") + myT2<-barplot2(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c(NA,"{color_2}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + + mtext(side=3,"{name_2}",cex={name_size},col="{name_color}") + mtext(side=3,"{title}",cex={title_font_size},outer=T,col="{title_font_color}") + mtext(side=1,"{caption}",line=-0.4,cex={title_font_size}*0.6,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.25,0.25,0.5,0.25),mai=c(0.45,0.35,0.5,0),mfcol=c(1,2),las=1) + myT1<-barplot2(t(cbind(NY_min,NY_max-NY_min)),col=c(NA,"{color_1}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + for (i in 1:length(myLines)) {{text(-0.8,myLines[i]+1.1,myLines[i],xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size})}} + text(0.25,33,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + mtext(side=3,"{name_1}",cex={name_size},col="{name_color}") + myT2<-barplot2(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c(NA,"{color_2}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + + mtext(side=3,"{name_2}",cex={name_size},col="{name_color}") + mtext(side=3,"{title}",cex={title_font_size},outer=T,col="{title_font_color}") + mtext(side=1,"{caption}",line=-0.4,cex={title_font_size}*0.6,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=408) + par(omi=c(0.25,0.25,0.5,0.25),mai=c(0.45,0.35,0.5,0),mfcol=c(1,2),las=1) + myT1<-barplot2(t(cbind(NY_min,NY_max-NY_min)),col=c(NA,"{color_1}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + for (i in 1:length(myLines)) {{text(-0.8,myLines[i]+1.1,myLines[i],xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size})}} + text(0.25,33,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + mtext(side=3,"{name_1}",cex={name_size},col="{name_color}") + myT2<-barplot2(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c(NA,"{color_2}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + + mtext(side=3,"{name_2}",cex={name_size},col="{name_color}") + mtext(side=3,"{title}",cex={title_font_size},outer=T,col="{title_font_color}") + mtext(side=1,"{caption}",line=-0.4,cex={title_font_size}*0.6,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.25,0.25,0.5,0.25),mai=c(0.45,0.35,0.5,0),mfcol=c(1,2),las=1) + myT1<-barplot2(t(cbind(NY_min,NY_max-NY_min)),col=c(NA,"{color_1}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + for (i in 1:length(myLines)) {{text(-0.8,myLines[i]+1.1,myLines[i],xpd=T,col="{y_scale_font_color}",cex={y_scale_font_size})}} + text(0.25,33,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + mtext(side=3,"{name_1}",cex={name_size},col="{name_color}") + myT2<-barplot2(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c(NA,"{color_2}"),border=NA,names.arg=Month,ylim=c(-5,35),panel.first=abline(h=myLines,col="grey",lwd=1,lty="dotted"),axes=F,cex.names="{x_scale_font_size}",col.axis="{x_scale_font_color}") + + mtext(side=3,"{name_2}",cex={name_size},col="{name_color}") + mtext(side=3,"{title}",cex={title_font_size},outer=T,col="{title_font_color}") + mtext(side=1,"{caption}",line=-0.4,cex={title_font_size}*0.6,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_scale_font_size, y_name, y_font_size, y_scale_font_size, legend_1, legend_2, legend_size + + +# 高级参数 title_font_color, x_scale_font_color, y_font_color, y_scale_font_color, color_1, color_2, line_color, legend_color +# 示例文件 Seasonal_Ranges_Stacked.xlsx + +def Seasonal_Ranges_Stacked(file_path, char_out_path, out_path, title, caption, subtitle, title_font_size, x_scale_font_size, + y_name, y_font_size, y_scale_font_size, legend_1, legend_2, legend_size, + title_font_color, x_scale_font_color, y_font_color, y_scale_font_color, color_1, color_2, line_color, + legend_color): + code = f""" + library(gdata) + myData<-read.xls('{file_path}',encoding="latin1") + names(myData) <- c("Month","NY_min","NY_max","MAJ_min","MAJ_max") + myLines<-c(-5,0,5,10,15,20,25,30) + attach(myData) + + pdf("{out_path}.pdf") + par(omi=c(0.25,0,0.75,0.25),mai=c(0.5,2,0.5,2),las=1) + + myT1<-barplot(t(cbind(NY_min,NY_max-NY_min)),col=c("white","{color_2}"),border=NA,ylim=c(-5,35),axes=F,axisnames=F) + myT2<-barplot(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c("white","{color_1}"),border=NA,add=T,axes=F,names.arg=Month,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + axis(2,at=myLines,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + abline(h=myLines,col="white",lwd=2) + abline(v=seq(2.5,28.8,by=2.4),col="{line_color}") + text(-0.95,34,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + legend(18,18,c("{legend_2}","{legend_1}"),col=c("{color_2}","{color_1}"),pch=15,bty="n",xjust=1,cex={legend_size},pt.cex={legend_size},xpd=T,text.col="{legend_color}") + + mtext(side=3,"{title}",cex={title_font_size},adj=0.1,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext(side=1,line=-1,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.25,0,0.75,0.25),mai=c(0.5,2,0.5,2),las=1) + + myT1<-barplot(t(cbind(NY_min,NY_max-NY_min)),col=c("white","{color_2}"),border=NA,ylim=c(-5,35),axes=F,axisnames=F) + myT2<-barplot(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c("white","{color_1}"),border=NA,add=T,axes=F,names.arg=Month,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + axis(2,at=myLines,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + abline(h=myLines,col="white",lwd=2) + abline(v=seq(2.5,28.8,by=2.4),col="{line_color}") + text(-0.95,34,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + legend(18,18,c("{legend_2}","{legend_1}"),col=c("{color_2}","{color_1}"),pch=15,bty="n",xjust=1,cex={legend_size},pt.cex={legend_size},xpd=T,text.col="{legend_color}") + + mtext(side=3,"{title}",cex={title_font_size},adj=0.1,outer=T,col="{title_font_color}") + mtext("{subtitle}",3,adj=0,line=-0.25,cex={title_font_size}*0.6,font=3,outer=T,col="{title_font_color}") + mtext(side=1,line=-1,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=408) + par(omi=c(0.25,0,0.75,0.25),mai=c(0.5,2,0.5,2),las=1) + + myT1<-barplot(t(cbind(NY_min,NY_max-NY_min)),col=c("white","{color_2}"),border=NA,ylim=c(-5,35),axes=F,axisnames=F) + myT2<-barplot(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c("white","{color_1}"),border=NA,add=T,axes=F,names.arg=Month,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + axis(2,at=myLines,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + abline(h=myLines,col="white",lwd=2) + abline(v=seq(2.5,28.8,by=2.4),col="{line_color}") + text(-0.95,34,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + legend(18,18,c("{legend_2}","{legend_1}"),col=c("{color_2}","{color_1}"),pch=15,bty="n",xjust=1,cex={legend_size},pt.cex={legend_size},xpd=T,text.col="{legend_color}") + + mtext(side=3,"{title}",cex={title_font_size},adj=0.1,outer=T,col="{title_font_color}") + mtext(side=1,line=-1,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.25,0,0.75,0.25),mai=c(0.5,2,0.5,2),las=1) + + myT1<-barplot(t(cbind(NY_min,NY_max-NY_min)),col=c("white","{color_2}"),border=NA,ylim=c(-5,35),axes=F,axisnames=F) + myT2<-barplot(t(cbind(MAJ_min,MAJ_max-MAJ_min)),col=c("white","{color_1}"),border=NA,add=T,axes=F,names.arg=Month,col.axis="{x_scale_font_color}",cex.names={x_scale_font_size}) + axis(2,at=myLines,col=par("bg"),col.ticks="{y_scale_font_color}",lwd.ticks=0.5,tck=-0.025,col.axis="{y_scale_font_color}",cex.axis={y_scale_font_size}) + abline(h=myLines,col="white",lwd=2) + abline(v=seq(2.5,28.8,by=2.4),col="{line_color}") + text(-0.95,34,"{y_name}",xpd=T,cex={y_font_size},col="{y_font_color}") + legend(18,18,c("{legend_2}","{legend_1}"),col=c("{color_2}","{color_1}"),pch=15,bty="n",xjust=1,cex={legend_size},pt.cex={legend_size},xpd=T,text.col="{legend_color}") + + mtext(side=3,"{title}",cex={title_font_size},adj=0.1,outer=T,col="{title_font_color}") + mtext(side=1,line=-1,"{caption}",cex={title_font_size}*0.4,adj=1,font=3,outer=T,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system( + f"Rscript {out_path}.R") # 基础参数 file_path, char_out_path, out_path, title, caption, title_font_size, x_name, x_font_size, x_scale_font_size, y_name, y_font_size, heading_font_size, date_size, percent_size, main_size, font_size + + +# 高级参数 font_color, x_font_color, x_scale_font_color, y_font_color, heading_font_color, line_color, title_font_color, date_color, percent_color, main_color +# 示例文件 Simplified_Gantt_Chart.xlsx + +def Simplified_Gantt_Chart(file_path, char_out_path, out_path, title, caption, title_font_size, x_name, x_font_size, x_scale_font_size, + y_name, y_font_size, heading_font_size, date_size, percent_size, main_size, font_size, + font_color, x_font_color, x_scale_font_color, y_font_color, heading_font_color, line_color, title_font_color, + date_color, percent_color, main_color): + y_name = "\n".join(y_name) + + code = f""" + library(gdata) + mySchedule<-read.xls('{file_path}',encoding="latin1") + names(mySchedule) <- c("Milestone","when","Group","what","from","to","Durance","who","done","PAN","PAG","AG_from","AG_to","Persons") + c0<-"black"; c1<-"green"; c2<-"red"; c3<-"blue"; c4<-"orange"; c5<-"brown" + myColour_done<-"grey" + myColour<-c(c0,c1,c1,c1,c0,c0,c2,c2,c2,c2,c0,c0,c3,c3,c3,c0,c0,c4,c4,c4,c0,c0,c5) + + n<-nrow(mySchedule) + myScheduleData<-subset(mySchedule,nchar(as.character(mySchedule$from))>0) + myBegin<-min(as.Date(as.matrix(myScheduleData[,c('from','to')]))) + myEnd<-max(as.Date(as.matrix(myScheduleData[,c('from','to')]))) + attach(mySchedule) + + pdf("{out_path}.pdf") + par(lend=1,omi=c(0.25,1,1,0.25),mai=c(1,1.85,0.25,2.75),las=1) + + plot(from,1:n,type="n",xlab="{x_name}",ylab="",axes=F,xlim=c(myBegin,myEnd),ylim=c(n,1), col.lab="{x_font_color}",cex.lab={x_font_size}) + for (i in 1:n) + {{ + if (nchar(as.character(Group[i]))>0) + {{ + text(myBegin-2,i,Group[i],adj=1,xpd=T,cex={heading_font_size},col="{heading_font_color}") + }} + else if (nchar(as.character(what[i]))>0) + {{ + x1<-as.Date(mySchedule[i,'from']) + x2<-as.Date(mySchedule[i,'to']) + x3<-x1+((x2-x1)*mySchedule[i,'done']/100) + x<-c(x1,x2) + x_done<-c(x1,x3) + y<-c(i,i) + segments(myBegin, i, myEnd, i, col="{line_color}") + lines(x,y,lwd=20,col=myColour[i]) + points(myEnd+90,i,cex=(mySchedule[i,'Persons']*mySchedule[i,'Durance'])**0.5,pch=19,col=rgb(110,110,110,50,maxColorValue=255),xpd=T) + if (x3-x1>1) lines(x_done,y,lwd=20,col=myColour_done) + if (mySchedule[i,'PAG'] > 0) + {{ + x4<-as.Date(mySchedule[i,'AG_from']) + x5<-as.Date(mySchedule[i,'AG_to']) + x_ag<-c(x4,x5) + rect(x4,i-0.75,x5,i+0.75,lwd=2) + }} + text(myBegin-2,i,what[i],adj=1,xpd=T,cex={main_size},col="{main_color}") + text(myEnd+25,i,paste(done[i],"%",sep=" "),adj=1,xpd=T,cex={percent_size},col="{percent_color}") + text(myEnd+35,i,paste(format(x1,format="%d/%m/%y"),"-",format(x2,format="%d/%m/%y"),sep=" "),adj=0,xpd=T,cex={date_size},col="{date_color}") + }} + else # Milestone + {{ + x3<-as.Date(mySchedule[i,'when']) + myHalf<-(myEnd-myBegin)/2 + if (x3-x10) + {{ + text(myBegin-2,i,Group[i],adj=1,xpd=T,cex={heading_font_size},col="{heading_font_color}") + }} + else if (nchar(as.character(what[i]))>0) + {{ + x1<-as.Date(mySchedule[i,'from']) + x2<-as.Date(mySchedule[i,'to']) + x3<-x1+((x2-x1)*mySchedule[i,'done']/100) + x<-c(x1,x2) + x_done<-c(x1,x3) + y<-c(i,i) + segments(myBegin, i, myEnd, i, col="{line_color}") + lines(x,y,lwd=20,col=myColour[i]) + points(myEnd+90,i,cex=(mySchedule[i,'Persons']*mySchedule[i,'Durance'])**0.5,pch=19,col=rgb(110,110,110,50,maxColorValue=255),xpd=T) + if (x3-x1>1) lines(x_done,y,lwd=20,col=myColour_done) + if (mySchedule[i,'PAG'] > 0) + {{ + x4<-as.Date(mySchedule[i,'AG_from']) + x5<-as.Date(mySchedule[i,'AG_to']) + x_ag<-c(x4,x5) + rect(x4,i-0.75,x5,i+0.75,lwd=2) + }} + text(myBegin-2,i,what[i],adj=1,xpd=T,cex={main_size},col="{main_color}") + text(myEnd+25,i,paste(done[i],"%",sep=" "),adj=1,xpd=T,cex={percent_size},col="{percent_color}") + text(myEnd+35,i,paste(format(x1,format="%d/%m/%y"),"-",format(x2,format="%d/%m/%y"),sep=" "),adj=0,xpd=T,cex={date_size},col="{date_color}") + }} + else # Milestone + {{ + x3<-as.Date(mySchedule[i,'when']) + myHalf<-(myEnd-myBegin)/2 + if (x3-x10) + {{ + text(myBegin-2,i,Group[i],adj=1,xpd=T,cex={heading_font_size},col="{heading_font_color}") + }} + else if (nchar(as.character(what[i]))>0) + {{ + x1<-as.Date(mySchedule[i,'from']) + x2<-as.Date(mySchedule[i,'to']) + x3<-x1+((x2-x1)*mySchedule[i,'done']/100) + x<-c(x1,x2) + x_done<-c(x1,x3) + y<-c(i,i) + segments(myBegin, i, myEnd, i, col="{line_color}") + lines(x,y,lwd=20,col=myColour[i]) + points(myEnd+90,i,cex=(mySchedule[i,'Persons']*mySchedule[i,'Durance'])**0.5,pch=19,col=rgb(110,110,110,50,maxColorValue=255),xpd=T) + if (x3-x1>1) lines(x_done,y,lwd=20,col=myColour_done) + if (mySchedule[i,'PAG'] > 0) + {{ + x4<-as.Date(mySchedule[i,'AG_from']) + x5<-as.Date(mySchedule[i,'AG_to']) + x_ag<-c(x4,x5) + rect(x4,i-0.75,x5,i+0.75,lwd=2) + }} + text(myBegin-2,i,what[i],adj=1,xpd=T,cex={main_size},col="{main_color}") + text(myEnd+25,i,paste(done[i],"%",sep=" "),adj=1,xpd=T,cex={percent_size},col="{percent_color}") + text(myEnd+35,i,paste(format(x1,format="%d/%m/%y"),"-",format(x2,format="%d/%m/%y"),sep=" "),adj=0,xpd=T,cex={date_size},col="{date_color}") + }} + else # Milestone + {{ + x3<-as.Date(mySchedule[i,'when']) + myHalf<-(myEnd-myBegin)/2 + if (x3-x10) + {{ + text(myBegin-2,i,Group[i],adj=1,xpd=T,cex={heading_font_size},col="{heading_font_color}") + }} + else if (nchar(as.character(what[i]))>0) + {{ + x1<-as.Date(mySchedule[i,'from']) + x2<-as.Date(mySchedule[i,'to']) + x3<-x1+((x2-x1)*mySchedule[i,'done']/100) + x<-c(x1,x2) + x_done<-c(x1,x3) + y<-c(i,i) + segments(myBegin, i, myEnd, i, col="{line_color}") + lines(x,y,lwd=20,col=myColour[i]) + points(myEnd+90,i,cex=(mySchedule[i,'Persons']*mySchedule[i,'Durance'])**0.5,pch=19,col=rgb(110,110,110,50,maxColorValue=255),xpd=T) + if (x3-x1>1) lines(x_done,y,lwd=20,col=myColour_done) + if (mySchedule[i,'PAG'] > 0) + {{ + x4<-as.Date(mySchedule[i,'AG_from']) + x5<-as.Date(mySchedule[i,'AG_to']) + x_ag<-c(x4,x5) + rect(x4,i-0.75,x5,i+0.75,lwd=2) + }} + text(myBegin-2,i,what[i],adj=1,xpd=T,cex={main_size},col="{main_color}") + text(myEnd+25,i,paste(done[i],"%",sep=" "),adj=1,xpd=T,cex={percent_size},col="{percent_color}") + text(myEnd+35,i,paste(format(x1,format="%d/%m/%y"),"-",format(x2,format="%d/%m/%y"),sep=" "),adj=0,xpd=T,cex={date_size},col="{date_color}") + }} + else # Milestone + {{ + x3<-as.Date(mySchedule[i,'when']) + myHalf<-(myEnd-myBegin)/2 + if (x3-x110, yes = 2, no = 1)), + minor.ticks = 1, major.tick.length = 0.5, + labels.niceFacing = FALSE) + }} + ) + circos.clear() + + mtext(line=-1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=-0.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + dev.off() + + png("{out_path}.png") + par(omi=c(0.25,0.25,0.25,0.25), mai=c(0,0,0,0),col="{scale_font_color}") + + circos.par(start.degree = 90, gap.degree = 4, track.margin = c(-0.1, 0.1), points.overflow.warning = FALSE) + par(mar = rep(0, 4)) + + chordDiagram(x = df0, grid.col = df1$col, transparency = 0.25, + order = df1$region, directional = 1, + direction.type = c("arrows", "diffHeight"), diffHeight = -0.04, + annotationTrack = "grid", annotationTrackHeight = c(0.05, 0.1), + link.arr.type = "big.arrow", link.sort = TRUE, link.largest.ontop = TRUE) + + circos.trackPlotRegion( + track.index = 1, + bg.border = NA, + panel.fun = function(x, y) {{ + xlim = get.cell.meta.data("xlim") + sector.index = get.cell.meta.data("sector.index") + reg1 = df1$reg1[df1$region == sector.index] + reg2 = df1$reg2[df1$region == sector.index] + + circos.text(x = mean(xlim), y = ifelse(test = nchar(reg2) == 0, yes = 5.2, no = 6.0), + labels = reg1, facing = "bending", cex = {font_size}, col="{font_color}") + circos.text(x = mean(xlim), y = 4.4, + labels = reg2, facing = "bending", cex = {font_size}, col="{font_color}") + circos.axis(h = "top", + major.at = seq(from = 0, to = xlim[2], by = ifelse(test = xlim[2]>10, yes = 2, no = 1)), + minor.ticks = 1, major.tick.length = 0.5, + labels.niceFacing = FALSE) + }} + ) + circos.clear() + + mtext(line=-1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=-0.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + dev.off() + + png("{char_out_path}",width=900,height=408) + par(omi=c(0.25,0.25,0.25,0.25), mai=c(0,0,0,0),col="{scale_font_color}") + + circos.par(start.degree = 90, gap.degree = 4, track.margin = c(-0.1, 0.1), points.overflow.warning = FALSE) + par(mar = rep(0, 4)) + + chordDiagram(x = df0, grid.col = df1$col, transparency = 0.25, + order = df1$region, directional = 1, + direction.type = c("arrows", "diffHeight"), diffHeight = -0.04, + annotationTrack = "grid", annotationTrackHeight = c(0.05, 0.1), + link.arr.type = "big.arrow", link.sort = TRUE, link.largest.ontop = TRUE) + + circos.trackPlotRegion( + track.index = 1, + bg.border = NA, + panel.fun = function(x, y) {{ + xlim = get.cell.meta.data("xlim") + sector.index = get.cell.meta.data("sector.index") + reg1 = df1$reg1[df1$region == sector.index] + reg2 = df1$reg2[df1$region == sector.index] + + circos.text(x = mean(xlim), y = ifelse(test = nchar(reg2) == 0, yes = 5.2, no = 6.0), + labels = reg1, facing = "bending", cex = {font_size}, col="{font_color}") + circos.text(x = mean(xlim), y = 4.4, + labels = reg2, facing = "bending", cex = {font_size}, col="{font_color}") + circos.axis(h = "top", + major.at = seq(from = 0, to = xlim[2], by = ifelse(test = xlim[2]>10, yes = 2, no = 1)), + minor.ticks = 1, major.tick.length = 0.5, + labels.niceFacing = FALSE) + }} + ) + circos.clear() + + mtext(line=-1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=-0.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + dev.off() + + svg("{out_path}.svg") + par(omi=c(0.25,0.25,0.25,0.25), mai=c(0,0,0,0),col="{scale_font_color}") + + circos.par(start.degree = 90, gap.degree = 4, track.margin = c(-0.1, 0.1), points.overflow.warning = FALSE) + par(mar = rep(0, 4)) + + chordDiagram(x = df0, grid.col = df1$col, transparency = 0.25, + order = df1$region, directional = 1, + direction.type = c("arrows", "diffHeight"), diffHeight = -0.04, + annotationTrack = "grid", annotationTrackHeight = c(0.05, 0.1), + link.arr.type = "big.arrow", link.sort = TRUE, link.largest.ontop = TRUE) + + circos.trackPlotRegion( + track.index = 1, + bg.border = NA, + panel.fun = function(x, y) {{ + xlim = get.cell.meta.data("xlim") + sector.index = get.cell.meta.data("sector.index") + reg1 = df1$reg1[df1$region == sector.index] + reg2 = df1$reg2[df1$region == sector.index] + + circos.text(x = mean(xlim), y = ifelse(test = nchar(reg2) == 0, yes = 5.2, no = 6.0), + labels = reg1, facing = "bending", cex = {font_size}, col="{font_color}") + circos.text(x = mean(xlim), y = 4.4, + labels = reg2, facing = "bending", cex = {font_size}, col="{font_color}") + circos.axis(h = "top", + major.at = seq(from = 0, to = xlim[2], by = ifelse(test = xlim[2]>10, yes = 2, no = 1)), + minor.ticks = 1, major.tick.length = 0.5, + labels.niceFacing = FALSE) + }} + ) + circos.clear() + + mtext(line=-1,"{title}",cex={title_font_size},adj=0,col="{title_font_color}") + mtext(line=-2.5,"{subtitle}",cex={title_font_size}*0.6,adj=0,font=3,col="{title_font_color}") + mtext(side=1,line=-0.5,"{caption}",cex={title_font_size}*0.6,adj=1,font=3,col="{title_font_color}") + dev.off() + """ + + keep_txt_to_file(code, f"{out_path}.R") + os.system(f"Rscript {out_path}.R") \ No newline at end of file diff --git a/chart/migrations/0001_initial.py b/chart/migrations/0001_initial.py new file mode 100644 index 0000000..84ace65 --- /dev/null +++ b/chart/migrations/0001_initial.py @@ -0,0 +1,28 @@ +# Generated by Django 3.1.7 on 2021-06-29 16:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='PlottingLibrary', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('name', models.CharField(blank=True, db_column='name', max_length=100)), + ('example_chart', models.CharField(blank=True, db_column='example_chart', max_length=200)), + ('example_file', models.CharField(blank=True, db_column='example_file', max_length=200)), + ('show_chart', models.CharField(blank=True, db_column='show_chart', max_length=200)), + ('sort', models.CharField(blank=True, db_column='sort', max_length=200)), + ('visiting_time', models.IntegerField(db_column='visiting_time')), + ('downlode_time', models.IntegerField(db_column='downlode_time')), + ('page', models.IntegerField(db_column='page')), + ], + ), + ] diff --git a/chart/migrations/0002_plottinglibrary_url.py b/chart/migrations/0002_plottinglibrary_url.py new file mode 100644 index 0000000..a521757 --- /dev/null +++ b/chart/migrations/0002_plottinglibrary_url.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.7 on 2021-06-30 04:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('chart', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='plottinglibrary', + name='url', + field=models.CharField(blank=True, db_column='url', max_length=200), + ), + ] diff --git a/chart/migrations/0003_plottinglibrary_example_file_img.py b/chart/migrations/0003_plottinglibrary_example_file_img.py new file mode 100644 index 0000000..c9d9881 --- /dev/null +++ b/chart/migrations/0003_plottinglibrary_example_file_img.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.7 on 2021-06-30 05:45 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('chart', '0002_plottinglibrary_url'), + ] + + operations = [ + migrations.AddField( + model_name='plottinglibrary', + name='example_file_img', + field=models.CharField(blank=True, db_column='example_file_img', max_length=200), + ), + ] diff --git a/chart/migrations/0004_auto_20210701_1422.py b/chart/migrations/0004_auto_20210701_1422.py new file mode 100644 index 0000000..3ac6efd --- /dev/null +++ b/chart/migrations/0004_auto_20210701_1422.py @@ -0,0 +1,53 @@ +# Generated by Django 3.1.7 on 2021-07-01 06:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('chart', '0003_plottinglibrary_example_file_img'), + ] + + operations = [ + migrations.AlterField( + model_name='plottinglibrary', + name='downlode_time', + field=models.IntegerField(blank=True, db_column='downlode_time', null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='example_chart', + field=models.CharField(blank=True, db_column='example_chart', max_length=200, null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='example_file_img', + field=models.CharField(blank=True, db_column='example_file_img', max_length=200, null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='page', + field=models.IntegerField(db_column='page', null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='show_chart', + field=models.CharField(blank=True, db_column='show_chart', max_length=200, null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='sort', + field=models.CharField(blank=True, db_column='sort', max_length=200, null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='url', + field=models.CharField(blank=True, db_column='url', max_length=200, null=True), + ), + migrations.AlterField( + model_name='plottinglibrary', + name='visiting_time', + field=models.IntegerField(blank=True, db_column='visiting_time', null=True), + ), + ] diff --git a/chart/migrations/0005_auto_20210710_1443.py b/chart/migrations/0005_auto_20210710_1443.py new file mode 100644 index 0000000..2051a4c --- /dev/null +++ b/chart/migrations/0005_auto_20210710_1443.py @@ -0,0 +1,54 @@ +# Generated by Django 3.1.7 on 2021-07-10 06:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('chart', '0004_auto_20210701_1422'), + ] + + operations = [ + migrations.RemoveField( + model_name='plottinglibrary', + name='example_chart', + ), + migrations.RemoveField( + model_name='plottinglibrary', + name='example_file_img', + ), + migrations.RemoveField( + model_name='plottinglibrary', + name='page', + ), + migrations.RemoveField( + model_name='plottinglibrary', + name='show_chart', + ), + migrations.AddField( + model_name='plottinglibrary', + name='Advanced_setting', + field=models.TextField(blank=True, db_column='Advanced_setting', null=True), + ), + migrations.AddField( + model_name='plottinglibrary', + name='Basic_settings', + field=models.TextField(blank=True, db_column='Basic_settings', null=True), + ), + migrations.AddField( + model_name='plottinglibrary', + name='index_img', + field=models.CharField(blank=True, db_column='index_img', max_length=200, null=True), + ), + migrations.AddField( + model_name='plottinglibrary', + name='js', + field=models.TextField(blank=True, db_column='js', null=True), + ), + migrations.AddField( + model_name='plottinglibrary', + name='show_img', + field=models.CharField(blank=True, db_column='show_img', max_length=200, null=True), + ), + ] diff --git a/chart/migrations/0006_auto_20210725_0952.py b/chart/migrations/0006_auto_20210725_0952.py new file mode 100644 index 0000000..3047cb0 --- /dev/null +++ b/chart/migrations/0006_auto_20210725_0952.py @@ -0,0 +1,30 @@ +# Generated by Django 3.1.7 on 2021-07-25 01:52 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('chart', '0005_auto_20210710_1443'), + ] + + operations = [ + migrations.RemoveField( + model_name='plottinglibrary', + name='Advanced_setting', + ), + migrations.RemoveField( + model_name='plottinglibrary', + name='Basic_settings', + ), + migrations.RemoveField( + model_name='plottinglibrary', + name='js', + ), + migrations.AddField( + model_name='plottinglibrary', + name='parameter', + field=models.JSONField(blank=True, db_column='parameter', null=True), + ), + ] diff --git a/chart/migrations/__init__.py b/chart/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/chart/models.py b/chart/models.py new file mode 100644 index 0000000..3b24cfb --- /dev/null +++ b/chart/models.py @@ -0,0 +1,22 @@ +from django.db import models + +class PlottingLibrary(models.Model): + id = models.IntegerField(primary_key=True) # 主键id + name = models.CharField(db_column='name', max_length=100, blank=True, null=False) # 图的名字 + + index_img = models.CharField(db_column='index_img', max_length=200, blank=True, null=True) # 主页展示的图片 + show_img = models.CharField(db_column='show_img', max_length=200, blank=True, null=True) # 图标主页展示的图片 + + example_file = models.CharField(db_column='example_file', max_length=200, blank=True, ) # 示例文件 + + sort = models.CharField(db_column='sort', max_length=200, blank=True, null=True) # 分类 + + visiting_time = models.IntegerField(db_column='visiting_time', blank=True, null=True) # 查看次数 + downlode_time = models.IntegerField(db_column='downlode_time', blank=True, null=True) # 使用次数/下载次数 + url = models.CharField(db_column='url', max_length=200, blank=True, null=True) # 链接地址 + + parameter = models.JSONField(db_column='parameter', blank=True, null=True) # 参数 + + + + diff --git a/chart/tests.py b/chart/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/chart/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/chart/tools.py b/chart/tools.py new file mode 100644 index 0000000..7f58d29 --- /dev/null +++ b/chart/tools.py @@ -0,0 +1,388 @@ +import os +import random +import time + +import pandas as pd + +from Simple_Drawing.settings import BASE_DIR + +url_ = "127.0.0.1:8000" + + +# 保存单个文件 +def keep_file(file_data, file_path, file_name=None, ui=0): + if file_name is not None: + file_path = os.path.join(file_path, file_name) + if ui: + with open(file_path, 'w') as f: + f.write(file_data) + else: + with open(file_path, 'wb+') as f: + for chunk1 in file_data.chunks(): + f.write(chunk1) + + +# 保存多个文件 +def keep_files(na, c): + cmd = ''' + cd %s/file_keep/%s + mkdir morefile + ''' % (BASE_DIR, c) + os.system(cmd) + + for file in na: + with open('%s' % os.path.join(f'{BASE_DIR}/file_keep/{c}/morefile/', file.name), 'wb') as f: + for i in file.chunks(): + f.write(i) + f.close() + + +# 返回唯一文件编号 +def generate_id(): + a = time.asctime(time.localtime(time.time())) + b = a[-15:] + str(random.randint(0, 1000)) + c = b.replace(" ", "") + c = c.replace(":", "0") + return c + + +# 给出文件路径 +def path_out(sort, name=generate_id(), show=None, out=None): + if show == 1: + return os.path.join(BASE_DIR, "static", "img_eg", "show_chart", name) + if out == 1: + return os.path.join(BASE_DIR, 'file_keep', sort, "img", name) + return os.path.join(BASE_DIR, 'file_keep', sort, "file", name), name + + +# 选出需要的列 +def pick_col(file_path, col, sep=","): + midwest = pd.read_csv(file_path, sep=sep) + col = set(midwest[col]) + return col + + +# 返回页数 +def return_pages(su: int) -> int: + if su % 12 != 0: + return (su // 12) + 1 + else: + return su // 12 + + +class ChartParameter(object): + def __init__(self, data): + if 'name' in data: + self.name = data['name'] + if 'html_name' in data: + self.html_name = data['html_name'] + if 'value' in data: + self.value = data['value'] + if 'astrict' in data: + self.astrict = data['astrict'] + if 'input_type' in data: + self.input_type = data['input_type'] + if 'Basics' in data: + self.Basics = data['Basics'] + if 'Senior' in data: + self.Senior = data['Senior'] + + self.colors = 0 + self.colors_dict = {} + + def html_out_Basics(self): + code = "" + for title in self.Basics: + code += f""" +
+
+ +
+
+""" + for d in self.Basics[title]: + parameter = ChartParameter(d) + if parameter.input_type == "text": + parameter.input_type = f""" + +""" + if parameter.input_type == "number": + parameter.input_type = f""" + +""" + if parameter.input_type == "date": + parameter.input_type = f""" + +""" + if parameter.input_type == "color_name": + self.colors_dict[f"color{self.colors}"] = "color_name" + parameter.input_type = f""" +
+
+
+""" + self.colors += 1 + if parameter.input_type == "rgb": + self.colors_dict[f"color{self.colors}"] = "rgb" + f""" +
+
+
+""" + self.colors += 1 + + if parameter.input_type == "palettes": + parameter.input_type = f""" + +""" + if parameter.input_type == "add": + parameter.input_type = f""" + +""" + if parameter.input_type == "position": + parameter.input_type = f""" + +""" + + code += f""" +
+
+ +
+ {parameter.input_type} +
+
+
+""" + return code + + def html_out_Senior(self): + code = "" + for title in self.Senior: + code += f""" +
+
+ +
+
+""" + for d in self.Senior[title]: + parameter = ChartParameter(d) + if parameter.input_type == "text": + parameter.input_type = f""" + +""" + if parameter.input_type == "number": + parameter.input_type = f""" + +""" + if parameter.input_type == "date": + parameter.input_type = f""" + +""" + if parameter.input_type == "color_name": + self.colors_dict[f"color{self.colors}"] = "color_name" + parameter.input_type = f""" +
+
+
+""" + self.colors += 1 + if parameter.input_type == "rgb": + self.colors_dict[f"color{self.colors}"] = "rgb" + f""" +
+
+
+""" + self.colors += 1 + if parameter.input_type == "palettes": + parameter.input_type = f""" + +""" + if parameter.input_type == "add": + parameter.input_type = f""" + +""" + if parameter.input_type == "position": + parameter.input_type = f""" + +""" + + code += f""" +
+
+ +
+ {parameter.input_type} +
+
+
+""" + return code + + def js_out(self): + code = "" + for title in self.Basics: + for d in self.Basics[title]: + parameter = ChartParameter(d) + code += f"""{parameter.name}: (document.getElementById("{parameter.name}").value), +""" + for title in self.Senior: + for d in self.Senior[title]: + parameter = ChartParameter(d) + code += f"""{parameter.name}: (document.getElementById("{parameter.name}").value), +""" + return code + + def color_js(self): + code = "" + for i in self.colors_dict.keys(): + if self.colors_dict[i] == "rgb": + fl = "rgb" + else: + fl = "hex" + code += """ + layui.use('colorpicker', function() +{ + var $ = layui.$ +, colorpicker = layui.colorpicker; + + colorpicker.render({ + elem: '%s' + , color: '#2ec770' //设置默认色 + , size: "xs" + , format: '%s' + , done: function (color) { + layer.tips('选择了:' + color, this.elem); + } + }); + }) + """ % (i, fl) + + return code + + +Treemap = { + "Basics": { + "title": [ + {"name": "title", "value": "title", "astrict": "", "input_type": "text", "html_name": "Title"}, + {"name": "title_font_size", "value": "12", "astrict": "", "input_type": "number", "html_name": "Title Size"} + ], + "data": [ + {"name": "group_by_column", "value": "group_by_column", "astrict": "", "input_type": "text", + "html_name": "Group By Column"}, + {"name": "data_column", "value": "data_column", "astrict": "", "input_type": "text", + "html_name": "Data Column"} + ] + }, + "Senior": { + } +} + + + diff --git a/chart/urls.py b/chart/urls.py new file mode 100644 index 0000000..59f4f5f --- /dev/null +++ b/chart/urls.py @@ -0,0 +1,13 @@ +from django.conf.urls import url +from django.urls import path + +from chart import views + +urlpatterns = [ + path('down', views.download), + url("(.*\.html$)", views.out_page), + url('up_file', views.up_file), + url('tools$', views.tools), + url('tools$', views.tools), + url('(.*)_run', views.chart_run), +] diff --git a/chart/views.py b/chart/views.py new file mode 100644 index 0000000..604f784 --- /dev/null +++ b/chart/views.py @@ -0,0 +1,150 @@ +from django.http import JsonResponse, StreamingHttpResponse, HttpResponse +from django.shortcuts import render +from django.utils.safestring import mark_safe + +from chart import charts +from chart.models import PlottingLibrary +from chart.tools import * + +url_ = 'http://127.0.0.1:8000' + + +# 处理页面返回问题 页面重定向 +def out_page(request, page): + + if page in ["index.html", 'about.html', 'tools.html']: + return render(request, f'./page/{page}', {"url": url_}) + + # 验证访问的网页是否存在 防止eval漏洞 + temp = page.replace("_", ' ') + print(temp.replace('.html', '')) + db = PlottingLibrary.objects.get(name=f"{temp.replace('.html', '')}") + print(temp) + if db is None: + return HttpResponse("no") + else: + a = ChartParameter(db.parameter) + + data = { + 'show_img': f"/{db.show_img}.png", + 'name': db.name.replace(' ', '_'), + 'title': db.name, + 'Basics': mark_safe(a.html_out_Basics()), + 'Senior': mark_safe(a.html_out_Senior()), + 'example_file': db.name.replace(" ", "_"), + 'js': mark_safe(a.js_out()), + 'url': url_, + "color":mark_safe(a.color_js()) + + } + + + + return render(request, f'./chart/Basic.html', data) + + +# 处理上传文件 返回颜色列表 +def up_file(request): + file = request.FILES.get("file") + col_name = request.POST.get("col_name", "color") + if col_name == "NO": + file_path, file_id = path_out("chart") + keep_file(file, file_path) + + data = {"flag": file_id} + return JsonResponse(data) + + file_path, file_id = path_out("chart") + + keep_file(file, file_path) + + col_list = pick_col(file_path, col_name) + + data = {"flag": file_id, 'data': [{"title": f"color_{i}", 'name': i, } for i in col_list][:8]} + return JsonResponse(data) + + +def download(request): + file_name = request.GET.get("name", None) + sort = request.GET.get("sort", "chart") + if sort == "tools": + file_id = request.GET.get("file_id") # 工作编号 + name_path = os.path.join(BASE_DIR, "file_keep", "tools", "file", f"{file_id}") + in_file = f"out.txt" + + elif file_name is None: + file_downlode_type = request.GET.get("file_downlode_type") # 文件类型 + file_id = request.GET.get("file_id") # 工作编号 + name_path = os.path.join(BASE_DIR, "file_keep", "chart", "img", f"{file_id}.{file_downlode_type}") + in_file = f"out.{file_downlode_type}" + else: + name_path = os.path.join( + BASE_DIR, "file_keep", "eg_file", "img", file_name) + in_file = file_name + print(name_path) + + response = StreamingHttpResponse(readFile(name_path)) + response['Content-Type'] = 'application/octet-stream' + + response['Content-Disposition'] = 'attachment;filename="{0}"'.format( + in_file) + return response + + +def readFile(filename, chunk_size=512): + with open(filename, 'rb') as f: + while True: + c = f.read(chunk_size) + if c: + yield c + else: + break + + +def chart_run(request, get_chart_sort): + chart_name = get_chart_sort.replace("_run", '') + file_id = request.GET.get("file_id") + k = request.GET.get("k") + data = {} + + temp = chart_name.replace("_", ' ') + db = PlottingLibrary.objects.get(name=temp) + + if db is None: + return HttpResponse("no") + + for i in request.GET.lists(): + + if i[0] not in ['_', 'file_id', 'k']: + data[i[0]] = i[1][0] + + file_path = path_out("chart", file_id) # 返回文件路径 + chart_out_path = path_out("chart", file_id, show=1) # 返回图片路径 + + out_path = path_out("chart", file_id, out=1) # 返回图片路径 + + # file_path 输入文件的路径 file + # chart 展示图片的路径 + # out_path 输出文件的路径 + + eval(f'charts.{chart_name}')(file_path[0], f"{chart_out_path}_{k}.png", out_path, **data) + + return JsonResponse({"img": f"/static/img_eg/show_chart/{file_id}_{k}.png"}) + + +def tools(request): + file = request.FILES.get("file", None) # 标题 + mg = request.POST.get('mg', None) + data = "" + if file is None and mg is None: + return JsonResponse({"http": "内容为空"}) + if file is None: + data = 反向互补序列(mg) + else: + p = file.read() + p.decode(encoding='utf-8') + data = 反向互补序列(p.decode(encoding='utf-8')) + + file_path, file_id = path_out("tools") + keep_file(data, file_path, ui=1) + return JsonResponse({"work_id": file_id}) \ No newline at end of file diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000..3abb927 Binary files /dev/null and b/db.sqlite3 differ diff --git a/file_keep/chart/file/8160590002021413 b/file_keep/chart/file/8160590002021413 new file mode 100644 index 0000000..d5a9708 --- /dev/null +++ b/file_keep/chart/file/8160590002021413 @@ -0,0 +1,50 @@ +area,poptotal,color +0.052,66090,AAR +0.014,10626,AAR +0.022,14991,AAR +0.017,30806,AAR +0.018,5836,AAR +0.05,35688,AAR +0.017,5322,AAR +0.027,16805,AAR +0.024,13437,AAR +0.042,34418,AAR +0.03,15921,AAR +0.028,14460,AAR +0.029,33944,AAR +0.03,51644,AAR +0.026,19464,AAR +0.02,10670,AAR +0.038,77932,AAR +0.023,16516,AAR +0.025,19464,AAR +0.036,19595,AAR +0.014,7440,AAR +0.028,31704,AAR +0.044,20893,AAR +0.03,14275,AAR +0.025,40319,LHR +0.052,38080,LHR +0.019,6909,LHR +0.033,15317,LHR +0.026,32337,LHR +0.025,8499,LHR +0.047,21373,LHR +0.009,5189,LHR +0.023,8096,LHR +0.051,51159,AAL +0.067,30787,AAL +0.036,61067,AAL +0.029,10609,AAL +0.033,37020,AAL +0.023,20539,AAL +0.035,21821,AAL +0.02,11347,AAL +0.018,39413,AAL +0.042,56393,AAL +0.022,15972,AAL +0.043,34392,AAL +0.062,39301,AAL +0.036,30798,AAL +0.034,35244,AAL +0.05,47679,AAL diff --git a/file_keep/chart/file/8180000562021492 b/file_keep/chart/file/8180000562021492 new file mode 100644 index 0000000..d5a9708 --- /dev/null +++ b/file_keep/chart/file/8180000562021492 @@ -0,0 +1,50 @@ +area,poptotal,color +0.052,66090,AAR +0.014,10626,AAR +0.022,14991,AAR +0.017,30806,AAR +0.018,5836,AAR +0.05,35688,AAR +0.017,5322,AAR +0.027,16805,AAR +0.024,13437,AAR +0.042,34418,AAR +0.03,15921,AAR +0.028,14460,AAR +0.029,33944,AAR +0.03,51644,AAR +0.026,19464,AAR +0.02,10670,AAR +0.038,77932,AAR +0.023,16516,AAR +0.025,19464,AAR +0.036,19595,AAR +0.014,7440,AAR +0.028,31704,AAR +0.044,20893,AAR +0.03,14275,AAR +0.025,40319,LHR +0.052,38080,LHR +0.019,6909,LHR +0.033,15317,LHR +0.026,32337,LHR +0.025,8499,LHR +0.047,21373,LHR +0.009,5189,LHR +0.023,8096,LHR +0.051,51159,AAL +0.067,30787,AAL +0.036,61067,AAL +0.029,10609,AAL +0.033,37020,AAL +0.023,20539,AAL +0.035,21821,AAL +0.02,11347,AAL +0.018,39413,AAL +0.042,56393,AAL +0.022,15972,AAL +0.043,34392,AAL +0.062,39301,AAL +0.036,30798,AAL +0.034,35244,AAL +0.05,47679,AAL diff --git a/file_keep/chart/img/8180000562021492.pdf b/file_keep/chart/img/8180000562021492.pdf new file mode 100644 index 0000000..63d1e1e Binary files /dev/null and b/file_keep/chart/img/8180000562021492.pdf differ diff --git a/file_keep/chart/img/8180000562021492.png b/file_keep/chart/img/8180000562021492.png new file mode 100644 index 0000000..ba3d6b6 Binary files /dev/null and b/file_keep/chart/img/8180000562021492.png differ diff --git a/file_keep/chart/img/8180000562021492.svg b/file_keep/chart/img/8180000562021492.svg new file mode 100644 index 0000000..2cf537c --- /dev/null +++ b/file_keep/chart/img/8180000562021492.svg @@ -0,0 +1,887 @@ + + + + + + + + + 2021-07-28T18:14:46.497663 + image/svg+xml + + + Matplotlib v3.3.3, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/file_keep/eg_file/img/Aggregated_Pyramids.xlsx b/file_keep/eg_file/img/Aggregated_Pyramids.xlsx new file mode 100644 index 0000000..ecef9a6 Binary files /dev/null and b/file_keep/eg_file/img/Aggregated_Pyramids.xlsx differ diff --git a/file_keep/eg_file/img/Areas_Under_a_Time_Series.csv b/file_keep/eg_file/img/Areas_Under_a_Time_Series.csv new file mode 100644 index 0000000..4ec4d19 --- /dev/null +++ b/file_keep/eg_file/img/Areas_Under_a_Time_Series.csv @@ -0,0 +1,212 @@ +x,y +1800,626.107278 +1801, +1802, +1803, +1804, +1805, +1806, +1807, +1808, +1809, +1810, +1811, +1812, +1813, +1814, +1815, +1816, +1817, +1818, +1819, +1820,604.5471951 +1821, +1822, +1823, +1824, +1825, +1826, +1827, +1828, +1829, +1830, +1831, +1832, +1833, +1834, +1835, +1836, +1837, +1838, +1839, +1840, +1841, +1842, +1843, +1844, +1845, +1846, +1847, +1848, +1849, +1850,909.5045605 +1851, +1852, +1853, +1854, +1855, +1856, +1857, +1858, +1859, +1860,1081.606657 +1861, +1862, +1863, +1864, +1865, +1866, +1867, +1868, +1869, +1870,1290.251216 +1871,1273.589477 +1872,1348.628999 +1873,1416.645365 +1874,1337.158305 +1875,1426.130208 +1876,1389.891391 +1877,1325.255339 +1878,1384.799386 +1879,1571.70563 +1880,1740.16481 +1881,1775.007002 +1882,1895.086854 +1883,1879.386801 +1884,1869.000509 +1885,1787.6506 +1886,1837.154181 +1887,1938.493009 +1888,1836.325829 +1889,1858.360517 +1890,1966.447073 +1891,2098.750731 +1892,2029.854084 +1893,2103.130288 +1894,2042.085645 +1895,2157.814481 +1896,2142.920725 +1897,2069.63284 +1898,2292.255647 +1899,2278.825851 +1900,2194.033028 +1901,2222.51422 +1902,2292.577715 +1903,2138.784592 +1904,2287.481785 +1905,2259.240285 +1906,2408.401395 +1907,2507.31159 +1908,2742.524742 +1909,2725.694695 +1910,3000.107609 +1911,2886.534444 +1912,2967.751512 +1913,2988.345051 +1914,2496.845956 +1915,2389.093043 +1916,2895.181627 +1917,2923.318082 +1918,2925.875624 +1919,2480.490215 +1920,2768.184623 +1921,2369.802825 +1922,2425.782725 +1923,2884.600983 +1924,3061.679684 +1925,3152.441654 +1926,2850.49023 +1927,2759.779069 +1928,3332.359364 +1929,3455.4293 +1930,2858.763916 +1931,2217.67227 +1932,1844.45583 +1933,2236.347121 +1934,2655.490299 +1935,2761.24334 +1936,2847.455403 +1937,3181.244397 +1938,3160.88871 +1939,3169.254805 +1940,3236.214804 +1941,3140.72371 +1942,3225.682877 +1943,3256.110283 +1944,3255.812295 +1945,3471.4887 +1946,3699.337778 +1947,3240.153689 +1948,3711.880097 +1949,3568.799039 +1950,3669.741798 +1951,3730.99784 +1952,3893.03185 +1953,4112.131182 +1954,3907.253806 +1955,3975.3891 +1956,3956.806051 +1957,4264.199787 +1958,4391.559576 +1959,4042.026695 +1960,4270.277231 +1961,4366.304858 +1962,4465.246923 +1963,4639.284082 +1964,4638.288359 +1965,4577.138538 +1966,4984.453509 +1967,5045.805815 +1968,5127.644877 +1969,5220.438323 +1970,5231.429389 +1971,5597.308919 +1972,5428.560219 +1973,5033.680306 +1974,4991.985694 +1975,4273.292655 +1976,4347.025561 +1977,4700.084469 +1978,5010.66067 +1979,5344.660999 +1980,5680.414863 +1981,5932.445916 +1982,5034.948175 +1983,4810.228903 +1984,5010.888421 +1985,5029.554167 +1986,5227.418854 +1987,5480.243784 +1988,5780.397394 +1989,6282.897442 +1990,6400.944474 +1991,6784.487812 +1992,7482.810871 +1993,7869.486706 +1994,8181.678288 +1995,8910.443755 +1996,9426.999805 +1997,9906.158183 +1998,10088.42831 +1999,9883.608018 +2000,10198.92856 +2001,10421.48726 +2002,10532.65408 +2003,10837.39235 +2004,11485.273 +2005,12079.8532 +2006,12648.00849 +2007,13176.05189 +2008,13479.08481 +2009,13210.08583 +2010,13883.18456 diff --git a/file_keep/eg_file/img/Balloon_Plot.csv b/file_keep/eg_file/img/Balloon_Plot.csv new file mode 100644 index 0000000..f68c48c --- /dev/null +++ b/file_keep/eg_file/img/Balloon_Plot.csv @@ -0,0 +1,33 @@ +Class,Sex,Age,Survived,Freq +1st,Male,Child,No,0 +2nd,Male,Child,No,0 +3rd,Male,Child,No,35 +Crew,Male,Child,No,0 +1st,Female,Child,No,0 +2nd,Female,Child,No,0 +3rd,Female,Child,No,17 +Crew,Female,Child,No,0 +1st,Male,Adult,No,118 +2nd,Male,Adult,No,154 +3rd,Male,Adult,No,387 +Crew,Male,Adult,No,670 +1st,Female,Adult,No,4 +2nd,Female,Adult,No,13 +3rd,Female,Adult,No,89 +Crew,Female,Adult,No,3 +1st,Male,Child,Yes,5 +2nd,Male,Child,Yes,11 +3rd,Male,Child,Yes,13 +Crew,Male,Child,Yes,0 +1st,Female,Child,Yes,1 +2nd,Female,Child,Yes,13 +3rd,Female,Child,Yes,14 +Crew,Female,Child,Yes,0 +1st,Male,Adult,Yes,57 +2nd,Male,Adult,Yes,14 +3rd,Male,Adult,Yes,75 +Crew,Male,Adult,Yes,192 +1st,Female,Adult,Yes,140 +2nd,Female,Adult,Yes,80 +3rd,Female,Adult,Yes,76 +Crew,Female,Adult,Yes,20 diff --git a/file_keep/eg_file/img/Bar_Chart_Simple.xlsx b/file_keep/eg_file/img/Bar_Chart_Simple.xlsx new file mode 100644 index 0000000..1278728 Binary files /dev/null and b/file_keep/eg_file/img/Bar_Chart_Simple.xlsx differ diff --git a/file_keep/eg_file/img/Bump_Chart.xlsx b/file_keep/eg_file/img/Bump_Chart.xlsx new file mode 100644 index 0000000..df79750 Binary files /dev/null and b/file_keep/eg_file/img/Bump_Chart.xlsx differ diff --git a/file_keep/eg_file/img/Column_Chart_for_Developments.csv b/file_keep/eg_file/img/Column_Chart_for_Developments.csv new file mode 100644 index 0000000..36c58e6 --- /dev/null +++ b/file_keep/eg_file/img/Column_Chart_for_Developments.csv @@ -0,0 +1,10 @@ +2002,25296 +2003,28365 +2004,32187 +2005,36835 +2006,39788 +2007,44282 +2008,51122 +2009,60420 +2010,58437 +2011,62484 diff --git a/file_keep/eg_file/img/Column_Chart_with_Percentages_for_Growth_Developments.csv b/file_keep/eg_file/img/Column_Chart_with_Percentages_for_Growth_Developments.csv new file mode 100644 index 0000000..36c58e6 --- /dev/null +++ b/file_keep/eg_file/img/Column_Chart_with_Percentages_for_Growth_Developments.csv @@ -0,0 +1,10 @@ +2002,25296 +2003,28365 +2004,32187 +2005,36835 +2006,39788 +2007,44282 +2008,51122 +2009,60420 +2010,58437 +2011,62484 diff --git a/file_keep/eg_file/img/Comparison_with_Bar_Chart_1.xlsx b/file_keep/eg_file/img/Comparison_with_Bar_Chart_1.xlsx new file mode 100644 index 0000000..1dbc883 Binary files /dev/null and b/file_keep/eg_file/img/Comparison_with_Bar_Chart_1.xlsx differ diff --git a/file_keep/eg_file/img/Comparison_with_Bar_Chart_2.xlsx b/file_keep/eg_file/img/Comparison_with_Bar_Chart_2.xlsx new file mode 100644 index 0000000..f399e63 Binary files /dev/null and b/file_keep/eg_file/img/Comparison_with_Bar_Chart_2.xlsx differ diff --git a/file_keep/eg_file/img/Comparison_with_Bar_Chart_3.xlsx b/file_keep/eg_file/img/Comparison_with_Bar_Chart_3.xlsx new file mode 100644 index 0000000..1dbc883 Binary files /dev/null and b/file_keep/eg_file/img/Comparison_with_Bar_Chart_3.xlsx differ diff --git a/file_keep/eg_file/img/Daily_Values_with_Labels.csv b/file_keep/eg_file/img/Daily_Values_with_Labels.csv new file mode 100644 index 0000000..1b0239a --- /dev/null +++ b/file_keep/eg_file/img/Daily_Values_with_Labels.csv @@ -0,0 +1,365 @@ +1 7681 7640.5 +2 7784 7637.6 +3 7727 7634.6 +4 7947 7631.9 +5 8091 7628.5 +6 7652 7625 +7 7778 7621.3 +8 7679 7616.2 +9 7568 7610.9 +10 7665 7604.9 +11 7462 7598.1 +12 7667 7590.2 +13 7639 7582.3 +14 7701 7572.8 +15 7444 7563.3 +16 7695 7552.8 +17 7564 7542.5 +18 7404 7532.2 +19 7380 7522.4 +20 7429 7513.2 +21 7363 7505 +22 7436 7497.3 +23 7541 7490.8 +24 7524 7485.7 +25 7289 7480.9 +26 7458 7477.3 +27 7452 7474.5 +28 7559 7472.2 +29 7348 7470.5 +30 7403 7469.3 +31 7387 7468.6 +32 7557 7468.4 +33 7446 7468.4 +34 7562 7469.2 +35 7454 7469.4 +36 7602 7470 +37 7621 7470.1 +38 7504 7470.6 +39 7407 7471.1 +40 7417 7471.4 +41 7551 7471.3 +42 7402 7470.9 +43 7550 7470.2 +44 7610 7469.4 +45 7502 7468.3 +46 7362 7467.1 +47 7567 7466.4 +48 7452 7465.6 +49 7428 7465.6 +50 7551 7466.1 +51 7358 7466.8 +52 7292 7467.9 +53 7503 7469.7 +54 7478 7471.6 +55 7453 7473.8 +56 7606 7476.2 +57 7396 7478.6 +58 7536 7481.4 +59 7300 7484.1 +60 7216 7487.5 +61 7416 7491.4 +62 7399 7496.1 +63 7524 7501.4 +64 7750 7507.5 +65 7680 7514.5 +66 7522 7522.1 +67 7542 7530.2 +68 7612 7539.4 +69 7594 7548.9 +70 7551 7559.3 +71 7479 7570.1 +72 7465 7581.2 +73 7453 7592.4 +74 7582 7604.3 +75 7600 7617 +76 7502 7629.7 +77 7740 7643.8 +78 7696 7657.6 +79 7611 7672.6 +80 7615 7687.7 +81 7751 7704.6 +82 7722 7722.3 +83 7656 7741.7 +84 7738 7761.6 +85 7825 7782 +86 7832 7803.5 +87 7770 7824.8 +88 7758 7845.9 +89 7690 7866.7 +90 7877 7887 +91 7943 7906.7 +92 7956 7925.5 +93 8043 7943.4 +94 7986 7960.9 +95 8066 7977.4 +96 8131 7993.4 +97 8076 8008.7 +98 8419 8023.7 +99 8226 8037.8 +100 8224 8051.5 +101 8085 8065.2 +102 8126 8078.2 +103 8103 8090.4 +104 7967 8102.5 +105 8289 8113.4 +106 7974 8124.3 +107 8154 8135 +108 8150 8145.3 +109 8110 8155.7 +110 8246 8165.8 +111 7993 8176.2 +112 8153 8187 +113 8192 8198.6 +114 8194 8210.9 +115 8143 8223.7 +116 8122 8236.8 +117 8162 8250.8 +118 8469 8265.2 +119 8191 8279.7 +120 8366 8294.6 +121 8211 8309.3 +122 8376 8324.3 +123 8182 8339 +124 8429 8353.6 +125 8447 8368.4 +126 8449 8383.3 +127 8650 8398.3 +128 8402 8413.8 +129 8465 8430 +130 8469 8446.4 +131 8560 8463.4 +132 8532 8481.5 +133 8534 8500.6 +134 8472 8520.3 +135 8427 8540.9 +136 8407 8562.1 +137 8464 8584.1 +138 8553 8606.6 +139 8565 8629.1 +140 8445 8652.4 +141 8668 8675.8 +142 8578 8699.8 +143 8641 8723.2 +144 8595 8747.6 +145 8558 8772.2 +146 9006 8796.2 +147 8864 8821.5 +148 9101 8846.3 +149 8897 8871.5 +150 9130 8897.2 +151 9058 8923.6 +152 9147 8950.1 +153 9063 8976.9 +154 9056 9004.3 +155 9080 9031.8 +156 9060 9059.6 +157 9066 9088.3 +158 9057 9117.6 +159 9186 9147.7 +160 9172 9178.8 +161 9166 9212.3 +162 8990 9247.5 +163 9159 9285.3 +164 9035 9325.5 +165 9214 9368.7 +166 9138 9413.5 +167 9257 9461.5 +168 9501 9511.2 +169 9449 9562.4 +170 9511 9614 +171 9419 9664.8 +172 9431 9714.5 +173 9643 9762.7 +174 9746 9807.7 +175 9699 9849.5 +176 9877 9887.6 +177 10228 9923 +178 11059 9954.5 +179 11392 9982 +180 10777 10005.9 +181 10379 10026 +182 10384 10041.2 +183 10446 10052.5 +184 10403 10059 +185 10975 10061.2 +186 10725 10058.8 +187 10527 10051.9 +188 10334 10040.2 +189 10000 10023.6 +190 9946 10002.4 +191 10079 9976.7 +192 10071 9947.3 +193 9805 9913.5 +194 9797 9876.7 +195 9728 9838.3 +196 9413 9799.2 +197 9605 9760.7 +198 9463 9723.5 +199 9447 9688.3 +200 9450 9654.6 +201 9489 9623.2 +202 9553 9593.4 +203 9624 9566.5 +204 9392 9542.4 +205 9410 9521 +206 9501 9502.6 +207 9391 9486.9 +208 9349 9473.7 +209 9323 9463.1 +210 9415 9454 +211 9626 9447.5 +212 9451 9441.8 +213 9337 9437.6 +214 9147 9434.3 +215 9521 9431.1 +216 9404 9428.1 +217 9329 9424.8 +218 9458 9420.7 +219 9448 9416.1 +220 9468 9410.9 +221 9409 9404.7 +222 9488 9398.3 +223 9416 9390.4 +224 9678 9382.8 +225 9317 9374.1 +226 9534 9364.9 +227 9586 9355.5 +228 9440 9346 +229 9525 9335.8 +230 9300 9326.1 +231 9428 9315.8 +232 9352 9305 +233 9279 9293.7 +234 9166 9281.9 +235 9107 9269.6 +236 9080 9256.3 +237 9102 9242.9 +238 9326 9228.7 +239 9020 9214 +240 9106 9199.1 +241 9254 9184 +242 9013 9168.6 +243 9100 9152.8 +244 9231 9137 +245 9178 9121.1 +246 9372 9105.3 +247 9327 9089.4 +248 9126 9073.8 +249 9094 9058.2 +250 8988 9042 +251 9035 9026 +252 9253 9009.4 +253 9059 8992 +254 8914 8974.4 +255 9033 8956 +256 8965 8937.3 +257 9129 8919 +258 9080 8900.4 +259 8778 8882.7 +260 8917 8865.6 +261 8788 8849.7 +262 8744 8835 +263 8635 8821.6 +264 8666 8809.4 +265 8771 8798.7 +266 8843 8788.8 +267 8737 8779.4 +268 8615 8771 +269 8666 8763.1 +270 8755 8755.8 +271 8630 8748.5 +272 8553 8742.1 +273 8725 8736 +274 8708 8730.1 +275 8857 8724.8 +276 8898 8720 +277 8776 8715.1 +278 8810 8711.1 +279 8885 8706.3 +280 8814 8701.4 +281 8869 8696 +282 8797 8690.3 +283 8706 8683.3 +284 8465 8675.3 +285 8702 8666.6 +286 8705 8656.6 +287 8813 8646.2 +288 8555 8634.5 +289 8674 8622.7 +290 8607 8609.6 +291 8536 8596.8 +292 8743 8583.7 +293 8699 8571 +294 8612 8558.8 +295 8538 8546.8 +296 8413 8535.1 +297 8396 8523.3 +298 8566 8512.4 +299 8517 8501.7 +300 8403 8491 +301 8448 8480.8 +302 8425 8470.5 +303 8431 8460.5 +304 8394 8449.9 +305 8382 8439.8 +306 8467 8429.6 +307 8453 8419.5 +308 8405 8409.2 +309 8614 8399.3 +310 8451 8389 +311 8419 8379.2 +312 8303 8368.9 +313 8210 8358.8 +314 8333 8348.3 +315 8364 8337.6 +316 8504 8326.6 +317 8362 8315.5 +318 8450 8304.3 +319 8171 8292.5 +320 8333 8281 +321 8356 8269.5 +322 8228 8257.9 +323 8171 8246.8 +324 8304 8235.6 +325 8051 8225.4 +326 8151 8214.9 +327 8240 8205 +328 8128 8195.5 +329 8175 8186.5 +330 8133 8177.4 +331 8237 8168.8 +332 8140 8160.1 +333 8018 8151.8 +334 8257 8143.4 +335 8223 8135.6 +336 8048 8127.8 +337 8114 8119.5 +338 8091 8111.2 +339 8221 8102.9 +340 8063 8094.1 +341 8163 8085.2 +342 8098 8076 +343 8224 8066.1 +344 8058 8055.7 +345 8070 8045.4 +346 8043 8033.8 +347 8087 8022.6 +348 8030 8011.3 +349 8153 8000.2 +350 8085 7989.9 +351 8046 7979.8 +352 7845 7970.6 +353 7833 7962.7 +354 7945 7955.2 +355 7776 7948.7 +356 7919 7943 +357 7887 7937.9 +358 7948 7933.1 +359 7896 7929.2 +360 7758 7925.4 +361 7726 7921.9 +362 7659 7918.8 +363 7901 7915.7 +364 7887 7912.7 +365 7827 7909.7 diff --git a/file_keep/eg_file/img/Diverging_Bars.csv b/file_keep/eg_file/img/Diverging_Bars.csv new file mode 100644 index 0000000..fef566c --- /dev/null +++ b/file_keep/eg_file/img/Diverging_Bars.csv @@ -0,0 +1,33 @@ +"mpg","cyl","disp","hp","drat","wt","qsec","vs","am","gear","carb","fast","cars","carname" +4.58257569495584,6,160,110,3.9,2.62,16.46,0,1,4,4,1,"Mazda RX4","Mazda RX4" +4.58257569495584,6,160,110,3.9,2.875,17.02,0,1,4,4,1,"Mazda RX4 Wag","Mazda RX4 Wag" +4.77493455452533,4,108,93,3.85,2.32,18.61,1,1,4,1,1,"Datsun 710","Datsun 710" +4.62601340248815,6,258,110,3.08,3.215,19.44,1,0,3,1,1,"Hornet 4 Drive","Hornet 4 Drive" +4.32434966208793,8,360,175,3.15,3.44,17.02,0,0,3,2,1,"Hornet Sportabout","Hornet Sportabout" +4.25440947723653,6,225,105,2.76,3.46,20.22,1,0,3,1,1,"Valiant","Valiant" +3.78153408023781,8,360,245,3.21,3.57,15.84,0,0,3,4,0,"Duster 360","Duster 360" +4.93963561409139,4,146.7,62,3.69,3.19,20,1,0,4,2,1,"Merc 240D","Merc 240D" +4.77493455452533,4,140.8,95,3.92,3.15,22.9,1,0,4,2,1,"Merc 230","Merc 230" +4.38178046004133,6,167.6,123,3.92,3.44,18.3,1,0,4,4,1,"Merc 280","Merc 280" +4.2190046219458,6,167.6,123,3.92,3.44,18.9,1,0,4,4,1,"Merc 280C","Merc 280C" +4.04969134626332,8,275.8,180,3.07,4.07,17.4,0,0,3,3,1,"Merc 450SE","Merc 450SE" +4.15932686861708,8,275.8,180,3.07,3.73,17.6,0,0,3,3,1,"Merc 450SL","Merc 450SL" +3.89871773792359,8,275.8,180,3.07,3.78,18,0,0,3,3,0,"Merc 450SLC","Merc 450SLC" +3.22490309931942,8,472,205,2.93,5.25,17.98,0,0,3,4,0,"Cadillac Fleetwood","Cadillac Fleetwood" +3.22490309931942,8,460,215,3,5.424,17.82,0,0,3,4,0,"Lincoln Continental","Lincoln Continental" +3.83405790253616,8,440,230,3.23,5.345,17.42,0,0,3,4,0,"Chrysler Imperial","Chrysler Imperial" +5.69209978830308,4,78.7,66,4.08,2.2,19.47,1,1,4,1,1,"Fiat 128","Fiat 128" +5.51361950083609,4,75.7,52,4.93,1.615,18.52,1,1,4,2,1,"Honda Civic","Honda Civic" +5.82237065120385,4,71.1,65,4.22,1.835,19.9,1,1,4,1,1,"Toyota Corolla","Toyota Corolla" +4.63680924774785,4,120.1,97,3.7,2.465,20.01,1,0,3,1,1,"Toyota Corona","Toyota Corona" +3.93700393700591,8,318,150,2.76,3.52,16.87,0,0,3,2,0,"Dodge Challenger","Dodge Challenger" +3.89871773792359,8,304,150,3.15,3.435,17.3,0,0,3,2,0,"AMC Javelin","AMC Javelin" +3.64691650576209,8,350,245,3.73,3.84,15.41,0,0,3,4,0,"Camaro Z28","Camaro Z28" +4.38178046004133,8,400,175,3.08,3.845,17.05,0,0,3,2,1,"Pontiac Firebird","Pontiac Firebird" +5.22494019104525,4,79,66,4.08,1.935,18.9,1,1,4,1,1,"Fiat X1-9","Fiat X1-9" +5.09901951359278,4,120.3,91,4.43,2.14,16.7,0,1,5,2,1,"Porsche 914-2","Porsche 914-2" +5.51361950083609,4,95.1,113,3.77,1.513,16.9,1,1,5,2,1,"Lotus Europa","Lotus Europa" +3.97492138287036,8,351,264,4.22,3.17,14.5,0,1,5,4,0,"Ford Pantera L","Ford Pantera L" +4.43846820423443,6,145,175,3.62,2.77,15.5,0,1,5,6,1,"Ferrari Dino","Ferrari Dino" +3.87298334620742,8,301,335,3.54,3.57,14.6,0,1,5,8,0,"Maserati Bora","Maserati Bora" +4.62601340248815,4,121,109,4.11,2.78,18.6,1,1,4,2,1,"Volvo 142E","Volvo 142E" diff --git a/file_keep/eg_file/img/Each_regression_line_in_its_own_column.csv b/file_keep/eg_file/img/Each_regression_line_in_its_own_column.csv new file mode 100644 index 0000000..4e29924 --- /dev/null +++ b/file_keep/eg_file/img/Each_regression_line_in_its_own_column.csv @@ -0,0 +1,235 @@ +"manufacturer","model","displ","year","cyl","trans","drv","cty","hwy","fl","class" +"audi","a4",1.8,1999,4,"auto(l5)","f",18,29,"p","compact" +"audi","a4",1.8,1999,4,"manual(m5)","f",21,29,"p","compact" +"audi","a4",2,2008,4,"manual(m6)","f",20,31,"p","compact" +"audi","a4",2,2008,4,"auto(av)","f",21,30,"p","compact" +"audi","a4",2.8,1999,6,"auto(l5)","f",16,26,"p","compact" +"audi","a4",2.8,1999,6,"manual(m5)","f",18,26,"p","compact" +"audi","a4",3.1,2008,6,"auto(av)","f",18,27,"p","compact" +"audi","a4 quattro",1.8,1999,4,"manual(m5)","4",18,26,"p","compact" +"audi","a4 quattro",1.8,1999,4,"auto(l5)","4",16,25,"p","compact" +"audi","a4 quattro",2,2008,4,"manual(m6)","4",20,28,"p","compact" +"audi","a4 quattro",2,2008,4,"auto(s6)","4",19,27,"p","compact" +"audi","a4 quattro",2.8,1999,6,"auto(l5)","4",15,25,"p","compact" +"audi","a4 quattro",2.8,1999,6,"manual(m5)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"manual(m6)","4",15,25,"p","compact" +"audi","a6 quattro",2.8,1999,6,"auto(l5)","4",15,24,"p","midsize" +"audi","a6 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","midsize" +"audi","a6 quattro",4.2,2008,8,"auto(s6)","4",16,23,"p","midsize" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",11,15,"e","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.7,1999,8,"auto(l4)","r",13,17,"r","suv" +"chevrolet","c1500 suburban 2wd",6,2008,8,"auto(l4)","r",12,17,"r","suv" +"chevrolet","corvette",5.7,1999,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",5.7,1999,8,"auto(l4)","r",15,23,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"auto(s6)","r",15,25,"p","2seater" +"chevrolet","corvette",7,2008,8,"manual(m6)","r",15,24,"p","2seater" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",14,19,"r","suv" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",11,14,"e","suv" +"chevrolet","k1500 tahoe 4wd",5.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"chevrolet","k1500 tahoe 4wd",6.5,1999,8,"auto(l4)","4",14,17,"d","suv" +"chevrolet","malibu",2.4,1999,4,"auto(l4)","f",19,27,"r","midsize" +"chevrolet","malibu",2.4,2008,4,"auto(l4)","f",22,30,"r","midsize" +"chevrolet","malibu",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"chevrolet","malibu",3.5,2008,6,"auto(l4)","f",18,29,"r","midsize" +"chevrolet","malibu",3.6,2008,6,"auto(s6)","f",17,26,"r","midsize" +"dodge","caravan 2wd",2.4,1999,4,"auto(l3)","f",18,24,"r","minivan" +"dodge","caravan 2wd",3,1999,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",11,17,"e","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,22,"r","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,21,"r","minivan" +"dodge","caravan 2wd",3.8,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","caravan 2wd",4,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","dakota pickup 4wd",3.7,2008,6,"manual(m6)","4",15,19,"r","pickup" +"dodge","dakota pickup 4wd",3.7,2008,6,"auto(l4)","4",14,18,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"manual(m5)","4",14,17,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"manual(m5)","4",11,17,"r","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","durango 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",5.2,1999,8,"auto(l4)","4",11,16,"r","suv" +"dodge","durango 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"dodge","durango 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","suv" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"manual(m5)","4",11,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","expedition 2wd",4.6,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,1999,6,"manual(m5)","4",15,19,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"ford","explorer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"ford","explorer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"ford","f150 pickup 4wd",4.2,1999,6,"auto(l4)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.2,1999,6,"manual(m5)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"manual(m5)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"auto(l4)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","f150 pickup 4wd",5.4,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","f150 pickup 4wd",5.4,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","mustang",3.8,1999,6,"manual(m5)","r",18,26,"r","subcompact" +"ford","mustang",3.8,1999,6,"auto(l4)","r",18,25,"r","subcompact" +"ford","mustang",4,2008,6,"manual(m5)","r",17,26,"r","subcompact" +"ford","mustang",4,2008,6,"auto(l5)","r",16,24,"r","subcompact" +"ford","mustang",4.6,1999,8,"auto(l4)","r",15,21,"r","subcompact" +"ford","mustang",4.6,1999,8,"manual(m5)","r",15,22,"r","subcompact" +"ford","mustang",4.6,2008,8,"manual(m5)","r",15,23,"r","subcompact" +"ford","mustang",4.6,2008,8,"auto(l5)","r",15,22,"r","subcompact" +"ford","mustang",5.4,2008,8,"manual(m6)","r",14,20,"p","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",28,33,"r","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",25,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",23,29,"p","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.8,2008,4,"manual(m5)","f",26,34,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",25,36,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",24,36,"c","subcompact" +"honda","civic",2,2008,4,"manual(m6)","f",21,29,"p","subcompact" +"hyundai","sonata",2.4,1999,4,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.4,1999,4,"manual(m5)","f",18,27,"r","midsize" +"hyundai","sonata",2.4,2008,4,"auto(l4)","f",21,30,"r","midsize" +"hyundai","sonata",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"hyundai","sonata",2.5,1999,6,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.5,1999,6,"manual(m5)","f",18,26,"r","midsize" +"hyundai","sonata",3.3,2008,6,"auto(l5)","f",19,28,"r","midsize" +"hyundai","tiburon",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"hyundai","tiburon",2,1999,4,"manual(m5)","f",19,29,"r","subcompact" +"hyundai","tiburon",2,2008,4,"manual(m5)","f",20,28,"r","subcompact" +"hyundai","tiburon",2,2008,4,"auto(l4)","f",20,27,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"auto(l4)","f",17,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m6)","f",16,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m5)","f",17,24,"r","subcompact" +"jeep","grand cherokee 4wd",3,2008,6,"auto(l5)","4",17,22,"d","suv" +"jeep","grand cherokee 4wd",3.7,2008,6,"auto(l5)","4",15,19,"r","suv" +"jeep","grand cherokee 4wd",4,1999,6,"auto(l4)","4",15,20,"r","suv" +"jeep","grand cherokee 4wd",4.7,1999,8,"auto(l4)","4",14,17,"r","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","suv" +"jeep","grand cherokee 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"jeep","grand cherokee 4wd",6.1,2008,8,"auto(l5)","4",11,14,"p","suv" +"land rover","range rover",4,1999,8,"auto(l4)","4",11,15,"p","suv" +"land rover","range rover",4.2,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.4,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.6,1999,8,"auto(l4)","4",11,15,"p","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,16,"p","suv" +"lincoln","navigator 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"mercury","mountaineer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"mercury","mountaineer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"nissan","altima",2.4,1999,4,"manual(m5)","f",21,29,"r","compact" +"nissan","altima",2.4,1999,4,"auto(l4)","f",19,27,"r","compact" +"nissan","altima",2.5,2008,4,"auto(av)","f",23,31,"r","midsize" +"nissan","altima",2.5,2008,4,"manual(m6)","f",23,32,"r","midsize" +"nissan","altima",3.5,2008,6,"manual(m6)","f",19,27,"p","midsize" +"nissan","altima",3.5,2008,6,"auto(av)","f",19,26,"p","midsize" +"nissan","maxima",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"nissan","maxima",3,1999,6,"manual(m5)","f",19,25,"r","midsize" +"nissan","maxima",3.5,2008,6,"auto(av)","f",19,25,"p","midsize" +"nissan","pathfinder 4wd",3.3,1999,6,"auto(l4)","4",14,17,"r","suv" +"nissan","pathfinder 4wd",3.3,1999,6,"manual(m5)","4",15,17,"r","suv" +"nissan","pathfinder 4wd",4,2008,6,"auto(l5)","4",14,20,"p","suv" +"nissan","pathfinder 4wd",5.6,2008,8,"auto(s5)","4",12,18,"p","suv" +"pontiac","grand prix",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",16,26,"p","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",17,27,"r","midsize" +"pontiac","grand prix",3.8,2008,6,"auto(l4)","f",18,28,"r","midsize" +"pontiac","grand prix",5.3,2008,8,"auto(s4)","f",16,25,"p","midsize" +"subaru","forester awd",2.5,1999,4,"manual(m5)","4",18,25,"r","suv" +"subaru","forester awd",2.5,1999,4,"auto(l4)","4",18,24,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",20,27,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",19,25,"p","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",20,26,"r","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",18,23,"p","suv" +"subaru","impreza awd",2.2,1999,4,"auto(l4)","4",21,26,"r","subcompact" +"subaru","impreza awd",2.2,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"auto(l4)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,27,"r","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",19,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",20,27,"r","compact" +"toyota","4runner 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","suv" +"toyota","4runner 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","suv" +"toyota","4runner 4wd",4,2008,6,"auto(l5)","4",16,20,"r","suv" +"toyota","4runner 4wd",4.7,2008,8,"auto(l5)","4",14,17,"r","suv" +"toyota","camry",2.2,1999,4,"manual(m5)","f",21,29,"r","midsize" +"toyota","camry",2.2,1999,4,"auto(l4)","f",21,27,"r","midsize" +"toyota","camry",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"toyota","camry",2.4,2008,4,"auto(l5)","f",21,31,"r","midsize" +"toyota","camry",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"toyota","camry",3,1999,6,"manual(m5)","f",18,26,"r","midsize" +"toyota","camry",3.5,2008,6,"auto(s6)","f",19,28,"r","midsize" +"toyota","camry solara",2.2,1999,4,"auto(l4)","f",21,27,"r","compact" +"toyota","camry solara",2.2,1999,4,"manual(m5)","f",21,29,"r","compact" +"toyota","camry solara",2.4,2008,4,"manual(m5)","f",21,31,"r","compact" +"toyota","camry solara",2.4,2008,4,"auto(s5)","f",22,31,"r","compact" +"toyota","camry solara",3,1999,6,"auto(l4)","f",18,26,"r","compact" +"toyota","camry solara",3,1999,6,"manual(m5)","f",18,26,"r","compact" +"toyota","camry solara",3.3,2008,6,"auto(s5)","f",18,27,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l3)","f",24,30,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l4)","f",24,33,"r","compact" +"toyota","corolla",1.8,1999,4,"manual(m5)","f",26,35,"r","compact" +"toyota","corolla",1.8,2008,4,"manual(m5)","f",28,37,"r","compact" +"toyota","corolla",1.8,2008,4,"auto(l4)","f",26,35,"r","compact" +"toyota","land cruiser wagon 4wd",4.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"toyota","land cruiser wagon 4wd",5.7,2008,8,"auto(s6)","4",13,18,"r","suv" +"toyota","toyota tacoma 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,2008,4,"manual(m5)","4",17,22,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"manual(m6)","4",15,18,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"auto(l5)","4",16,20,"r","pickup" +"volkswagen","gti",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","gti",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","gti",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","gti",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","gti",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","jetta",1.9,1999,4,"manual(m5)","f",33,44,"d","compact" +"volkswagen","jetta",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","jetta",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","jetta",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","jetta",2.5,2008,5,"auto(s6)","f",21,29,"r","compact" +"volkswagen","jetta",2.5,2008,5,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2.8,1999,6,"auto(l4)","f",16,23,"r","compact" +"volkswagen","jetta",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","new beetle",1.9,1999,4,"manual(m5)","f",35,44,"d","subcompact" +"volkswagen","new beetle",1.9,1999,4,"auto(l4)","f",29,41,"d","subcompact" +"volkswagen","new beetle",2,1999,4,"manual(m5)","f",21,29,"r","subcompact" +"volkswagen","new beetle",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"manual(m5)","f",20,28,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"auto(s6)","f",20,29,"r","subcompact" +"volkswagen","passat",1.8,1999,4,"manual(m5)","f",21,29,"p","midsize" +"volkswagen","passat",1.8,1999,4,"auto(l5)","f",18,29,"p","midsize" +"volkswagen","passat",2,2008,4,"auto(s6)","f",19,28,"p","midsize" +"volkswagen","passat",2,2008,4,"manual(m6)","f",21,29,"p","midsize" +"volkswagen","passat",2.8,1999,6,"auto(l5)","f",16,26,"p","midsize" +"volkswagen","passat",2.8,1999,6,"manual(m5)","f",18,26,"p","midsize" +"volkswagen","passat",3.6,2008,6,"auto(s6)","f",17,26,"p","midsize" diff --git a/file_keep/eg_file/img/Heat_Map.xlsx b/file_keep/eg_file/img/Heat_Map.xlsx new file mode 100644 index 0000000..cc751bf Binary files /dev/null and b/file_keep/eg_file/img/Heat_Map.xlsx differ diff --git a/file_keep/eg_file/img/Jittering_with_stripplot.csv b/file_keep/eg_file/img/Jittering_with_stripplot.csv new file mode 100644 index 0000000..4e29924 --- /dev/null +++ b/file_keep/eg_file/img/Jittering_with_stripplot.csv @@ -0,0 +1,235 @@ +"manufacturer","model","displ","year","cyl","trans","drv","cty","hwy","fl","class" +"audi","a4",1.8,1999,4,"auto(l5)","f",18,29,"p","compact" +"audi","a4",1.8,1999,4,"manual(m5)","f",21,29,"p","compact" +"audi","a4",2,2008,4,"manual(m6)","f",20,31,"p","compact" +"audi","a4",2,2008,4,"auto(av)","f",21,30,"p","compact" +"audi","a4",2.8,1999,6,"auto(l5)","f",16,26,"p","compact" +"audi","a4",2.8,1999,6,"manual(m5)","f",18,26,"p","compact" +"audi","a4",3.1,2008,6,"auto(av)","f",18,27,"p","compact" +"audi","a4 quattro",1.8,1999,4,"manual(m5)","4",18,26,"p","compact" +"audi","a4 quattro",1.8,1999,4,"auto(l5)","4",16,25,"p","compact" +"audi","a4 quattro",2,2008,4,"manual(m6)","4",20,28,"p","compact" +"audi","a4 quattro",2,2008,4,"auto(s6)","4",19,27,"p","compact" +"audi","a4 quattro",2.8,1999,6,"auto(l5)","4",15,25,"p","compact" +"audi","a4 quattro",2.8,1999,6,"manual(m5)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"manual(m6)","4",15,25,"p","compact" +"audi","a6 quattro",2.8,1999,6,"auto(l5)","4",15,24,"p","midsize" +"audi","a6 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","midsize" +"audi","a6 quattro",4.2,2008,8,"auto(s6)","4",16,23,"p","midsize" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",11,15,"e","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.7,1999,8,"auto(l4)","r",13,17,"r","suv" +"chevrolet","c1500 suburban 2wd",6,2008,8,"auto(l4)","r",12,17,"r","suv" +"chevrolet","corvette",5.7,1999,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",5.7,1999,8,"auto(l4)","r",15,23,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"auto(s6)","r",15,25,"p","2seater" +"chevrolet","corvette",7,2008,8,"manual(m6)","r",15,24,"p","2seater" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",14,19,"r","suv" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",11,14,"e","suv" +"chevrolet","k1500 tahoe 4wd",5.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"chevrolet","k1500 tahoe 4wd",6.5,1999,8,"auto(l4)","4",14,17,"d","suv" +"chevrolet","malibu",2.4,1999,4,"auto(l4)","f",19,27,"r","midsize" +"chevrolet","malibu",2.4,2008,4,"auto(l4)","f",22,30,"r","midsize" +"chevrolet","malibu",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"chevrolet","malibu",3.5,2008,6,"auto(l4)","f",18,29,"r","midsize" +"chevrolet","malibu",3.6,2008,6,"auto(s6)","f",17,26,"r","midsize" +"dodge","caravan 2wd",2.4,1999,4,"auto(l3)","f",18,24,"r","minivan" +"dodge","caravan 2wd",3,1999,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",11,17,"e","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,22,"r","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,21,"r","minivan" +"dodge","caravan 2wd",3.8,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","caravan 2wd",4,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","dakota pickup 4wd",3.7,2008,6,"manual(m6)","4",15,19,"r","pickup" +"dodge","dakota pickup 4wd",3.7,2008,6,"auto(l4)","4",14,18,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"manual(m5)","4",14,17,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"manual(m5)","4",11,17,"r","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","durango 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",5.2,1999,8,"auto(l4)","4",11,16,"r","suv" +"dodge","durango 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"dodge","durango 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","suv" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"manual(m5)","4",11,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","expedition 2wd",4.6,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,1999,6,"manual(m5)","4",15,19,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"ford","explorer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"ford","explorer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"ford","f150 pickup 4wd",4.2,1999,6,"auto(l4)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.2,1999,6,"manual(m5)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"manual(m5)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"auto(l4)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","f150 pickup 4wd",5.4,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","f150 pickup 4wd",5.4,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","mustang",3.8,1999,6,"manual(m5)","r",18,26,"r","subcompact" +"ford","mustang",3.8,1999,6,"auto(l4)","r",18,25,"r","subcompact" +"ford","mustang",4,2008,6,"manual(m5)","r",17,26,"r","subcompact" +"ford","mustang",4,2008,6,"auto(l5)","r",16,24,"r","subcompact" +"ford","mustang",4.6,1999,8,"auto(l4)","r",15,21,"r","subcompact" +"ford","mustang",4.6,1999,8,"manual(m5)","r",15,22,"r","subcompact" +"ford","mustang",4.6,2008,8,"manual(m5)","r",15,23,"r","subcompact" +"ford","mustang",4.6,2008,8,"auto(l5)","r",15,22,"r","subcompact" +"ford","mustang",5.4,2008,8,"manual(m6)","r",14,20,"p","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",28,33,"r","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",25,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",23,29,"p","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.8,2008,4,"manual(m5)","f",26,34,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",25,36,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",24,36,"c","subcompact" +"honda","civic",2,2008,4,"manual(m6)","f",21,29,"p","subcompact" +"hyundai","sonata",2.4,1999,4,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.4,1999,4,"manual(m5)","f",18,27,"r","midsize" +"hyundai","sonata",2.4,2008,4,"auto(l4)","f",21,30,"r","midsize" +"hyundai","sonata",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"hyundai","sonata",2.5,1999,6,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.5,1999,6,"manual(m5)","f",18,26,"r","midsize" +"hyundai","sonata",3.3,2008,6,"auto(l5)","f",19,28,"r","midsize" +"hyundai","tiburon",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"hyundai","tiburon",2,1999,4,"manual(m5)","f",19,29,"r","subcompact" +"hyundai","tiburon",2,2008,4,"manual(m5)","f",20,28,"r","subcompact" +"hyundai","tiburon",2,2008,4,"auto(l4)","f",20,27,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"auto(l4)","f",17,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m6)","f",16,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m5)","f",17,24,"r","subcompact" +"jeep","grand cherokee 4wd",3,2008,6,"auto(l5)","4",17,22,"d","suv" +"jeep","grand cherokee 4wd",3.7,2008,6,"auto(l5)","4",15,19,"r","suv" +"jeep","grand cherokee 4wd",4,1999,6,"auto(l4)","4",15,20,"r","suv" +"jeep","grand cherokee 4wd",4.7,1999,8,"auto(l4)","4",14,17,"r","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","suv" +"jeep","grand cherokee 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"jeep","grand cherokee 4wd",6.1,2008,8,"auto(l5)","4",11,14,"p","suv" +"land rover","range rover",4,1999,8,"auto(l4)","4",11,15,"p","suv" +"land rover","range rover",4.2,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.4,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.6,1999,8,"auto(l4)","4",11,15,"p","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,16,"p","suv" +"lincoln","navigator 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"mercury","mountaineer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"mercury","mountaineer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"nissan","altima",2.4,1999,4,"manual(m5)","f",21,29,"r","compact" +"nissan","altima",2.4,1999,4,"auto(l4)","f",19,27,"r","compact" +"nissan","altima",2.5,2008,4,"auto(av)","f",23,31,"r","midsize" +"nissan","altima",2.5,2008,4,"manual(m6)","f",23,32,"r","midsize" +"nissan","altima",3.5,2008,6,"manual(m6)","f",19,27,"p","midsize" +"nissan","altima",3.5,2008,6,"auto(av)","f",19,26,"p","midsize" +"nissan","maxima",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"nissan","maxima",3,1999,6,"manual(m5)","f",19,25,"r","midsize" +"nissan","maxima",3.5,2008,6,"auto(av)","f",19,25,"p","midsize" +"nissan","pathfinder 4wd",3.3,1999,6,"auto(l4)","4",14,17,"r","suv" +"nissan","pathfinder 4wd",3.3,1999,6,"manual(m5)","4",15,17,"r","suv" +"nissan","pathfinder 4wd",4,2008,6,"auto(l5)","4",14,20,"p","suv" +"nissan","pathfinder 4wd",5.6,2008,8,"auto(s5)","4",12,18,"p","suv" +"pontiac","grand prix",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",16,26,"p","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",17,27,"r","midsize" +"pontiac","grand prix",3.8,2008,6,"auto(l4)","f",18,28,"r","midsize" +"pontiac","grand prix",5.3,2008,8,"auto(s4)","f",16,25,"p","midsize" +"subaru","forester awd",2.5,1999,4,"manual(m5)","4",18,25,"r","suv" +"subaru","forester awd",2.5,1999,4,"auto(l4)","4",18,24,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",20,27,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",19,25,"p","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",20,26,"r","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",18,23,"p","suv" +"subaru","impreza awd",2.2,1999,4,"auto(l4)","4",21,26,"r","subcompact" +"subaru","impreza awd",2.2,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"auto(l4)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,27,"r","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",19,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",20,27,"r","compact" +"toyota","4runner 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","suv" +"toyota","4runner 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","suv" +"toyota","4runner 4wd",4,2008,6,"auto(l5)","4",16,20,"r","suv" +"toyota","4runner 4wd",4.7,2008,8,"auto(l5)","4",14,17,"r","suv" +"toyota","camry",2.2,1999,4,"manual(m5)","f",21,29,"r","midsize" +"toyota","camry",2.2,1999,4,"auto(l4)","f",21,27,"r","midsize" +"toyota","camry",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"toyota","camry",2.4,2008,4,"auto(l5)","f",21,31,"r","midsize" +"toyota","camry",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"toyota","camry",3,1999,6,"manual(m5)","f",18,26,"r","midsize" +"toyota","camry",3.5,2008,6,"auto(s6)","f",19,28,"r","midsize" +"toyota","camry solara",2.2,1999,4,"auto(l4)","f",21,27,"r","compact" +"toyota","camry solara",2.2,1999,4,"manual(m5)","f",21,29,"r","compact" +"toyota","camry solara",2.4,2008,4,"manual(m5)","f",21,31,"r","compact" +"toyota","camry solara",2.4,2008,4,"auto(s5)","f",22,31,"r","compact" +"toyota","camry solara",3,1999,6,"auto(l4)","f",18,26,"r","compact" +"toyota","camry solara",3,1999,6,"manual(m5)","f",18,26,"r","compact" +"toyota","camry solara",3.3,2008,6,"auto(s5)","f",18,27,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l3)","f",24,30,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l4)","f",24,33,"r","compact" +"toyota","corolla",1.8,1999,4,"manual(m5)","f",26,35,"r","compact" +"toyota","corolla",1.8,2008,4,"manual(m5)","f",28,37,"r","compact" +"toyota","corolla",1.8,2008,4,"auto(l4)","f",26,35,"r","compact" +"toyota","land cruiser wagon 4wd",4.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"toyota","land cruiser wagon 4wd",5.7,2008,8,"auto(s6)","4",13,18,"r","suv" +"toyota","toyota tacoma 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,2008,4,"manual(m5)","4",17,22,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"manual(m6)","4",15,18,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"auto(l5)","4",16,20,"r","pickup" +"volkswagen","gti",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","gti",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","gti",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","gti",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","gti",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","jetta",1.9,1999,4,"manual(m5)","f",33,44,"d","compact" +"volkswagen","jetta",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","jetta",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","jetta",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","jetta",2.5,2008,5,"auto(s6)","f",21,29,"r","compact" +"volkswagen","jetta",2.5,2008,5,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2.8,1999,6,"auto(l4)","f",16,23,"r","compact" +"volkswagen","jetta",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","new beetle",1.9,1999,4,"manual(m5)","f",35,44,"d","subcompact" +"volkswagen","new beetle",1.9,1999,4,"auto(l4)","f",29,41,"d","subcompact" +"volkswagen","new beetle",2,1999,4,"manual(m5)","f",21,29,"r","subcompact" +"volkswagen","new beetle",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"manual(m5)","f",20,28,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"auto(s6)","f",20,29,"r","subcompact" +"volkswagen","passat",1.8,1999,4,"manual(m5)","f",21,29,"p","midsize" +"volkswagen","passat",1.8,1999,4,"auto(l5)","f",18,29,"p","midsize" +"volkswagen","passat",2,2008,4,"auto(s6)","f",19,28,"p","midsize" +"volkswagen","passat",2,2008,4,"manual(m6)","f",21,29,"p","midsize" +"volkswagen","passat",2.8,1999,6,"auto(l5)","f",16,26,"p","midsize" +"volkswagen","passat",2.8,1999,6,"manual(m5)","f",18,26,"p","midsize" +"volkswagen","passat",3.6,2008,6,"auto(s6)","f",17,26,"p","midsize" diff --git a/file_keep/eg_file/img/Monthly_Values_with_Monthly_Labels_Layout.xlsx b/file_keep/eg_file/img/Monthly_Values_with_Monthly_Labels_Layout.xlsx new file mode 100644 index 0000000..b2ab391 Binary files /dev/null and b/file_keep/eg_file/img/Monthly_Values_with_Monthly_Labels_Layout.xlsx differ diff --git a/file_keep/eg_file/img/Quarterly_Values_as_Columns.xlsx b/file_keep/eg_file/img/Quarterly_Values_as_Columns.xlsx new file mode 100644 index 0000000..e797f94 Binary files /dev/null and b/file_keep/eg_file/img/Quarterly_Values_as_Columns.xlsx differ diff --git a/file_keep/eg_file/img/Quarterly_Values_as_Lines_with_Value_Labels.xlsx b/file_keep/eg_file/img/Quarterly_Values_as_Lines_with_Value_Labels.xlsx new file mode 100644 index 0000000..c613c5e Binary files /dev/null and b/file_keep/eg_file/img/Quarterly_Values_as_Lines_with_Value_Labels.xlsx differ diff --git a/file_keep/eg_file/img/Radial_Polygons_Overlay.xlsx b/file_keep/eg_file/img/Radial_Polygons_Overlay.xlsx new file mode 100644 index 0000000..e017e12 Binary files /dev/null and b/file_keep/eg_file/img/Radial_Polygons_Overlay.xlsx differ diff --git a/file_keep/eg_file/img/Scatter_Plot_Variant_2_Outliers_Highlighted.csv b/file_keep/eg_file/img/Scatter_Plot_Variant_2_Outliers_Highlighted.csv new file mode 100644 index 0000000..c80feb5 --- /dev/null +++ b/file_keep/eg_file/img/Scatter_Plot_Variant_2_Outliers_Highlighted.csv @@ -0,0 +1,316 @@ +Schleswig-Holstein,1,Flensburg - Schleswig,Erluterungen siehe Vorbemerkungen,137,2127.9,285.8,141.1,271.5,134,16.7,3.4,8,12.9,34.4,24.8,8.4,11.2,53.7,47.5,3.4,9.7,53.6,0.4,44.7,4.3,467.4,664,11.6,11.5,38,27.7,21.3,11.7,12.5,267.6,2.1,24.6,27.5,45.8 +Schleswig-Holstein,2,Nordfriesland - Dithmarschen Nord,Erluterungen siehe Vorbemerkungen,201,2742.5,235,114.7,225.8,86,16.8,3.3,7.3,12.5,33.9,26.2,9.2,10.5,40.9,35.5,4,16.8,50.5,0.4,21.7,5.5,516.5,727.9,11.3,8.3,43.4,32.6,14.4,12.8,13,274,2.3,18.5,35.1,44 +Schleswig-Holstein,3,Steinburg - Dithmarschen Sd,Erluterungen siehe Vorbemerkungen,180,2000.7,229.9,113.5,220.1,115,17.5,3.5,6.9,12.1,35.4,24.7,9.1,11.6,33.2,30.4,0.2,12.3,47.7,0.4,66.9,3.7,448.4,544.8,9.2,8.6,7.6,47.2,32.7,12.5,13.3,237.2,2.6,31.1,23.4,42.9 +Schleswig-Holstein,4,Rendsburg-Eckernfrde,Erluterungen siehe Vorbemerkungen,164,2161,251.5,124.3,243.2,116,17.3,3.3,7,12.3,36.2,23.9,8.9,10.4,41.8,38.6,1.7,10.8,52.7,0.4,28.1,3.5,435.4,706.5,9.9,10.9,36.6,31.9,18.9,8.8,10.5,229,3.2,25.5,25.3,46.1 +Schleswig-Holstein,5,Kiel,Erluterungen siehe Vorbemerkungen,3,142.8,254.9,123.8,232.4,1785,13.1,2.5,9.2,16.2,35.1,23.9,8.6,10.1,61.7,61.2,-1,0.4,31,0.4,58.1,1.7,548.4,526.2,9.6,10.6,26.5,28.7,31.7,14.4,15.4,427,0.2,19.4,22.2,58.3 +Schleswig-Holstein,6,Pln - Neumnster,Erluterungen siehe Vorbemerkungen,93,1301.7,225.9,112.4,216.3,174,16,3.2,6.8,12.9,35.5,25.7,7.9,10.8,46,42.7,0.4,5.9,58.7,0.5,37.4,2.8,467.5,641.7,10.3,10.5,36.7,27.8,23.1,12,12.8,240.8,2.2,25.1,29,43.7 +Schleswig-Holstein,7,Pinneberg,Erluterungen siehe Vorbemerkungen,49,664.2,298.3,145.9,276.9,449,15.7,3,6.7,12.2,37.5,24.8,8.5,9.8,43.7,37.9,4.4,4.6,27.6,0.6,54.6,4.2,465.7,648.4,10.2,7.8,32.6,32.4,25.6,9.8,9.9,254.8,3.2,32.2,31.5,33.1 +Schleswig-Holstein,8,Segeberg - Stormarn-Nord,Erluterungen siehe Vorbemerkungen,95,1333.4,297.9,145.9,283.5,223,16.6,3.2,7.1,12.4,37.7,22.9,9.1,9.6,46.8,40.5,5.7,6.1,46.3,0.7,62.8,7.4,442.8,739.2,9.8,10.3,33.7,37.4,15.8,8.8,9.1,288.1,1.5,32.2,31.3,34.9 +Schleswig-Holstein,9,Ostholstein,Erluterungen siehe Vorbemerkungen,49,1532.7,224.2,108.4,215.6,146,15,3,6.8,11.6,35.8,27.9,7.6,11.9,45.6,38.2,3.1,6.8,68.8,0.4,30.8,3.5,503.2,673.2,9.8,12.8,36.7,33.3,16.2,12.7,12.6,241.5,2.1,22.6,32.5,42.8 +Schleswig-Holstein,10,Herzogtum Lauenburg - Stormarn-Sd,Erluterungen siehe Vorbemerkungen,126,1350,295.3,142.8,280.8,219,15.7,3.1,6.5,11.6,36.7,26.4,8.5,10.7,48.3,41.7,4.4,4.1,56.7,0.6,61.7,5.4,451.8,698.5,9.3,10.5,34.3,30.8,22.9,8.6,8.8,249.7,1.9,35.1,26.9,36 +Schleswig-Holstein,11,Lbeck,Erluterungen siehe Vorbemerkungen,28,406.2,230.1,109.7,211.4,566,14.3,2.8,7.9,13.6,34.1,27.2,8.6,12.8,56.8,55.2,-2.6,1.8,49.6,0.5,65.7,2,513.1,529,10.2,13.7,30.9,31.8,21.3,15.1,15.6,362.5,0.5,24.4,27.9,47.2 +Schleswig-Holstein,0,Land insgesamt,Erluterungen siehe Vorbemerkungen,1125,15763.2,2828.8,1382.5,2677.5,179,15.9,3.1,7.3,12.8,35.7,25.2,8.6,10.8,47.1,42.5,2.4,7.1,51.3,0.5,48.1,4.1,476.6,662.6,10.3,10.9,35.5,31.2,20.7,11.2,11.8,275.5,1.9,26.9,27.9,43.3 +Mecklenburg-Vorpommern,12,Wismar - Nordwestmecklenburg - Parchim,,177,4350,270.1,135,264.6,62,13,4.8,9.5,11.4,38,23.3,7.4,10.4,38,41.6,-6.6,3.6,276.9,0.4,34,3.8,464,646.5,14.5,12,21.2,47.5,18.3,16.8,18.8,248.3,6.1,31.3,20.7,41.9 +Mecklenburg-Vorpommern,13,Schwerin - Ludwigslust,,94,2647.4,226.5,111.6,219.7,86,12.5,4.6,9.9,11.7,37.5,23.9,7.8,10.2,45.8,50.7,-7.3,3.2,191,0.6,39.2,2.9,501,606.2,15.6,9.2,17.8,49.8,22.4,14.9,16.1,362.4,2.8,24.3,21.4,51.4 +Mecklenburg-Vorpommern,14,Rostock,,24,633.3,233.4,114.9,225.5,369,10.9,4.2,10.6,12.4,36.8,25.1,8,10.3,52.7,50.2,0.2,0.1,106.9,0.4,33.7,6.6,544.4,468.9,14.3,12.4,12.7,42.6,31,19.4,21.5,367.6,0.6,16.3,24.6,58.5 +Mecklenburg-Vorpommern,15,Stralsund - Nordvorpommern - Rgen,,113,3181.6,244.9,120.9,241.2,77,11.8,4.7,9.8,10.6,37.7,25.4,6.7,10.5,33.2,38.5,-9.2,2.8,287.2,0.3,20.2,5.7,509.3,602.7,15.4,10.4,20.3,51.5,16.9,25,27.5,283.9,4.2,17.6,31.8,46.4 +Mecklenburg-Vorpommern,16,Greifswald - Demmin - Ostvorpommern,,174,3881.8,252,124.6,246.1,65,12.2,4.8,10.2,11.1,37.2,24.6,7.4,10.5,34.3,39.8,-8.6,3.4,289.6,0.4,24.2,5.8,504.5,612.3,15.6,10.3,21.2,49.3,18.2,25.1,28,279.6,5.3,21.6,25.4,47.7 +Mecklenburg-Vorpommern,17,Bad Doberan - Gstrow - Mritz,,180,4680.9,261,129.8,256.3,56,12.8,5,9.6,11,38.2,23.4,7.4,9.7,34.5,36.6,-4.3,4.3,242.6,0.4,26,6.2,477.8,649.3,15.5,10.6,20.6,48.7,19.4,21.4,23.3,267.4,5.7,24.5,28.7,41.1 +Mecklenburg-Vorpommern,18,Neubrandenburg - Mecklenburg-Strelitz - Uecker-Randow,,111,3799.3,231.8,115.3,226.8,61,12,4.8,10.2,11,38.1,24,7.1,10.1,32.5,43.7,-14.2,2.7,280.9,0.3,19.9,3.1,492.9,635.9,16.5,10.9,17.9,45.8,24.3,25.3,27.3,304,4.3,19.1,22.3,54.3 +Mecklenburg-Vorpommern,0,Land insgesamt,,873,23174.2,1719.7,852.1,1680.2,74,12.2,4.7,9.9,11.3,37.7,24.2,7.4,10.2,38.1,42.5,-7.2,3,260,0.4,27.9,4.9,498.3,608.6,15.4,10.8,19.1,48.1,21,21.2,23.3,297.6,4.1,22.1,25,48.8 +Hamburg,19,Hamburg-Mitte,Erluterungen siehe Vorbemerkungen,1,119.7,366.9,184,296.3,3064,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,20,Hamburg-Altona,Erluterungen siehe Vorbemerkungen,1,78.3,245.4,119.5,208.4,3133,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,21,Hamburg-Eimsbttel,Erluterungen siehe Vorbemerkungen,1,49.8,247.7,117.5,217,4970,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,22,Hamburg-Nord,Erluterungen siehe Vorbemerkungen,1,114.9,265.9,125.3,241.4,2315,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,23,Hamburg-Wandsbek,Erluterungen siehe Vorbemerkungen,1,77.2,290.4,139.4,259.5,3762,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,24,Hamburg-Bergedorf - Harburg,Erluterungen siehe Vorbemerkungen,1,315.4,318.5,157.8,267.8,1010,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Hamburg,0,Land insgesamt,,1,755.3,1734.8,843.6,1490.4,2297,13.4,2.7,8.1,16.2,35.6,24,9.2,10.4,45.8,41.4,3.2,0.7,11.3,0.3,58.3,2.1,501.3,546.4,8.6,11.7,24.4,29.6,32.4,11.1,10.7,426.1,0.4,19.3,30.1,50.2 +Niedersachsen,25,Aurich - Emden,,25,1399.7,241.8,118.2,231.6,173,17.6,3.5,7.8,12.9,34.3,23.9,9.1,10.5,36.7,32.2,3.2,10,37,0.3,69.2,5,463.7,627.7,12.2,11.5,25.3,44.3,16.8,13.9,15,279.6,1.8,35.8,25.3,37 +Niedersachsen,26,Unterems,,56,2596.5,305,151.6,288.9,117,19.2,4.1,8.3,13.1,33.7,21.6,9.7,10,31.7,26.8,4.6,15.2,33.5,0.4,31.1,6.5,391.8,653.6,12.4,12.3,30,42.6,13.9,13.6,14.6,201.4,2.2,27,30.3,40.5 +Niedersachsen,27,Friesland - Wilhelmshaven,,28,1367.6,243.7,119.9,233.6,178,16.1,3.3,7.4,11.9,35,26.4,8.4,11.4,45.7,42.9,-0.3,9.2,40,0.4,37.8,3.5,513.1,656.2,10.8,11.6,28.7,40.2,17.6,13.7,14.5,253.1,1.2,25.8,24.1,48.8 +Niedersachsen,28,Oldenburg - Ammerland,,7,831.2,273.6,132.5,257.8,329,15.8,3.1,8.1,14.1,36,23,9.2,9.7,64.4,55.6,8.3,6.1,28.9,0.5,44.3,4.3,481.9,647.1,11.1,8.6,24.8,36.7,27.4,11.2,11.9,349.2,3,22.2,25.8,49 +Niedersachsen,29,Delmenhorst - Wesermarsch - Oldenburg-Land,,25,1947.2,295.3,146,277.3,152,17.3,3.5,6.9,12.1,36.5,23.8,8.9,10,43.3,39.8,2.3,10.1,43.7,0.5,61.5,4,445.2,674.6,10.5,8.7,27.7,46.8,15.2,11,10.9,228.6,1.9,36.4,25,36.7 +Niedersachsen,30,Cuxhaven - Osterholz,,46,2015.9,270.1,132.6,254.8,134,16.4,3.2,6.5,11.6,36.8,25.5,8.3,11.1,40.5,35.4,2.4,11.5,41.9,0.3,25.5,5.6,450.3,711.6,11.2,10.6,29.5,43.1,15.7,10.2,10.9,183.3,2.7,27.2,28.2,41.9 +Niedersachsen,31,Stade - Cuxhaven,,63,1973.3,244.8,121.1,233.2,124,17.6,3.5,7.2,12.3,36,23.3,9.6,10,42.2,35.9,5.9,14.3,38.8,0.4,51.1,4.9,446.9,702.2,11.3,12,24,46.4,15.5,8.5,9.2,250.7,1.8,33.4,29.4,35.4 +Niedersachsen,32,Mittelems,,49,2351.2,302.7,150.5,281.6,129,18.8,4,8.4,13,33.9,21.9,10,9.2,31.9,28.8,4,14.8,31.4,0.7,75.8,6.9,387.6,675.8,14.2,8.8,29.8,41.9,18,9.3,9.9,277.5,1.8,43.3,21,33.9 +Niedersachsen,33,Cloppenburg - Vechta,,23,2230.7,286.5,143.5,270,128,20.7,4.2,9,13.8,33.1,19.2,11.4,8.2,49.6,46,6.8,17.6,32.5,0.9,98.2,6.8,344.2,673.6,14.7,9.9,31.6,39.9,17,8,9.2,313,3.9,48.9,19.5,27.7 +Niedersachsen,34,Diepholz - Nienburg I,,61,2487,247.3,122.9,235.2,99,16.9,3.3,6.9,12.1,36.3,24.5,8.1,10.7,46.7,40.4,3.8,16.7,40.2,0.7,48,5.6,404.5,744.9,10.8,9.5,22.6,47.4,18.5,7.6,8.4,248,2.1,32.8,30.9,34.1 +Niedersachsen,35,Rotenburg - Verden,,69,2857.7,299.2,148.4,283.1,105,17.8,3.6,7.4,12.5,36,22.7,9.5,10,39.1,34.8,3.8,13.5,44.2,0.5,51.1,5.5,423.4,753.4,11.8,9.4,25.5,45.3,18.1,7.8,8.5,273.5,2.5,34.5,27.1,35.9 +Niedersachsen,36,Soltau-Fallingbostel - Winsen L.,,47,2390.1,323.6,158.5,307.1,135,16.8,3.2,6.7,11.9,36.9,24.5,9,9.9,42.5,37.3,4.3,7.2,44.5,0.4,29.7,3.6,445.8,726.8,10.6,8.8,30.3,41.2,17.7,8.6,8.9,217.2,2.3,27.4,31.3,38.9 +Niedersachsen,37,Lchow-Dannenberg - Lneburg,,89,3271.4,285.3,140.1,270.8,87,16.3,3.2,7.8,13.1,35.5,24.1,8.8,10.7,45.4,36.9,6.5,8.6,61,0.5,51.2,5.8,443.9,663.2,9.6,8.4,21.8,42.6,24.5,12.6,13.3,247.2,2.4,29.7,23.6,44.3 +Niedersachsen,38,Osnabrck-Land,,29,1916,263.3,131.7,249.4,137,19,4.1,8.4,13,34.4,21.1,9.8,9.6,40.6,37.5,3.3,14.9,29.1,0.7,81.1,5.1,383.5,695.6,10.9,9.4,26.9,49.2,12.2,7.6,8.1,255.8,2,44.7,22.6,30.6 +Niedersachsen,39,Stadt Osnabrck,,6,325.3,260.6,125.3,242.3,801,14.7,3.1,9.4,14.6,34.3,23.8,8.6,9.8,66.8,59.8,5.8,2.2,22.8,0.6,100.9,2.9,469,554.6,13.5,7.8,18.6,38.7,30.2,10.9,11.8,485.9,0.3,28.6,27.3,43.9 +Niedersachsen,40,Nienburg II - Schaumburg,,60,1575,260.2,127.2,243.7,165,16.4,3.3,7.2,11.8,35.3,25.9,8.6,12.2,40.1,38.7,-2.1,7.3,44.4,0.6,61.4,3.6,438.2,779.8,10.6,10.5,22.6,43.6,20.6,10.3,11.4,234.1,1.6,37.6,22.7,38.1 +Niedersachsen,41,Stadt Hannover I,Erluterungen siehe Vorbemerkungen,1,112.7,252.3,120.7,214,2239,12.7,2.4,8.7,16.3,34.8,25.1,8.6,10.6,32.9,30.1,0.8,0.1,34.6,0.3,89.6,1.5,550.6,481,9.4,11.2,14.9,36.8,33.2,11.1,11.6,373.3,0.6,24.4,25.5,49.5 +Niedersachsen,42,Stadt Hannover II,Erluterungen siehe Vorbemerkungen,1,91.3,263.5,126.1,223.5,2885,12.7,2.4,8.7,16.3,34.8,25.1,8.6,10.6,32.9,30.1,0.8,0.1,34.6,0.3,89.6,1.5,550.6,481,9.4,11.2,14.9,36.8,33.2,11.1,11.6,373.3,0.6,24.4,25.5,49.5 +Niedersachsen,43,Hannover-Land I,Erluterungen siehe Vorbemerkungen,8,1131.7,303.9,147.9,282,269,15.7,3.2,7.2,11.9,36.7,25.2,8.6,10.6,32.9,30.1,0.8,4.2,44.3,0.4,38.3,3.2,447.5,666.7,10.1,8.7,19,46.7,23,11.1,11.6,373.3,0.6,24.4,25.5,49.5 +Niedersachsen,44,Celle - Uelzen,,54,2998.8,280,136.2,265.6,93,16.5,3.4,7.4,11.8,34.4,26.4,8.6,12.3,36,31.9,0.4,7.5,61.7,0.5,41.6,4.4,458.3,676.9,11.6,11,31.1,42.4,14,10.9,12.6,248.8,2.4,28.4,23.8,45.3 +Niedersachsen,45,Gifhorn - Peine,,36,1824.1,284.6,140.9,267.3,156,17.9,3.6,7.3,12.1,36.2,22.9,9.1,9.8,38.7,33.6,4.4,6.5,52.9,0.4,46.4,4.5,429.8,692.4,11,9.4,23.8,50.6,14.9,9.6,11,193.9,1.2,34.9,23.3,40.6 +Niedersachsen,46,Hameln-Pyrmont - Holzminden,,42,1621.9,258.7,124.7,239,159,15.3,3.2,7.1,11.3,34.3,28.8,8.2,13.1,33,33.2,-5.1,5.7,47.9,0.6,79.8,2.8,483.5,680.4,10,12.7,24.7,43.6,17.9,12.8,13.9,278.7,1.3,35.3,19.5,44 +Niedersachsen,47,Hannover-Land II,Erluterungen siehe Vorbemerkungen,12,954.7,308.6,150.4,289,323,15.8,3.2,7.1,11.5,36.7,25.6,8.6,10.6,32.9,30.1,0.8,3.2,58.6,0.4,38.3,3.5,461.5,666.7,10.1,8.7,19,46.7,23,11.1,11.6,373.3,0.6,24.4,25.5,49.5 +Niedersachsen,48,Hildesheim,,40,1205.7,291.6,140.9,274.6,242,15.6,3.1,7.3,12.4,35.4,26.2,8.5,11.4,28.9,27.9,-1.9,4.3,53.5,0.6,75.5,3.5,465,637.5,11,8.7,20,42.5,26.1,9.4,10,279.8,0.8,38.1,21.4,39.6 +Niedersachsen,49,Salzgitter - Wolfenbttel,,44,1235.2,285,138.8,264.1,231,15.8,3.2,7,11.7,35.7,26.6,8,11.5,36.9,36.7,-3.4,3.6,75.2,0.4,117.1,3.1,472.8,639.3,9.9,8.7,25.2,47.4,16.6,11,12.3,285.4,1,48.8,16.6,33.6 +Niedersachsen,50,Braunschweig,,1,192.1,245.9,120.3,221.3,1280,12.8,2.7,8.5,15.2,34.3,26.6,8.2,11.9,55.6,53.3,-1.3,0.6,45.9,0.5,85.9,2.7,544.7,600.7,11.5,8.7,18.6,31.7,37,12.1,13.1,427.3,0.3,27.2,21.9,50.5 +Niedersachsen,51,Helmstedt - Wolfsburg,,40,1151.2,245.7,120.9,224.3,213,14.8,3.3,7.7,11.9,35.5,26.8,7.3,11.4,45.3,41.3,-0.1,3.7,69.9,0.3,251.6,2.1,473,756.8,11.7,8.3,18.3,46.1,24.3,9.3,11.7,520.6,0.6,61.6,13.5,24.3 +Niedersachsen,52,Goslar - Northeim - Osterode,,32,2299.1,279.8,136.4,260.8,122,14.3,3.1,7.2,11.5,34.8,29.2,7.4,13.3,32.7,32.8,-6,5.5,45.8,0.8,80.3,2.4,505.6,692.9,10.6,10,22.6,45.8,19.9,12.3,12.8,281.4,1.8,38.4,21.8,38 +Niedersachsen,53,Gttingen,,32,1264,298.5,145.1,278.7,236,14.4,3.1,9.5,14.4,35,23.6,8.4,10.1,321.1,321.9,-2.5,4.7,44.7,0.5,67.3,2.4,471,601,11,10,18.9,38.9,29,11.6,12.3,289,0.9,26.9,20.3,51.9 +Niedersachsen,0,Land insgesamt,,1025,47618.2,8000.9,3919.4,7464.5,168,16.3,3.3,7.7,12.8,35.3,24.6,8.8,10.7,49.5,46,1.6,7.9,42,0.5,68,4.1,455.4,666.6,11.2,9.7,24.4,43.1,20.6,10.5,11.3,292.6,1.5,33.9,23.6,40.9 +Bremen,54,Bremen I,Erluterungen siehe Vorbemerkungen,1,153.9,341.1,163.6,296.1,2216,13.6,2.8,8,14.1,35.5,26.1,8.4,11.5,46.3,39.7,3.4,0.4,37,0.5,104.7,2.2,523.1,516,10.2,8.1,19.3,41.1,31.4,12.8,13.3,423.8,0.3,29.3,27.7,42.7 +Bremen,55,Bremen II - Bremerhaven,Erluterungen siehe Vorbemerkungen,2,249.2,322.1,157.6,280.4,1293,14.5,3.5,8.5,12.2,34.7,26.7,8.6,11.9,46.5,50.4,-7.1,0.2,13.5,0.7,59.5,3.5,556.3,494,12.8,10.2,25.3,37.5,26.9,19,19.5,358.6,0.4,23.4,30.8,45.3 +Bremen,0,Land insgesamt,,2,403.1,663.2,321.2,576.6,1645,13.7,2.9,8.1,13.7,35.3,26.2,8.4,11.5,46.3,41.6,1.6,0.4,35.1,0.5,96.6,2.4,529.1,512.1,10.7,8.6,20.6,40.4,30.5,13.9,14.3,412.3,0.3,28.4,28.2,43.1 +Brandenburg,56,Prignitz - Ostprignitz-Ruppin - Havelland I,,61,5114.8,211.2,104.6,207.7,41,12,4.8,9.2,10.5,37.8,25.7,6.6,11.6,24.5,31.4,-11.8,6.2,213.8,0.6,37.3,3.8,487.8,675.5,15.9,9.2,19.1,45.7,25.6,22.5,23.6,285.2,7.2,28.4,22.9,41.5 +Brandenburg,57,Uckermark - Barnim I,,49,3851.9,211.7,104.9,206.7,55,12,4.7,9.2,10.7,38.6,24.9,6.7,10.6,35.3,33.8,-2.3,2.8,253.8,0.4,26.1,4.5,489,640.3,14.1,12,21.5,40.2,26.3,22.7,23.5,242.7,5.7,26.1,24.5,43.8 +Brandenburg,58,Oberhavel - Havelland II,,26,2457.9,292.8,144.8,287.6,119,13.8,4.2,8.3,11.2,39.4,23.2,7.6,9.6,44.5,35.9,6.6,2.6,183,0.4,39.4,7.6,463.4,634,12.5,8.7,21.8,44.9,24.1,19.1,19.8,224.3,3.7,30.8,25.5,40.1 +Brandenburg,59,Mrkisch-Oderland - Barnim II,,56,2828.4,297.7,148.9,290.7,105,12.3,4.8,9.4,10.8,39.2,23.5,6.7,9.8,43.7,35.1,5.5,2.9,223.7,0.3,18.8,7.5,463.9,663.7,13.9,10,21.1,45.6,23.4,21.4,21.1,223.8,5.7,24,27,43.4 +Brandenburg,60,Brandenburg an der Havel - Potsdam-Mittelmark I - Havelland III - Teltow-Flming I,Erluterungen siehe Vorbemerkungen,41,3383.3,242.6,120.1,237.2,72,11.8,4.5,9.2,10.9,38.2,25.4,6.8,10.2,42.7,38.1,1.3,2.7,152.7,0.5,30.6,6.5,493.9,665.5,13.5,9.2,16.8,44,29.8,16.3,16.7,275.3,3.9,25.7,26.1,44.2 +Brandenburg,61,Potsdam - Potsdam-Mittelmark II - Teltow-Flming II,Erluterungen siehe Vorbemerkungen,12,809.9,312.1,152.7,300.2,385,12.8,3.9,9.4,13.1,37.8,23,9.6,8.4,62.6,51.7,12,2.7,152.7,0.2,11.2,7.8,504.5,463.7,13.8,6.3,15.9,34.7,43,12.8,13.3,456.4,0.4,9.5,17.2,72.9 +Brandenburg,62,Dahme-Spreewald - Teltow-Flming III - Oberspreewald-Lausitz I,Erluterungen siehe Vorbemerkungen,48,3861.7,256.4,126.9,250.7,66,12.3,4.3,8.8,10.9,37.9,25.8,7.1,10.4,42,36.5,2.1,2.4,211.4,0.6,45.7,5.1,462.2,678.2,13.7,8.7,21.3,41.8,28,15.9,16.4,280.6,3.9,28.6,31.4,36.1 +Brandenburg,63,Frankfurt (Oder) - Oder-Spree,,39,2390.1,257.2,127.1,247.6,108,11.5,4.5,10,11.3,38,24.6,6.8,10.2,43,49,-9.4,1.9,174.9,0.4,32.4,5.3,498.9,629.7,15.2,8.9,17.7,41.3,31.9,19.8,20.4,303.1,2.3,24.7,23.4,49.6 +Brandenburg,64,Cottbus - Spree-Neie,,32,1812.1,245.9,121.7,237.5,136,11.2,4.4,10.1,11.6,37.8,24.8,6.3,11.1,43.3,54.6,-16,1.8,124.3,0.4,43.2,3.2,527.7,637.2,15.7,7,16.2,42.2,34.5,21.1,21.8,337.1,2.1,27.1,20.5,50.2 +Brandenburg,65,Elbe-Elster - Oberspreewald-Lausitz II,,57,2967.2,240.1,118.6,234.6,81,11.3,4.5,9.3,11.1,36.8,27,6.4,11.9,18.7,30.3,-17,3,162.5,0.6,46.5,2.2,492.5,662.4,15.6,7.6,17.6,47,27.3,25.3,25.1,253.4,4.3,35.8,22.6,37.2 +Brandenburg,0,Land insgesamt,,421,29477.2,2567.7,1270.3,2500.5,87,12.1,4.4,9.3,11.2,38.2,24.8,7,10.4,39.4,39,-3.1,2.7,194.2,0.5,34.7,5.4,488.2,642.3,14.3,8.9,19.1,43,28.8,19.8,20.3,278.7,3.8,26.3,24.2,45.7 +Sachsen-Anhalt,66,Altmark,,250,4715.2,230.4,114.1,227,49,13.1,4.8,9.4,11.1,37.1,24.6,7,11.3,25.2,31,-10,5.6,208.6,0.4,30.8,2.9,488.4,649.6,15.1,15.6,4.8,54.4,24.2,22.2,23.6,272.1,5.9,29.5,20.5,44 +Sachsen-Anhalt,67,Elbe-Havel-Gebiet,,196,4021.2,284.1,140.4,280.2,71,12.2,4.5,9.1,11.3,38,24.8,6.6,11.4,28.8,33.7,-9.7,3.4,212.8,0.7,54.2,3.9,478,678.3,13.1,15.4,3.6,58.1,22.6,16.9,17.7,274.7,4.8,37.1,23.4,34.6 +Sachsen-Anhalt,68,Harz,,76,2001,243.7,118.5,240.7,122,11.7,4.2,8.8,10.9,37,27.5,6.7,12.2,24.2,29.3,-10.6,1.6,235.7,0.6,45.3,2.6,496.8,602,13.3,14,4.2,56.7,24.5,19.7,20.9,284.1,3.5,29.5,23.1,43.9 +Sachsen-Anhalt,69,Magdeburg,,1,200.9,226.7,109.1,218.6,1128,10.7,3.6,9.3,12.3,36.1,27.9,7,11.2,38.4,37,-2.8,0.1,199.3,0.3,26.4,2.6,636.9,510.6,13.4,13.7,4.1,46.7,34.3,19.8,21.9,440.6,0.3,17.2,20,62.5 +Sachsen-Anhalt,70,Brde,,93,1987.6,246.6,121.1,243,124,11.9,4.2,8.7,11.1,37.3,26.8,6.5,12.2,22.4,31.4,-14.8,2.1,289.8,0.7,47.3,2.6,509.1,613.3,13,16.5,3.4,59.2,20.1,23.4,24,253.5,4.3,33.6,20.9,41.3 +Sachsen-Anhalt,71,Anhalt,,101,2166,270.3,131.5,265.4,125,11.1,4.1,9,11.1,37,27.7,6.2,11.5,26.2,35.7,-14.8,1.6,261.7,0.6,51,2.6,522,602.3,13.8,11.7,4.4,56,27.1,21.3,22.3,295.8,3.3,28.8,21.3,46.5 +Sachsen-Anhalt,72,Bernburg - Bitterfeld - Saalkreis,,112,1529.3,244.8,119.9,241.4,160,11.4,4.3,9.1,11.1,38,26.2,6.2,11.5,27.5,36.4,-14.2,1.4,275.4,0.6,51.2,3.3,482.8,656.5,12.8,14.2,3.5,61.5,20.3,20.1,20.5,267.7,2.2,33.9,30,33.9 +Sachsen-Anhalt,73,Halle,,1,135,238.5,113,229,1767,11.3,3.6,9.7,13.1,35.6,26.6,8.1,11.3,51.8,45.3,3.2,0.1,158.6,0.3,26.2,2.2,636.1,443.1,13.6,13.7,6.7,45.6,32.9,20.1,21,389.2,0.4,14.2,20.3,65.1 +Sachsen-Anhalt,74,Burgenland,,140,1700.1,262.6,128.2,258.5,154,11.2,4.1,8.7,10.9,36.3,28.8,6.5,12.3,24.5,31.6,-12.9,2,205.9,0.5,48.8,2.2,524.7,627.6,13,14.1,3.6,56,25.7,23.9,24.6,274.3,4.4,33.8,22.7,39 +Sachsen-Anhalt,75,Mansfelder Land,,148,1989,246.9,121,243.5,124,11.2,4.2,8.9,11,37,27.6,6.3,12.7,21.1,30.2,-15.5,2.1,212.4,0.5,36.2,2.2,477.6,634.5,13.5,14.2,2.8,59.9,22.6,26,26.8,244.6,6.3,28,24.6,41.1 +Sachsen-Anhalt,0,Land insgesamt,,1118,20445.3,2494.4,1216.9,2447.3,122,11.6,4.2,9.1,11.4,37,26.8,6.7,11.7,28.9,34.2,-10.3,2,228.6,0.5,42.8,2.7,523.7,604,13.4,14.3,4.1,55.4,25.4,21.2,22.2,298.8,3.2,27.9,22.4,46.5 +Berlin,76,Berlin-Mitte,Erluterungen siehe Vorbemerkungen,1,39.5,320.8,163,231.9,8131,13.4,2.8,9.8,18.9,36.3,18.7,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,2.8,588.2,424.5,11.2,14.1,22.8,33.8,29.3,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,77,Berlin-Pankow,Erluterungen siehe Vorbemerkungen,1,96.6,287.1,142.1,269.9,2970,11.5,3,9.4,21.1,34.9,20.1,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,2.6,577.9,424.5,11.2,10.8,16.8,38.9,33.5,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,78,Berlin-Reinickendorf,Erluterungen siehe Vorbemerkungen,1,89.3,245.5,117.4,223.5,2749,13.9,3.1,7.2,11.3,37.5,27,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,0.6,534.9,424.5,11.2,9.2,21.2,34.2,35.4,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,79,Berlin-Spandau - Charlottenburg Nord,Erluterungen siehe Vorbemerkungen,1,99.5,256.7,123.5,223.3,2580,13.9,3.2,7.8,12.1,37.2,25.9,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,1,516.3,424.5,11.2,9.8,24.6,39.6,26,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,80,Berlin-Steglitz - Zehlendorf,Erluterungen siehe Vorbemerkungen,1,102.5,288.5,133,261.4,2814,13,2.7,6.8,11.8,38.1,27.7,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,1.5,537.4,424.5,11.2,10.4,13.1,31.2,45.2,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,81,Berlin-Charlottenburg - Wilmersdorf,Erluterungen siehe Vorbemerkungen,1,57.1,283.7,133.3,236.1,4972,10.7,2.1,6.8,14.1,40.9,25.4,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,1,601.4,424.5,11.2,9.7,18.2,33.1,38.9,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,82,Berlin-Tempelhof - Schneberg,Erluterungen siehe Vorbemerkungen,1,53.1,334.4,160.1,284,6298,12.7,2.6,7.4,14,39.7,23.5,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,0.7,548.6,424.5,11.2,8.9,22.8,36,32.2,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,83,Berlin-Neuklln,Erluterungen siehe Vorbemerkungen,1,44.9,305.7,150.9,239.2,6803,15.1,3,8.6,14.6,36.8,21.9,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,0.5,535.3,424.5,11.2,14.1,29,36,20.9,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,84,Berlin-Friedrichshain - Kreuzberg - Prenzlauer Berg Ost,Erluterungen siehe Vorbemerkungen,1,26.6,321.9,163.3,258.3,12109,13.6,2.8,10.7,22.7,35.8,14.4,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,0.8,571,424.5,11.2,15.4,28.4,31.9,24.3,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,85,Berlin-Treptow - Kpenick,Erluterungen siehe Vorbemerkungen,1,167.7,234.7,114.3,226.8,1399,11.6,3.5,8.3,12.7,35.1,28.9,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,2.8,538.1,424.5,11.2,9.5,15.1,46.6,28.8,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,86,Berlin-Marzahn - Hellersdorf,Erluterungen siehe Vorbemerkungen,1,61.8,251.4,124.5,242.4,4066,13.3,5.6,12,10.7,41.5,16.9,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,3.1,512.3,424.5,11.2,11.5,19.2,42.2,27.1,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,87,Berlin-Lichtenberg,Erluterungen siehe Vorbemerkungen,1,52.3,257.5,127.7,236.6,4921,11.1,4.2,11.2,13.6,37.7,22.3,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,0.8,539.7,424.5,11.2,9.7,18.5,40.5,31.3,19.5,19.2,307.6,0.5,17.9,23,58.6 +Berlin,0,Land insgesamt,,1,891,3387.8,1653.1,2933.3,3802,12.8,3.2,8.8,15,37.7,22.6,8.5,9.8,34.3,34.1,-1.2,0,20.9,0.3,32.1,1.5,552.5,424.5,11.2,11.1,20.5,37.3,31.2,19.5,19.2,307.6,0.5,17.9,23,58.6 +Nordrhein-Westfalen,88,Aachen,Erluterungen siehe Vorbemerkungen,1,160.8,257.8,131.3,213.2,1603,13.4,2.7,9,15.3,36.9,22.6,9,9.3,87.2,52.3,34.5,0.8,30.2,0.5,85.1,2.1,510.8,570.6,10,5,22.5,33.3,35.6,12.1,12.7,418.1,0.3,21,20.6,58.1 +Nordrhein-Westfalen,89,Kreis Aachen,,9,547,310.2,151.8,278.2,567,16.7,3.4,7.4,12.3,35.8,24.3,9.1,10.3,34,31.5,1.3,1.8,31.3,0.5,69.7,2.7,434.2,570.6,10,7.1,22.1,42.3,24.5,11.1,11.4,225.2,0.6,39,23.5,36.8 +Nordrhein-Westfalen,90,Heinsberg,,10,628,257,126.5,232,409,17.7,3.8,7.9,12,36.1,22.5,8.8,9.6,33.6,28.1,4.7,4.2,36.4,0.5,41.7,6.3,407,647.7,12.6,6.1,21.5,42.8,25.3,10.9,10.8,197.4,1.3,35,25.8,37.8 +Nordrhein-Westfalen,91,Dren,,15,940.6,272.9,135.9,245.4,290,17,3.5,7.7,12.8,36.2,22.8,8.6,9.6,36.8,34.1,1.7,3.8,48.9,0.5,68.6,3.7,412.5,859.4,10.6,6.1,24.7,41.4,24.9,10.3,10.8,256.2,1,37,18.3,43.6 +Nordrhein-Westfalen,92,Erftkreis I,,7,525.1,331.8,163.2,295.8,632,15.6,3.3,7.7,13,38,22.4,8.4,9.3,44.1,41.2,2,1.3,58.7,0.3,49.5,3.9,415.2,640,9.8,5.9,20.3,43.3,27.8,9.4,9.7,244.4,1.1,32.9,29.9,36 +Nordrhein-Westfalen,93,Euskirchen - Erftkreis II,,14,1428.4,324.3,159.1,299.8,227,16.5,3.4,7.4,12,36.7,24,8.7,10.7,37.7,30.9,4.9,4.8,36.8,0.5,50.7,3.6,409.1,705.3,11.5,4.4,27,39.9,25.4,9,9.2,229.6,1.1,35.6,23.9,39.4 +Nordrhein-Westfalen,94,Kln I,Erluterungen siehe Vorbemerkungen,1,128.3,265.8,130.2,214.6,2072,14.1,2.7,7.6,16.2,36.2,23.3,9.8,10.2,48,50.4,-2.8,0.1,52.9,0.3,65,2.6,523.7,572.8,9.2,8.2,20.7,35.2,30.6,13.1,12.9,453.6,0.3,19.6,27.7,52.5 +Nordrhein-Westfalen,95,Kln II,Erluterungen siehe Vorbemerkungen,1,101.7,279.1,132.8,242.3,2746,14.1,2.7,7.6,16.2,36.2,23.3,9.8,10.2,48,50.4,-2.8,0.1,52.9,0.3,65,2.6,523.7,572.8,9.2,8.2,20.7,35.2,30.6,13.1,12.9,453.6,0.3,19.6,27.7,52.5 +Nordrhein-Westfalen,96,Kln III,Erluterungen siehe Vorbemerkungen,1,122.9,284.1,137.4,229.4,2311,14.1,2.7,7.6,16.2,36.2,23.3,9.8,10.2,48,50.4,-2.8,0.1,52.9,0.3,65,2.6,523.7,572.8,9.2,8.2,20.7,35.2,30.6,13.1,12.9,453.6,0.3,19.6,27.7,52.5 +Nordrhein-Westfalen,97,Bonn,,1,141.2,311.9,149.1,259.5,2209,14.6,2.8,8.1,15.2,36.4,22.9,10.1,9.5,71.9,65.7,6.9,0.2,21.3,0.3,34.1,3.1,503.1,587.1,11.6,5.8,14.2,30,45.2,8.6,8.3,458.8,0.2,13.9,18,67.9 +Nordrhein-Westfalen,98,Rhein-Sieg-Kreis I,Erluterungen siehe Vorbemerkungen,10,660.7,314,154.7,283,475,17.4,3.5,7.8,12.7,36.8,21.8,8.8,8.8,42.8,35.2,7.6,2.7,26.9,0.4,44.3,4.1,408.9,640.4,10,5.8,24.2,37.2,29.1,7.7,7.2,208.1,1.6,31.9,24.6,41.9 +Nordrhein-Westfalen,99,Rhein-Sieg-Kreis II,Erluterungen siehe Vorbemerkungen,9,492.8,282.5,138.1,261.3,573,16.7,3.4,7.8,11.6,37,23.4,8.8,8.8,42.8,35.2,7.6,2.6,28.1,0.4,44.3,3.2,416.8,640.4,10,5.8,24.2,37.2,29.1,7.7,7.2,208.1,1.6,31.9,24.6,41.9 +Nordrhein-Westfalen,100,Oberbergischer Kreis,,13,918.5,290.6,141.8,266.9,316,17.7,3.8,8.2,12.3,34.4,23.6,9.3,10.5,27.7,25.7,0.9,4.1,25.4,0.9,108.1,3.9,405.1,683.8,12.2,6.7,24.9,42.6,21.6,9.7,10,291.8,0.7,47.5,17.4,34.5 +Nordrhein-Westfalen,101,Rheinisch-Bergischer Kreis,,8,437.6,279.4,135.7,259.5,638,16.4,3.3,6.8,11.3,36.8,25.4,8.7,9.3,43.4,40.3,2.5,1.9,23.4,0.5,53.5,3.5,450,694.5,9.9,4,16.1,46,30.4,8.9,9.5,228.8,1.1,31.8,24.6,42.5 +Nordrhein-Westfalen,102,Leverkusen - Kln IV,Erluterungen siehe Vorbemerkungen,2,131.1,302.3,147.1,258.7,2305,14.9,3.1,7.3,12.4,35.4,27,9,10.5,49.7,40.3,7.9,0.4,24.1,0.3,189.9,1.4,470.6,600.5,11.9,5.8,22.2,33,34.1,10.6,11.3,376.4,0.3,37.2,19.4,43 +Nordrhein-Westfalen,103,Wuppertal I,Erluterungen siehe Vorbemerkungen,1,130.8,316.7,152.2,263.8,2420,14.7,3.2,7.6,12.8,35.6,26.1,8.4,11.7,33.3,33.9,-3.8,0.4,19.7,0.7,88.3,1.7,522.6,560.1,10.6,9.4,25.6,35.4,25.3,12.4,12.8,319.8,0.5,36.2,21.5,41.8 +Nordrhein-Westfalen,104,Solingen - Remscheid - Wuppertal II,Erluterungen siehe Vorbemerkungen,3,201.6,325.4,157.1,282.3,1614,15.8,3.3,7.4,12.1,35.3,26,8.5,11.8,31.8,31.5,-2.9,0.5,20.8,1.1,110.7,2.3,485.5,617.4,10.7,6.1,26.8,39.1,24.8,10.3,10.7,318.3,0.5,47.8,18.5,33.1 +Nordrhein-Westfalen,105,Mettmann I,Erluterungen siehe Vorbemerkungen,6,183.8,276,133.8,245.6,1502,15.1,3.3,7.1,12,37.1,25.4,8.2,10.4,34,34.8,-3,0.6,34.3,0.8,86.1,2.5,461.6,647.4,10.2,6.8,20.4,43.2,26.2,8.1,8.2,324.1,0.7,36.6,31.5,31.2 +Nordrhein-Westfalen,106,Mettmann II,Erluterungen siehe Vorbemerkungen,4,223.3,230.1,111,204.1,1030,15.1,3.1,7,12,36.4,26.4,8.2,10.4,34,34.8,-3,1.1,30.9,0.8,86.1,2.7,474.6,647.4,10.2,6.8,20.4,43.2,26.2,8.1,8.2,324.1,0.7,36.6,31.5,31.2 +Nordrhein-Westfalen,107,Dsseldorf I,Erluterungen siehe Vorbemerkungen,1,129.6,298.1,140.8,245.5,2300,12.8,2.4,6.8,15.7,36.6,25.6,9.1,11.8,54.5,50.7,1.1,0.3,23.5,0.4,72.9,2.1,559.3,600,8.8,9.1,18.8,36.3,30.9,11,11,582.5,0.2,19.1,26.9,53.7 +Nordrhein-Westfalen,108,Dsseldorf II,Erluterungen siehe Vorbemerkungen,1,87.4,274.6,131,225,3142,12.8,2.4,6.8,15.7,36.6,25.6,9.1,11.8,54.5,50.7,1.1,0.3,23.5,0.4,72.9,2.1,559.3,600,8.8,9.1,18.8,36.3,30.9,11,11,582.5,0.2,19.1,26.9,53.7 +Nordrhein-Westfalen,109,Neuss I,,4,347.6,292.8,143.4,258.5,842,16,3.3,7.6,12.7,36.6,23.7,8.8,9.2,34.7,34.8,-0.4,1.3,44.7,0.4,70.6,3.3,447.9,666.1,10.1,6.8,19.3,39.5,30.1,8.5,9.7,270.7,1.1,32.7,30.9,35.4 +Nordrhein-Westfalen,110,Mnchengladbach,,1,170.4,262,126.4,233.9,1537,15.7,3.3,7.7,12.7,35.8,24.8,8.7,11.6,34.6,34.5,-2.7,0.8,30.8,0.5,67.4,1.8,473.8,597.1,11.3,7.9,28.9,33.8,25.1,12.8,15.2,309.1,0.6,31.6,26.3,41.5 +Nordrhein-Westfalen,111,Krefeld I - Neuss II,Erluterungen siehe Vorbemerkungen,5,302.6,277.7,134.5,248.7,918,15.7,3.2,6.5,11.3,38.4,24.9,8.3,11,37.5,37.4,-2.6,2.3,33.2,0.5,113.9,4.8,454.3,562.5,10.8,9.6,22.4,36.4,27.2,12.8,13.1,352.2,0.6,35.2,23.4,40.8 +Nordrhein-Westfalen,112,Viersen,,9,563.2,304.3,148.4,282.1,540,17,3.5,7,11.7,37.1,23.7,8.2,10,34.9,33.2,-0.1,3.3,28.3,0.6,63.2,3.4,434.1,673.7,10.3,7.7,20.9,40.2,26.6,9.1,9,262.9,1.7,37.2,26,35 +Nordrhein-Westfalen,113,Kleve,,16,1232.1,306.9,151.6,282.3,249,17.5,3.7,7.6,12.2,36.3,22.8,8.7,10.4,35,28.7,4.7,8.1,29.8,0.5,42.4,5.6,402.5,653.7,11.2,5.5,27.1,45.9,19.1,8.5,9.2,242.7,4.7,32.2,24.9,38.1 +Nordrhein-Westfalen,114,Wesel I,Erluterungen siehe Vorbemerkungen,10,883.6,269.9,131.6,252.6,305,16.8,3.6,7.4,11.7,36.8,23.7,8,10.4,31.1,29.6,-0.9,5.8,29.1,0.4,60.5,3.7,398.2,653,11.1,5.9,23.9,45.2,22.1,9.6,9.6,237.2,1.4,36.5,24.5,37.6 +Nordrhein-Westfalen,115,Krefeld II - Wesel II,Erluterungen siehe Vorbemerkungen,3,175.2,250.9,121,223,1432,14.9,3.3,7.2,12.2,36.9,25.6,8,10.4,31.1,29.6,-0.9,0.7,32.3,0.4,60.5,2.6,479,653,11.1,5.9,23.9,45.2,22.1,9.6,9.6,237.2,1.4,36.5,24.5,37.6 +Nordrhein-Westfalen,116,Duisburg I,Erluterungen siehe Vorbemerkungen,1,123.4,260.6,126.8,222.3,2111,15.2,3.1,7.5,12.9,34.8,26.5,8.6,12.2,31.5,32.2,-4.3,0.2,39.1,0.3,77.6,1.7,504,540.7,9.9,10.7,25.1,38.6,21.1,14.7,15.7,305.9,0.4,33.9,25.4,40.3 +Nordrhein-Westfalen,117,Duisburg II,Erluterungen siehe Vorbemerkungen,1,109.4,243.8,119.3,199.1,2229,15.2,3.1,7.5,12.9,34.8,26.5,8.6,12.2,31.5,32.2,-4.3,0.2,39.1,0.3,77.6,1.7,504,540.7,9.9,10.7,25.1,38.6,21.1,14.7,15.7,305.9,0.4,33.9,25.4,40.3 +Nordrhein-Westfalen,118,Oberhausen - Wesel III,,2,124.7,289.8,140.8,255.3,2324,15.2,3.3,7.4,12.4,36.6,25.1,7.7,12.4,33.5,32.9,-4.1,0.3,21.3,0.3,38.6,1.6,464.2,569.4,10.1,10.5,24.8,39.7,22.2,13,13.7,263,0.5,25.5,24.7,49.4 +Nordrhein-Westfalen,119,Mlheim - Essen I,Erluterungen siehe Vorbemerkungen,2,115.9,257.2,123.1,233.4,2220,13.8,2.8,6.5,11.4,36.4,29.1,7.6,12.9,34.1,37.1,-8.4,0.4,22.3,0.4,59,1.7,522.9,629,8.8,4.4,18.9,38.2,35.3,9.9,10.4,308.7,0.6,32.8,28.2,38.3 +Nordrhein-Westfalen,120,Essen II,Erluterungen siehe Vorbemerkungen,1,67.7,246.4,120,208.6,3640,13.8,2.9,7.2,12.6,35.7,27.9,8.1,13,42.8,31.1,6.8,0.2,27.8,0.4,40.7,1.4,537.3,565.9,9.9,7.6,17.8,38.2,31.6,12.6,13.7,351.1,0.6,22.7,23.3,53.4 +Nordrhein-Westfalen,121,Essen III,Erluterungen siehe Vorbemerkungen,1,118.1,254.8,119.8,230.9,2158,13.8,2.9,7.2,12.6,35.7,27.9,8.1,13,42.8,31.1,6.8,0.2,27.8,0.4,40.7,1.4,537.3,565.9,9.9,7.6,17.8,38.2,31.6,12.6,13.7,351.1,0.6,22.7,23.3,53.4 +Nordrhein-Westfalen,122,Recklinghausen I,Erluterungen siehe Vorbemerkungen,3,165.1,230.7,111.8,208.8,1398,15.1,3.3,7.5,12.3,36.3,25.6,8.1,11.3,25.7,26.9,-4.4,1,25.3,0.4,51.9,1.7,464.3,597.4,10.9,7.6,20.3,43.1,25.6,12.6,13.7,211.3,1.1,30.2,23.2,45.5 +Nordrhein-Westfalen,123,Recklinghausen II,Erluterungen siehe Vorbemerkungen,5,388.2,261.4,127.2,237.6,673,15.7,3.4,7.4,12.2,36,25.2,8.1,11.3,25.7,26.9,-4.4,1.8,25.6,0.4,51.9,2.9,446.1,597.4,10.9,7.6,20.3,43.1,25.6,12.6,13.7,211.3,1.1,30.2,23.2,45.5 +Nordrhein-Westfalen,124,Gelsenkirchen,,1,104.9,270.1,130.4,233.8,2576,15.3,3.2,7.6,12.8,34.7,26.3,8.5,13.3,30.4,34.7,-9.1,0.2,15,0.4,49.9,1,512.1,518.2,10.3,8.9,26.9,37.8,21.9,18.2,19.9,267.5,0.5,32.6,21.3,45.5 +Nordrhein-Westfalen,125,Steinfurt I - Borken I,Erluterungen siehe Vorbemerkungen,12,976.5,272.1,135.7,252.4,279,19,4,8.6,13.4,33.9,21.1,9.6,8.9,27.2,23.7,4.2,9.4,24,0.7,79.8,5.9,380.9,651.5,13,5.9,21.2,44.7,24.5,8,8.1,265.7,1.3,39.6,26.3,32.8 +Nordrhein-Westfalen,126,Bottrop - Recklinghausen III,,3,307.7,277.1,134.3,252.2,901,16,3.5,7.7,12.2,36.2,24.4,8.1,11.7,33.7,33.8,-3.6,1.5,27.3,0.4,79.8,2.5,448.8,626.9,9.6,8.2,22.6,38.4,25.6,13.4,14.6,245.2,1.3,39.5,22.6,36.6 +Nordrhein-Westfalen,127,Borken II,,12,994.9,260.5,129.9,245.4,262,19.3,4,8.3,13.1,34.5,20.8,10,8.7,30.8,27.2,4.9,10.5,23,0.8,93.5,5.8,371.8,633.8,12.9,6.5,23.8,48.4,19.5,8.4,8.5,295.1,1.7,45.1,23.1,30.1 +Nordrhein-Westfalen,128,Coesfeld - Steinfurt II,,14,1258.9,246.6,120.9,236.4,196,19.2,3.9,8,12.4,35.8,20.7,9.1,8.7,35.8,30.1,6.1,12,27.7,0.5,48.5,4.6,359.1,660.3,12.5,4.3,19.9,48,25.4,7.8,7.9,226.8,2.4,34.1,23.9,39.5 +Nordrhein-Westfalen,129,Steinfurt III,Erluterungen siehe Vorbemerkungen,14,1091,252.3,124.3,238.9,231,18.6,3.9,7.9,12.6,34.9,22.1,9.6,8.9,27.2,23.7,4.2,9.6,25.9,0.7,79.8,4.4,382,651.5,13,5.9,21.2,44.7,24.5,8,8.1,265.7,1.3,39.6,26.3,32.8 +Nordrhein-Westfalen,130,Mnster,,1,302.9,270,126.4,249.6,892,14.1,2.7,9.5,17,34.7,21.9,9.7,8.6,56.5,55.2,2.4,2,26.2,0.3,39.2,2.7,503.7,593.1,10.7,6,15.1,35.9,39.2,9,9.3,470.6,1,17.3,20.4,61.3 +Nordrhein-Westfalen,131,Warendorf,,13,1317.3,283.6,139.4,262.3,215,18.1,3.8,8.2,12.8,34.6,22.4,9.7,9,27.2,27,0.9,10.7,29.5,0.7,97.7,4,399.1,654.3,11.5,6.7,26.3,44.2,20.7,8.7,9.1,271,1.9,45.7,20.6,31.9 +Nordrhein-Westfalen,132,Gtersloh,,11,864.5,314.9,155.5,286.7,364,18.3,3.6,8,13.3,34.7,22.1,10.1,8.4,32.5,31.8,2.4,8.3,19.9,0.9,141.1,5.2,412.6,690.2,11.4,4.8,27.1,46.3,19.7,9.6,9.8,366.6,1,49.2,21.3,28.4 +Nordrhein-Westfalen,133,Bielefeld,,2,293.1,339.6,161.9,297.8,1158,15.3,3,8.4,14.1,33.4,25.7,9.6,10.6,51.9,39.7,11.1,1.2,23.8,0.7,90.2,1.1,464.6,569.8,10.9,5.3,23.7,37.9,29,14,16.5,380.8,0.4,30.5,24.6,44.5 +Nordrhein-Westfalen,134,Herford - Minden-Lbbecke II,,10,514.8,304.4,146.4,284.9,591,16.5,3.5,7.4,12.2,34.2,26.2,8.9,11.2,30.8,30.6,-2.1,3.9,20.5,1.1,125.4,3.7,440.1,697.6,12,5.6,22.4,44.5,24.7,9.7,10,327.4,0.7,47.1,21.7,30.3 +Nordrhein-Westfalen,135,Minden-Lbbecke I,,10,1087.2,273.2,133.7,259.4,251,17.4,3.7,7.9,12.3,33.9,24.9,9.4,10.7,30.1,30,-1.1,10.3,23.2,0.8,97.2,4.4,391.3,707.8,11.9,7.3,24.9,40.9,23.5,10.4,10.6,328.8,0.7,39,21.8,38.5 +Nordrhein-Westfalen,136,Lippe I,,10,759.9,230.6,111.7,217.1,303,17,3.6,7.7,11.8,33.7,26.1,9.5,11.1,28.7,30.7,-3.7,4.1,42.4,0.8,85.5,3.2,433,665.2,11.5,8.2,27,41.6,21.6,10.7,11.7,272.1,1.1,41.3,19.8,37.7 +Nordrhein-Westfalen,137,Hxter - Lippe II,,16,1686.4,286.2,139.7,269.2,170,17.7,3.8,8.1,12.2,33.7,24.4,8.8,10.7,28.9,30.4,-3.4,8.7,32.5,0.6,65.4,2.8,414.6,675.7,14.5,5.2,25.8,43.7,23.6,9.4,9.8,244.9,1.4,37.9,23.5,37.2 +Nordrhein-Westfalen,138,Paderborn,,11,1312.8,323.6,159.9,301.2,247,18.3,3.9,9,14.1,34.5,20.2,10.4,8.3,28.4,27.9,2.7,8,24.9,0.6,83.5,4.8,411.2,639.1,12.9,5.7,27.8,43.9,20.4,9.4,10.6,316.4,0.9,37.4,21.6,40.1 +Nordrhein-Westfalen,139,Hagen - Ennepe-Ruhr-Kreis I,,5,323.3,303.8,145.9,266.7,940,15.4,3.2,7.3,12,34.9,27.1,9.1,11.9,29.9,32.5,-5.3,1.1,21.3,0.7,81,2.1,498,578.9,12.6,6.3,23.1,37.4,27.1,12.8,12.9,325,0.4,32,26.3,41.2 +Nordrhein-Westfalen,140,Ennepe-Ruhr-Kreis II,,5,245.4,239.8,115.1,221.3,977,14.6,3.1,7.1,12,36.7,26.5,7.8,12.3,31.2,33.3,-6.6,1.5,18.1,0.9,100.2,2.4,480.7,650.3,9.9,6.2,22.2,43.2,24.8,10,9.9,274.2,0.7,43.6,20.2,35.5 +Nordrhein-Westfalen,141,Bochum I,Erluterungen siehe Vorbemerkungen,1,103.1,293.1,142.5,258.3,2842,13.1,2.8,7.6,13.8,36.6,26,7.7,11.8,37.1,37,-4.1,0.2,27,0.4,78.6,1.3,489.9,568.4,9.5,6.9,20.1,39.8,30.1,13.1,12.8,321.8,0.3,31.7,20.9,47 +Nordrhein-Westfalen,142,Herne - Bochum II,Erluterungen siehe Vorbemerkungen,2,93.8,266.9,130.3,231.4,2847,14.5,3.1,7.4,13.2,35.7,26.2,7.9,12.5,30.8,30.7,-4.5,0.2,16.4,0.3,74.4,1.8,485.2,517.4,9.8,8.8,22,39.3,25.3,15.9,16.4,271.4,0.2,33.9,22.6,43.3 +Nordrhein-Westfalen,143,Dortmund I,Erluterungen siehe Vorbemerkungen,1,126.1,286.2,138.9,246.1,2269,14.4,3,7.9,13.4,35.4,25.8,8.5,11.8,37.1,35.8,-2,0.3,31.8,0.3,37.3,3,513.1,547.2,9.7,8.6,22.4,38.4,26.3,16.1,17.2,325.8,0.5,21,24,54.5 +Nordrhein-Westfalen,144,Dortmund II,Erluterungen siehe Vorbemerkungen,1,154.2,302.5,148.5,248.8,1961,14.4,3,7.9,13.4,35.4,25.8,8.5,11.8,37.1,35.8,-2,0.3,31.8,0.3,37.3,3,513.1,547.2,9.7,8.6,22.4,38.4,26.3,16.1,17.2,325.8,0.5,21,24,54.5 +Nordrhein-Westfalen,145,Unna I,,7,347.1,277.3,136.6,253.8,799,16,3.5,7.7,12.3,36.5,24,8.3,9.9,70.8,75.3,-6.1,1.5,39.3,0.5,57.4,2.6,423.6,606.9,10.9,6.5,24.7,38.2,27.9,12.7,13.5,231.7,0.9,32.7,30.8,35.6 +Nordrhein-Westfalen,146,Hamm - Unna II,,4,421.8,334,164.2,295.1,792,16.7,3.4,8,13,35,23.9,9.2,9.8,40.8,38.1,2.1,2.2,29,0.4,64.2,3.6,441.2,563.4,11.2,6.5,25.1,43.7,21,14,14.9,278.5,1,33.2,22.8,43 +Nordrhein-Westfalen,147,Soest,,14,1327.4,309,151.6,286.6,233,17.1,3.7,8,12.7,35,23.5,9.1,10.8,27.9,26.6,-0.4,6.9,36.1,0.7,100.9,4.8,418,657.6,11.9,6.1,23.9,42,25.2,10,10.7,295.7,1.3,42.7,21.6,34.4 +Nordrhein-Westfalen,148,Hochsauerlandkreis,,12,1958.8,277.7,136.9,258.8,142,17.4,3.7,7.9,12.5,33.8,24.8,9.2,10.6,25.7,29.7,-5.4,7.7,24.3,1.1,110,3.8,433.4,672.6,12.5,8.5,23.4,45.7,20.2,8.8,9.1,305.6,1,47.8,18.9,32.3 +Nordrhein-Westfalen,149,Siegen-Wittgenstein,,11,1131.6,292.9,144.4,267.3,259,16.1,3.6,8.3,12.6,35,24.5,8.7,10.5,25.1,26.7,-3.3,4,13.6,1.1,123.2,3.1,429.9,680.5,13.2,5.7,20.4,41.8,27,8.6,9.5,333.2,0.4,44.4,21.3,33.9 +Nordrhein-Westfalen,150,Olpe - Mrkischer Kreis I,,13,1158.8,298.8,147.9,266.3,258,17.4,3.8,8.1,12.9,34.8,23.1,9.2,9.1,24.5,24.5,0.1,4.3,20.5,1.5,157.3,3.6,418.4,667.9,12.1,9.7,27.9,39.2,22,7.6,7.5,323.1,0.7,57.1,17.7,24.5 +Nordrhein-Westfalen,151,Mrkischer Kreis II,,9,610.9,294.7,144.4,260,482,16.7,3.7,7.7,12.2,35.2,24.6,8.7,10.8,29.5,32.6,-5.2,1.8,27,1.5,153.5,2.4,442.1,642.1,11.1,10.3,25.3,40.4,21.8,9.8,10.6,323.7,0.5,57.1,15.4,27 +Nordrhein-Westfalen,0,Land insgesamt,,396,34083.5,18075.4,8803.3,16130.8,530,15.9,3.3,7.7,13,35.7,24.4,8.8,10.6,37.8,35.9,0.2,3,27.9,0.6,76.2,3,457.4,622.6,10.8,7,22.7,40.5,26.1,10.9,11.4,311.6,0.8,33.1,23.7,42.4 +Sachsen,152,Delitzsch - Torgau-Oschatz - Riesa,,43,2257,275.8,136,269.2,122,11.8,4.5,9.3,11.3,37,26.1,7.3,10.6,27.5,32.8,-8.7,2.4,195.8,0.7,48.5,2.9,487.1,660.9,15.1,11.4,13.9,52.1,22.6,18.9,20.7,283.6,4.9,30.3,25.3,39.5 +Sachsen,153,Leipzig I,Erluterungen siehe Vorbemerkungen,1,170.9,246.3,119.5,232,1441,10.5,3.3,9.7,14.1,35.1,27.3,7.9,11.1,46.8,38.2,5.5,0.2,114.2,0.3,25.7,2,640.2,441,11.6,12.5,11.5,44,32.1,19.7,19.8,383.5,0.4,17.8,22.3,59.5 +Sachsen,154,Leipzig II,Erluterungen siehe Vorbemerkungen,1,126.7,252.1,121.3,235.7,1990,10.5,3.3,9.7,14.1,35.1,27.3,7.9,11.1,46.8,38.2,5.5,0.2,114.2,0.3,25.7,2,640.2,441,11.6,12.5,11.5,44,32.1,19.7,19.8,383.5,0.4,17.8,22.3,59.5 +Sachsen,155,Leipziger Land - Muldentalkreis,,46,1645.1,281.6,138.2,277.5,171,11.9,4.2,8.7,11.3,37.7,26.2,6.7,11.1,30.5,32.5,-6.4,2.4,120.7,0.6,37.2,2.8,484.4,655.3,13.7,10.4,13.4,53.1,23.1,19.1,20.4,243.9,3.8,34.4,22.5,39.3 +Sachsen,156,Kamenz - Hoyerswerda - Groenhain,Erluterungen siehe Vorbemerkungen,53,2012.6,257.5,127.4,252.5,128,12.2,4.6,9.4,11.1,36.2,26.5,7.1,11.2,23.9,31.7,-11.9,2.7,88.2,0.8,63.1,2.5,475.1,655.8,16.4,11.3,13.9,55.6,19.2,19.7,20.4,288.4,2.8,37.8,21.2,38.2 +Sachsen,157,Lbau-Zittau - Grlitz - Niesky,,48,1281,245.6,119.3,240.6,192,11.6,4.2,9,10.4,35.2,29.5,7,13.4,22.1,30,-14.3,2.1,97.5,0.6,42.7,1.1,533.7,604.5,15,9.8,13,52.9,24.3,24.6,26.2,272.6,2.5,29.3,19.9,48.3 +Sachsen,158,Bautzen - Weiwasser,Erluterungen siehe Vorbemerkungen,48,1786.2,208.4,102.7,205.1,117,11.9,4.6,9.6,11.1,36.6,26.2,7.2,11.3,22.4,30.4,-12.2,2.2,105,0.6,47.2,1.6,474.4,669.3,15.7,8.8,14.6,54.4,22.2,21.5,22.8,271.4,3.4,34.4,21.2,40.9 +Sachsen,159,Schsische Schweiz - Weieritzkreis,,43,1653.6,264.3,130.3,259.9,160,11.9,4.2,8.8,11.4,36.2,27.5,7.4,11,28,30.9,-6.6,2.8,79.5,0.6,42.7,2.7,495.3,660,12.5,10,11.1,57,22,17.1,17.6,264.6,4,33.9,21.9,40.2 +Sachsen,160,Dresden I,Erluterungen siehe Vorbemerkungen,1,81.5,266.9,127.4,252.6,3276,11.2,3.5,10.3,14.6,33.7,26.7,9.3,10,44.1,36.3,7.1,0.4,26.3,0.5,50.3,2,598.3,495,13.1,8.3,10.9,51.5,29.3,14.7,15.4,426.8,0.5,21.4,21.2,56.9 +Sachsen,161,Dresden II - Meien I,Erluterungen siehe Vorbemerkungen,7,453.3,306.4,151.2,294.1,676,12,4,8.7,11.2,37,27,7.7,11.2,29.9,30.7,-4.3,2,54.5,0.7,64.6,3.2,461.1,625.4,13.3,10.4,11,56.2,22.5,16.6,17.1,307.3,3.5,36.9,23.6,36 +Sachsen,162,Freiberg - Mittlerer Erzgebirgskreis,,50,1509,237.3,116.7,233.3,157,12,4.2,9.4,11.3,35.6,27.4,7.3,11.7,21.2,26.6,-9.9,3.1,94.5,0.9,60.5,1.8,482.6,668.1,15,9.5,12.1,57.3,21.2,18.2,19.8,282.9,4.7,39.7,19.4,36.2 +Sachsen,163,Dbeln - Mittweida - Meien II,,46,1622.3,270.3,131.8,266.6,167,11.3,4.1,8.9,11.1,35.8,28.7,6.8,12.3,21.5,28.3,-12.3,3.3,102.8,1,64.9,2.2,517.3,683.6,13.6,8.9,13.8,55.7,21.6,19,20.7,279.4,3.9,38.3,22.6,35.1 +Sachsen,164,Chemnitz,,1,220.9,248.4,118.6,237.4,1125,10.1,3.4,8.9,11.2,36.3,30.1,7.1,12.4,27.4,32.8,-10.8,0.5,69.4,0.6,53.6,2.9,641.3,592.4,12,10.5,10.4,50,29.1,17.9,19.2,421.8,0.8,23.2,22.1,53.8 +Sachsen,165,Chemnitzer Land - Stollberg,,30,602,226.4,109.7,223.3,376,11.1,3.9,8.6,10.9,36.6,28.8,6.9,12.9,23.6,26.9,-9.2,2.2,56,0.8,61.3,2.9,523.4,655.3,13.5,8.6,10.5,56,25,17.9,19,271.4,2.8,41.3,21.5,34.4 +Sachsen,166,Annaberg - Aue-Schwarzenberg,,39,966.4,217,105.1,214.6,225,11.6,4,9.2,10.8,36.7,27.7,7.1,13.2,16.5,24.1,-13.7,2.5,34.9,0.9,65,2.8,520,645.3,13.6,9.6,16.2,57.4,16.8,19.7,21.1,287.5,2.2,41.2,19.2,37.4 +Sachsen,167,Zwickauer Land - Zwickau,,18,613.6,228.7,110.1,224.7,373,11.1,3.9,8.5,11,36.6,28.8,7,13.2,27.1,31.1,-10.1,2,59.2,0.5,74.4,3.1,577.7,632.6,12.9,11.7,10.9,53.1,24.3,18.4,20.6,335.6,2.3,34.4,20.6,42.8 +Sachsen,168,Vogtland - Plauen,,47,1412,263.2,126.5,258.8,186,11,3.7,8.3,10.9,36.5,29.5,6.7,13.8,22.3,25.6,-10.3,3,57.6,0.9,67.7,2.1,558.6,678.4,12.6,8.7,14.5,54.2,22.6,16.8,18,297.6,2.6,37.6,20.6,39.2 +Sachsen,0,Land insgesamt,,519,18413.9,4296.3,2091.8,4177.8,233,11.4,4,9.2,11.8,36,27.7,7.4,11.7,29.3,31.4,-6.4,1.9,109.8,0.7,52.1,2.3,541.4,608.8,13.6,10.1,12.6,53.3,24.1,18.6,19.7,318.5,2.3,30.4,21.6,45.8 +Hessen,169,Waldeck,,29,2166.6,250.1,122,238.8,115,15.9,3.5,7.3,12,35.2,26,7.9,11.3,34.1,33.6,-3,10.1,28.8,0.5,96.5,3.7,446.7,728.7,9.9,9.1,26.1,44.9,19.3,9.1,9.5,269.4,1,44.8,20.4,33.7 +Hessen,170,Kassel,,12,357.5,297.3,142.2,269,832,14,2.9,7.9,13.4,36,25.8,8.4,11.5,65.6,61.7,0.8,0.2,17.3,0.4,76.6,2.6,504.7,526,11.5,12.7,21.9,32.6,31.4,16.2,16.9,457.6,0.5,22.2,24.3,53 +Hessen,171,Werra-Meiner - Hersfeld-Rotenburg,,36,2121.8,238.5,117,228.2,112,14.8,3.4,7.4,11.8,34.7,27.9,7.7,12.6,27.9,29.8,-6.8,11.1,28.1,0.7,75.5,2.4,450.6,738.8,10.7,7.8,31.6,39.9,19.6,10.5,10.7,280,1.2,37.6,24.7,36.5 +Hessen,172,Schwalm-Eder,,38,2262.6,252.4,125.2,242.2,112,16.1,3.6,7.8,12.4,35.2,25,7.9,11.6,30,30.6,-4.3,11.7,30.5,0.6,61.6,3,405.2,757,12.3,11.6,28.7,35.9,22.1,8.9,9.4,228.5,1,34.6,24.8,39.6 +Hessen,173,Marburg,,22,1262.5,253.7,124.4,229.6,201,15.4,3.2,9.4,14.1,35.8,22,8.4,9.1,38.6,38.2,-0.3,8.1,23.9,0.6,99.6,3.5,404.1,641.9,10.5,9.5,23.9,37.7,27.6,7.4,7.6,298.7,0.8,39.2,15.7,44.3 +Hessen,174,Lahn-Dill,,25,1153.4,284.2,139.2,262,246,16.4,3.5,7.8,12.5,35.3,24.6,8.6,10.7,26.6,27,-2.4,3.6,23.4,1,111.8,3.2,426.8,704.6,10.4,7.1,27.5,47.4,17,9.2,10.1,302.4,0.6,48.6,19.2,31.5 +Hessen,175,Gieen,,27,1586.6,301.6,147.8,279.5,190,15.4,3.4,8.6,13.6,35.9,23.1,8.4,10.1,36.9,34.6,0.7,8.2,31.7,0.6,59.8,3.4,451.3,699.4,11.3,7.9,23.3,43.3,24.1,9.8,10.5,293.6,0.8,30.7,24.3,44.2 +Hessen,176,Fulda,,35,2437.2,313.5,154.3,297.5,129,16.9,3.5,7.9,12.8,34.4,24.5,9.5,9.9,26,23.1,2.4,12.6,23.1,0.8,88.5,3.6,424.6,722.3,10.6,7.4,28.1,40.3,23.2,8.1,8.6,325.4,0.6,37.9,24.7,36.8 +Hessen,177,Hochtaunus,,19,812.6,248.9,120.5,222.4,306,15.8,3,7,12.4,37.5,24.2,9.1,10.2,52.3,52.5,-1.3,1.7,29.3,0.4,53.7,3.9,453.3,733,9.1,7.8,15.5,33.8,41.6,6.4,6.1,320.2,0.6,24.5,24.3,50.6 +Hessen,178,Wetterau,,28,1240.9,330.5,162.1,303.3,266,16.3,3.2,7.3,12.9,37.1,23.2,8.9,9.8,42,40.7,0.4,4.9,36.5,0.5,47.5,3.4,411.3,692.9,10,9.4,21.6,37.4,30.7,8,8.4,241.9,1,29.9,24.5,44.6 +Hessen,179,Rheingau-Taunus - Limburg,,27,1171.3,296.7,145.5,269.7,253,16,3.2,7.5,12.6,37.3,23.4,8.8,9.8,39.7,39.2,-0.6,5.3,26.3,0.5,43.1,4.3,431.6,719.4,10.3,11,26,37.5,25.2,7.5,8.5,222.9,1.3,30.6,24.3,43.8 +Hessen,180,Wiesbaden,,1,203.9,274.1,132.2,218.1,1344,14.1,2.6,7.4,15.1,36.3,24.5,10,10.9,55,52.5,1.6,0.9,21.4,0.3,51.1,2.1,501.8,746.9,9,9.3,19,29.5,40.3,10.3,11,436.3,0.5,17.9,20.4,61.2 +Hessen,181,Hanau,,22,840.6,333.7,163.5,298,397,15.6,3.2,7.4,13.1,37.4,23.4,8.7,9.7,35.6,34.3,0.2,4.2,26.3,0.6,68.9,3.3,449.3,686.9,9.9,10.4,25.3,42,21.9,7.7,8.2,269.8,0.9,36.7,24.2,38.2 +Hessen,182,Main-Taunus,,15,270.5,267.9,129.8,234.7,990,15.1,2.7,6.6,13.3,37.6,24.8,9.6,8.7,55.6,55.9,0.7,1.4,22.5,0.4,44.2,2.6,465.6,740.9,6.9,8.2,20.9,43.9,26.3,5.7,5.3,338.7,0.6,19.6,31.3,48.5 +Hessen,183,Frankfurt am Main I,Erluterungen siehe Vorbemerkungen,1,85.6,320.8,158.3,242.9,3746,12.7,2.4,7.4,16.8,38.1,22.7,10,9.9,72.3,73,-0.6,0.3,22.7,0.3,80.1,2.7,533.8,592.2,7.8,8.9,19.2,31.5,38,10,9.8,717.2,0.2,13.4,29,57.4 +Hessen,184,Frankfurt am Main II,Erluterungen siehe Vorbemerkungen,1,162.7,326.1,157.3,264.6,2004,12.7,2.4,7.4,16.8,38.1,22.7,10,9.9,72.3,73,-0.6,0.3,22.7,0.3,80.1,2.7,533.8,592.2,7.8,8.9,19.2,31.5,38,10,9.8,717.2,0.2,13.4,29,57.4 +Hessen,185,Gro?Gerau,,14,453.1,252.3,125.6,208.4,557,15.6,3.1,8,13.8,37,22.6,9.5,9.7,48.4,49.8,-1.6,1.8,39.6,0.4,122.1,3.5,439.6,736.3,9,8,22.7,47.3,21.3,8.1,8.2,363.4,0.5,39.7,27.2,32.7 +Hessen,186,Offenbach,,9,241.4,344,169.9,280.1,1425,14.9,2.8,7.8,14.3,36.9,23.4,9.6,8.7,55.2,56.6,-0.5,0.5,27.8,0.5,65.6,1.9,478.1,657.9,9,10.4,23.3,34.8,30,9.7,9.7,322.7,0.5,28.7,31.5,39.2 +Hessen,187,Darmstadt,,15,449.3,323.5,159.8,282.6,720,14.6,2.9,7.8,14.3,37.7,22.7,9.1,9.3,56.3,53.5,2.7,1.9,32.7,0.5,80.7,3.4,478.2,674.6,10.4,9.2,20.3,35.3,33.1,8.1,8.4,335,0.7,32.4,22.1,44.8 +Hessen,188,Odenwald,,29,1115.1,321.9,159.4,290.3,289,16.3,3.4,7.6,12.8,37.5,22.5,8.5,10.9,36.3,32.7,1.2,7.7,22.6,0.6,80.7,3.8,413.6,716.3,11.3,9.8,27.2,45.6,17,8.8,9.6,238.3,0.7,48.4,16.7,34.1 +Hessen,189,Bergstrae,,22,719.6,266.3,130.6,240.9,370,15.6,3.3,7.3,12.3,37.3,24.2,8.2,10.4,37.6,34.1,1.3,3.6,25,0.6,52.8,4.2,434,725.5,10.2,4.8,24.5,38.5,31,8,8.5,232.7,0.9,36.5,26.6,36.1 +Hessen,0,Land insgesamt,,426,21114.8,6097.8,2986.5,5403.1,289,15.2,3.1,7.6,13.5,36.6,23.9,8.9,10.1,45.7,44.9,-0.4,4.5,27.9,0.5,73,3.2,455.4,689.5,9.8,9.1,23.7,38.6,27.4,8.9,9.2,346.5,0.6,28.5,25.2,45.7 +Thringen,190,Eichsfeld - Nordhausen - Unstrut-Hainich-Kreis I,,134,1908.7,256.7,127.5,250.9,134,12.8,4.5,10,12,36.2,24.5,7.4,10.4,18,24.4,-9.4,2.8,144.5,0.8,54.2,2.4,448.4,637.9,14.9,12.7,21.4,43.5,22.3,18.7,19.6,278.6,2.9,37,20.9,39.3 +Thringen,191,Eisenach - Wartburgkreis - Unstrut-Hainich-Kreis II,,104,2126.2,247.5,122.8,243.9,116,12.1,4.2,9.5,11.9,36.8,25.6,7.7,11.6,23.7,30.1,-10.3,2.8,154,0.9,80.2,2.5,462.3,639.4,13.9,11.6,18,45.5,24.9,15.5,16.1,305.3,3.7,41,19.3,36 +Thringen,192,Kyffhuserkreis - Smmerda - Weimarer Land I,,175,2550.6,249.2,123.3,246.1,98,12.1,4.4,9.4,11.6,38.1,24.4,7.2,10.6,24.5,32.3,-11.2,3.3,213,0.7,44.8,2.6,457.6,660.6,13.8,14,20.6,43.1,22.3,21.6,22,246.8,5,36.4,21.4,37.2 +Thringen,193,Gotha - Ilm-Kreis,,109,1778.9,262.9,129.8,257.2,148,11.6,4.1,9.5,11.6,37.3,25.9,7,11.4,23.9,28.4,-8.9,1.3,222.8,0.9,64.9,2.4,488.4,626.2,12.8,11.4,17.1,43.8,27.8,17.7,18.3,290.7,3,38.6,23.1,35.4 +Thringen,194,Erfurt - Weimar - Weimarer Land II,,13,445.2,273.9,132.6,265.5,615,11.7,3.9,10.2,13.5,36.4,24.3,8.4,10.2,48.5,39.1,7.6,0.5,135.7,0.5,36.4,3.9,548.8,524.4,13,12.6,15.1,37.7,34.6,19.2,20.7,443.7,0.8,17.4,22.6,59.2 +Thringen,195,Gera - Jena - Saale-Holzland-Kreis,,97,1083.4,299.1,146.5,290.9,276,11,4,10.3,12.6,36.9,25.3,7.1,9.8,47.4,45.6,-0.9,1.2,130,0.6,51.1,3.2,528.8,568.5,13.8,11.5,18,40.4,30.1,16.6,17.1,351.9,1.6,25.4,20.9,52 +Thringen,196,Greiz - Altenburger Land,,106,1412.6,225.9,110.3,222.9,160,11,4,8.6,10.8,37.3,28.3,6.3,12.1,19.7,27.9,-14,2.9,128.5,0.8,49.5,2,529.8,667.5,13.1,10.1,19.5,45.3,25.1,20.5,21.5,250.5,4.1,38.5,23.5,33.9 +Thringen,197,Sonneberg - Saalfeld-Rudolstadt - Saale-Orla-Kreis,,139,2616.4,286.2,140.2,280.5,109,11.2,4.2,8.9,11.3,36.9,27.5,6.5,12,17.2,24.8,-13.2,2.5,128.7,1,79.2,1.7,483.6,678.8,13.7,10.7,18.7,47.6,23,16.3,17.3,291.9,4,43.9,18.6,33.6 +Thringen,198,Suhl - Schmalkalden-Meiningen - Hildburghausen,,121,2250.2,253.8,125.5,249.6,113,11.3,4.3,9.6,11.5,37.6,25.8,6.4,11.3,21.4,29,-12.6,1.9,163.3,1,70.4,2.4,468.4,688.1,14.4,12,18.7,46.7,22.6,14.7,15.5,303.3,2.7,37.6,19.1,40.5 +Thringen,0,Land insgesamt,,998,16172.1,2355.3,1158.5,2307.5,146,11.6,4.2,9.6,11.9,37,25.7,7.1,11,27.7,31.7,-7.9,2.1,159.6,0.8,59.7,2.6,491.2,631,13.7,11.8,18.5,43.8,25.9,17.7,18.5,309.5,2.9,33.7,21,42.4 +Rheinland-Pfalz,199,Neuwied,,181,1268.8,322.9,158.4,302.8,255,16.2,3.6,7.8,11.8,35.5,25,8.7,11.1,38.5,36.3,-0.1,10.2,25.1,0.9,83.7,3.9,437.1,702.2,11,9,35.6,37.6,16.8,9.3,9.9,265.1,0.8,44.4,22.1,32.7 +Rheinland-Pfalz,200,Ahrweiler,,131,1337.1,251.6,123.5,237.7,188,16.3,3.5,7.7,11.5,35,25.8,8,11.2,41.4,37.2,0.9,4.2,24.7,0.6,54.3,5.4,441.6,705.7,10.5,10.4,33.6,35.1,19.7,8.3,8.9,232.8,1.5,33.7,26,38.9 +Rheinland-Pfalz,201,Koblenz,,63,635,254.6,122.9,235.2,401,15.7,3.3,7.5,12.4,35.3,25.8,9.2,12.3,60.9,60.4,-2.6,4.3,23.7,0.4,65.1,4.3,461.3,645.4,12.8,9,22.3,28.8,37.8,9,9.8,568.9,0.4,17.5,25.8,56.3 +Rheinland-Pfalz,202,Mosel/Rhein-Hunsrck,,278,2297.1,229.7,113.2,220.7,100,16,3.4,7.5,11.9,36.3,24.9,8.2,11.1,33,30.2,0,6.5,33.6,0.6,67.6,3.9,435,769,11.9,8.6,34,41.2,15.5,7.7,8,273.8,1.5,38.5,23.7,36.2 +Rheinland-Pfalz,203,Kreuznach,,215,1640.4,247.5,120.9,230.9,151,15.8,3.5,7.9,11.7,34.5,26.6,8.1,11.8,33.5,30.2,-0.5,10.7,21,0.6,63.9,4.4,468.2,699.8,10.6,9.3,37.5,29.3,22.6,10,10.3,269.4,0.8,35.1,22.6,41.5 +Rheinland-Pfalz,204,Bitburg,,400,3100.7,216.6,107,206.8,70,16.8,3.6,7.8,12,35,24.8,8.3,11.1,32.4,30.9,-1.3,18,26,0.7,63.5,5.1,433.6,803.6,12.4,7.2,34.9,33.7,23.2,6.8,7.2,246.3,1.4,40.4,23.9,34.3 +Rheinland-Pfalz,205,Trier,,104,1208.1,239.8,116.2,224.2,198,14.6,3,9.3,13.7,34.1,25.3,8.6,10.4,48.4,45,1.6,14.6,11.7,0.5,56.5,5,486.7,675.1,11,8.1,28,36.4,26.6,7.9,8.1,296.9,1,28.9,24.4,45.7 +Rheinland-Pfalz,206,Montabaur,,297,1508.3,278.7,137.8,260.8,185,17.4,3.7,7.9,12.2,35.4,23.4,8.6,11.3,39,35.5,0.9,5.2,25.6,0.9,71.2,5.5,417.6,733.1,10.8,9.4,37.6,34.5,17.7,7.5,8,247.4,1,43.6,21.8,33.5 +Rheinland-Pfalz,207,Mainz,,42,524.2,329,160.3,283.8,628,14.5,2.9,8.1,14.6,36.1,23.8,9.2,9.2,56.1,54.8,1.3,3.7,21.4,0.4,60.7,3.5,494.2,754.2,9.7,8.2,26.7,29.3,33.9,7.5,7.9,357.1,0.9,22.7,22.9,53.5 +Rheinland-Pfalz,208,Worms,,95,876.6,265.2,130.6,244.8,303,15.7,3.4,7.6,12.3,36.8,24.2,9,9.9,47.3,43.2,3.2,8.7,15.1,0.4,43,3.4,458.7,700.5,12.1,6.9,32.1,37,21.6,8.7,9.2,239.1,1.7,30.9,26,41.3 +Rheinland-Pfalz,209,Ludwigshafen/Frankenthal,,20,314.8,311.5,153.8,263.1,989,14.8,3.1,7.6,12.8,36.1,25.6,8.2,10.3,50.3,46.8,1.3,1,38.2,0.4,158,2.4,489.6,631.1,9.7,11.7,34.1,30.2,22.5,8.9,9.6,346.4,1.6,51.2,16,31.2 +Rheinland-Pfalz,210,Neustadt - Speyer,,57,866,287.4,140.1,266.6,332,16.2,3.4,7.5,12.1,37.4,23.5,8.3,11,47.1,43.5,1,9.1,19.1,0.5,46.4,4.4,445.1,707,11,9,25.2,30.9,33.2,7.2,7.9,269.4,1.5,27.4,23.6,47.4 +Rheinland-Pfalz,211,Kaiserslautern,,208,1696,309.5,153.2,288.2,182,15.5,3.4,7.9,12.2,36.4,24.6,8.3,11.6,44.8,43.7,-2.1,9.9,17.3,0.5,87.1,4.6,462.9,684.5,13.1,7.6,28.9,36.7,25,10.1,11,304.5,0.5,33.7,19.2,46.6 +Rheinland-Pfalz,212,Pirmasens,,108,1388.3,239,117.4,225.6,172,16.2,3.5,7.6,11.9,36.5,24.2,7.6,11.8,39.9,40.1,-4.3,12.4,19.6,0.6,60.2,3,458.7,706,9.3,9.6,35.5,36.3,17.4,10.7,11.3,229.4,0.9,35.9,22.8,40.5 +Rheinland-Pfalz,213,Sdpfalz,,107,1186,278.1,136.6,258.3,234,16.4,3.5,7.8,12.2,36.7,23.3,8,9.7,45.8,42.1,1.9,4.7,25,0.5,79.5,5.3,462.1,738.3,11.8,10.9,29.3,39.3,19.3,7.5,7.9,276.7,1.4,38.6,23.8,36.1 +Rheinland-Pfalz,0,Land insgesamt,,2306,19847.4,4061.1,1992,3749.5,205,15.8,3.4,7.8,12.4,35.9,24.7,8.4,10.8,43.7,41,0.2,8.1,21.8,0.6,73.3,4.3,456.8,710.9,11,9.1,32,34.7,22.8,8.5,9,286.5,1.1,35.2,22.5,41.1 +Bayern,214,Alttting,,55,1374.7,220.3,107.9,206.1,160,16.8,3.5,8,12.6,35.3,23.9,8.8,10.7,36,32.7,1.3,17.3,21.6,0.7,114.5,4.7,428.6,728.9,11.3,14.7,36.5,32.7,16.1,8.2,8.7,305.8,0.7,51.2,17.9,30.2 +Bayern,215,Erding - Ebersberg,,47,1420.2,245,121.8,226,173,18,3.2,7.5,13.9,37.1,20.3,9.5,7.9,55.7,49.6,7.7,15.4,23.4,0.4,35.5,6.2,394.3,731.8,9.8,7.8,35.2,37.5,19.5,4.8,5,224.7,1.6,28.3,32.3,37.7 +Bayern,216,Freising,,43,1560,274.7,138.1,247.9,176,17.7,3.4,8.2,14.6,37.3,18.9,10.2,7.4,53.7,50.7,5.8,15.4,21.7,0.5,64.5,7.2,393.6,750.8,10.4,8.6,38,37.6,15.8,5.7,5.6,338.3,1.2,30.4,40.2,28.1 +Bayern,217,Frstenfeldbruck,,40,1013.8,332.4,163,298.6,328,16.3,3,7.2,13.3,37.9,22.3,9.2,8.3,49.5,46.4,4,6.2,30.1,0.4,32.6,6.1,432.4,668.6,8.8,6.7,36.3,29.6,27.4,5.8,6.1,196.3,1.2,31.2,28.1,39.4 +Bayern,218,Ingolstadt,,49,2087.5,334.6,166.3,303.2,160,17.3,3.6,8.6,13.8,34.9,21.8,10,8.7,47.3,42.9,5.7,13,25,0.6,154.9,5.9,412.6,772.2,12.1,8.3,36.4,38.7,16.6,6.5,6.9,371,0.6,52.2,17.1,30 +Bayern,219,Mnchen-Nord,Erluterungen siehe Vorbemerkungen,1,87.5,313.3,153.2,229.5,3581,12.7,2.3,7.9,17.3,36.5,23.3,10.2,9.1,73.2,63.7,10.6,0.2,33.3,0.3,101.6,2.9,572.2,630.3,8.8,8.9,28.1,35.3,27.7,7.6,7.4,531.5,0.3,23.8,20.2,55.7 +Bayern,220,Mnchen-Ost,Erluterungen siehe Vorbemerkungen,1,79.8,324.2,156.2,250.2,4065,12.7,2.3,7.9,17.3,36.5,23.3,10.2,9.1,73.2,63.7,10.6,0.2,33.3,0.3,101.6,2.9,572.2,630.3,8.8,8.9,28.1,35.3,27.7,7.6,7.4,531.5,0.3,23.8,20.2,55.7 +Bayern,221,Mnchen-Sd,Erluterungen siehe Vorbemerkungen,1,52.5,291.2,138.2,225.4,5546,12.7,2.3,7.9,17.3,36.5,23.3,10.2,9.1,73.2,63.7,10.6,0.2,33.3,0.3,101.6,2.9,572.2,630.3,8.8,8.9,28.1,35.3,27.7,7.6,7.4,531.5,0.3,23.8,20.2,55.7 +Bayern,222,Mnchen-West/Mitte,Erluterungen siehe Vorbemerkungen,1,90.7,320.5,155.5,246.3,3535,12.7,2.3,7.9,17.3,36.5,23.3,10.2,9.1,73.2,63.7,10.6,0.2,33.3,0.3,101.6,2.9,572.2,630.3,8.8,8.9,28.1,35.3,27.7,7.6,7.4,531.5,0.3,23.8,20.2,55.7 +Bayern,223,Mnchen-Land,,30,683.3,313.7,154.7,273.9,459,15,2.6,7.3,13.7,37.9,23.5,9.2,8.7,77.4,75,2.8,2.2,30.2,0.8,91,9.4,452.5,764.9,7.5,6.1,24,31.5,38.4,5.3,5.2,517.5,0.7,24.9,28.8,45.6 +Bayern,224,Rosenheim,,47,1476.7,305.2,149.6,279,207,16.9,3.3,7.6,13.2,36.2,22.9,9.1,9.9,49.7,45.1,3.8,12.6,18.1,0.5,68,4.6,425,720.3,11.1,9.3,33.7,37.9,19.1,6.8,7.4,292.4,1.1,35.3,25,38.6 +Bayern,225,Starnberg,,51,2446.2,334.4,160.7,304.8,137,15.9,3,7.4,12.5,36.6,24.5,9,9,52.6,49.2,3.4,9.9,23.2,0.6,59.1,7.7,446.9,749.1,9.3,7,32.4,36.9,23.7,6.2,6.5,267.9,1.4,31.6,26.7,40.3 +Bayern,226,Traunstein,,50,2373.9,272.6,131.8,250.5,115,15.8,3.3,7.6,12.5,34.7,26.1,7.9,10.5,38.6,32,4.1,17.8,17.9,0.6,74.4,4.2,474.6,732.9,11.5,9.6,35.5,38.4,16.5,7.1,7.1,293.5,1.1,39,26.5,33.5 +Bayern,227,Weilheim,,87,2783,328.9,161.5,305,118,17.1,3.3,7.5,12.6,35.9,23.5,8.8,9.6,45.4,39.8,4.9,13.7,23.2,0.5,61.9,4.7,448.2,739,10.7,9.1,33.8,37.2,19.8,6.1,6.4,266.7,1.2,37.5,23.4,38 +Bayern,228,Deggendorf,,51,1845.3,199.3,97.6,191.9,108,16.6,3.6,8.2,13.1,35.9,22.6,8.6,9.6,30.4,29.8,-0.4,22.8,17,0.8,83.1,4.7,433.6,774.4,12.4,9.7,37.8,34.4,18,9.7,10.8,285.7,0.9,46.6,20.6,31.9 +Bayern,229,Landshut,,60,2480.5,321.2,158.4,299.9,129,17,3.4,8.1,13.7,35.9,21.9,9.4,9.4,47,40.7,6.2,17.9,24.4,0.7,81.9,5.5,429.7,753.2,11.5,8.7,35.1,41.3,15,6.4,6.9,295.8,1.3,41.5,20.9,36.2 +Bayern,230,Passau,,39,1599.8,239.6,116.6,227,150,15.7,3.3,8.8,13.3,35.2,23.7,8.4,10.1,37.7,34.7,1.3,17.9,20.4,0.8,88.2,7,446.6,749.5,11.3,11.2,36.4,34.3,18.1,10.8,11.1,322.5,0.7,39.7,24.2,35.4 +Bayern,231,Rottal-Inn,,46,2159.3,211.8,104.8,200.1,98,17.1,3.6,8.2,12.9,35,23.2,8.9,10.3,32.5,28.7,2.4,29.3,21.6,0.7,173.1,5.1,407.9,836.4,11.6,9.7,42.5,33.4,14.4,6.2,6.8,349.8,0.8,61.6,15.4,22.2 +Bayern,232,Straubing,,62,2244.9,224.3,111.1,212.4,100,16.2,3.6,8.1,13.2,35.7,23.2,8.7,10.7,36.6,33.3,1.3,23.1,19.4,0.6,73.6,5.3,444.5,758,12.1,9.7,36.1,36.9,17.3,8.4,9.5,284.9,1.3,42.4,22.7,33.5 +Bayern,233,Amberg,,47,2650,282.1,138.9,269.6,106,17.5,3.7,8,12.8,35.3,22.7,8.7,9.8,34.1,30.9,2.1,18.6,21.6,0.7,88.9,5,418.6,737.5,11.9,9.1,42.1,32.8,16,9.1,9.8,286.7,0.6,46.9,19.8,32.7 +Bayern,234,Regensburg,,42,1473.8,310.3,151.8,288.7,211,15.4,3.1,8.3,14.4,36.8,21.9,8.8,9.2,54.3,48.8,5,8.9,27.1,0.5,120.5,5.1,476.6,728.5,10,8.8,34.7,34.2,22.3,7.4,8.4,403.2,0.5,37.9,22.3,39.2 +Bayern,235,Schwandorf,,72,2984.6,276.2,136.9,266.9,93,16.6,3.6,8.3,13,35.2,23.4,8.7,10.6,23.9,22.4,-0.4,23.2,19.6,0.8,96.2,5.9,424.3,812,11.7,9,40.2,35.6,15.2,8.5,9.2,296.5,0.9,49.2,21,28.9 +Bayern,236,Weiden,,65,2582.6,221.7,108.3,213.8,86,16.8,3.6,8.1,12.5,34.7,24.3,8.4,11.2,31.3,33.5,-5.1,17.6,24.2,0.8,100.4,4.2,452.2,767.1,11.5,8.7,37.4,36.8,17.1,9.7,10.3,299.4,1,45.7,21.4,31.9 +Bayern,237,Bamberg,,37,1003.1,228.1,110.9,215.2,227,16.6,3.5,8.5,13.3,35.7,22.4,8.8,9.9,40.6,38.1,1.5,10.7,16.8,0.6,92.4,5.1,446.9,741.9,11.7,8.8,36,32.6,22.6,8,8.5,287.7,1,42.7,22.7,33.6 +Bayern,238,Bayreuth,,44,1648.2,212.2,103.7,200.2,129,15.3,3.2,9,13.2,35.1,24.3,8.2,10.5,52.8,48.5,2,17.3,18.2,0.7,72.8,4.1,458.1,721.3,11.6,9.6,34.4,35.4,20.6,10.6,11.1,320.7,0.7,34.3,21.8,43.1 +Bayern,239,Coburg,,36,1289.9,208.1,101.4,198.1,161,15.3,3.5,7.5,12.2,35.6,26,7.7,11.3,33.3,34.3,-4.7,9.6,26.1,1.4,175.3,3.1,466.7,721.2,11.2,11.5,39.9,33.5,15.1,11.6,12.4,382.9,0.6,51.9,16.4,31.1 +Bayern,240,Hof,,45,1557,238.4,114.3,223.2,153,14.5,3.1,7.1,11.6,34.7,28.9,7.5,13.4,31.1,34.2,-9.1,8.9,33.9,1.1,123.3,3,509.2,718.9,10.8,10.5,36.2,35.1,18.2,13.4,13.2,339.9,0.5,46.3,22.1,31.1 +Bayern,241,Kulmbach,,52,1732.6,219.7,107.5,212.1,127,16.2,3.6,7.8,12.6,35.9,23.9,7.8,11.2,25.2,26.3,-4.5,17.4,21.2,1.1,117.6,4,434.6,766.9,10.6,10.7,39.1,33.1,17.1,10.9,12.2,329.2,0.6,46,24.1,29.3 +Bayern,242,Ansbach,,86,3043,320.1,157.2,301.1,105,17.5,3.7,8.2,12.4,34.5,23.7,8.9,10.3,33.3,30.6,1.3,21.8,23.7,0.8,100.7,5,426.3,785.3,12.6,10.4,36.8,36.3,16.5,7.9,8.8,307.2,0.9,46.2,19.7,33.3 +Bayern,243,Erlangen,,26,641.4,233.2,114.6,210.4,364,15.9,3.3,8.5,13.6,36.9,21.8,8.9,8.5,60.8,59.2,2,5.5,17.7,0.5,184.1,4,461.3,679.2,10.8,9,30.3,29.8,30.9,6.7,7,456.6,0.4,50.6,14,35 +Bayern,244,Frth,,53,1638.6,326.8,159.9,300.8,199,16.2,3.3,7.5,12.7,37,23.3,8.7,10.6,55.3,50.4,3,10.9,25.4,0.7,63.9,3.5,459.4,707.6,11,9.7,37.2,32.7,20.4,8.7,8.9,265.2,1.1,37.1,25.5,36.3 +Bayern,245,Nrnberg-Nord,Erluterungen siehe Vorbemerkungen,1,85.8,272.3,131.2,217.9,3173,13.1,2.6,7.9,14.7,35.8,26,8.7,11.6,56.1,52.9,0.3,0.5,11.5,0.6,112.2,2.7,521.3,588.8,10.1,15.1,38.4,26.2,20.4,13.5,13.7,511.9,0.5,26.6,26.6,46.3 +Bayern,246,Nrnberg-Sd,Erluterungen siehe Vorbemerkungen,2,141.4,261.6,126,223.3,1851,15.5,3.3,7.6,12.6,36.3,24.7,7.6,10.2,56,54.7,-1.2,1.8,15.5,1.1,97.3,2.6,479.2,753.4,16.2,7.8,22,48.1,22,8.6,8.9,316.7,0.9,41.7,23.9,33.5 +Bayern,247,Roth,,43,1694.7,294.8,144.9,276.6,174,16.6,3.4,7.3,12.1,36.9,23.7,8.2,9.8,35,30.8,2.6,11.7,17.5,0.8,81.8,3.6,424.3,750.3,9.7,8.8,40,33.1,18.1,7.2,7.6,245.8,0.8,42.2,23.4,33.5 +Bayern,248,Aschaffenburg,,33,761.6,244.1,119.7,221.4,321,16.5,3.4,7.7,12.7,36.6,22.9,8.7,8.8,42.7,41.4,1.2,3.2,19.6,0.7,100.8,3.4,437,703.8,10.4,10,39.3,34,16.7,7.7,8,331.2,0.7,41.7,25.7,31.8 +Bayern,249,Bad Kissingen,,89,3114.8,283.2,140.2,274.1,91,16.9,3.9,8.1,12.1,34.9,24.1,8.7,11,28.3,27.8,-1.7,17.9,25.7,0.7,90.2,4,426.4,768.1,12.2,8,39.6,36.4,16,9,9.5,282.7,1.2,43.8,20,35 +Bayern,250,Main-Spessart,,72,2037.3,263.3,130.8,242.9,129,17.4,3.7,7.9,12.4,35.6,23.1,8.4,9.3,27.2,27.6,-1.2,9,23.8,0.8,124.1,3.6,420.5,726.7,11.6,10.6,37,37.5,14.9,7.3,7.7,283.5,1,56.1,16.4,26.6 +Bayern,251,Schweinfurt,,61,1561.3,260.4,128.1,243.3,167,16.7,3.6,7.9,12.1,35.4,24.3,8.6,10.1,39.1,38.1,-0.5,16.4,21.6,0.7,117,3.5,436.7,725.5,12.9,8.6,35.2,34.7,20.9,7.8,7.9,357.3,1.2,44.1,21,33.7 +Bayern,252,Wrzburg,,53,1056,293.6,141.2,269.5,278,14.3,3.1,10.1,13.9,35.7,22.9,8.1,9.3,67.8,62.8,3.8,8.1,26,0.5,58.7,4.3,473.7,657.4,10.2,7.9,29.8,35.9,26,7.3,8,350.3,0.8,23.7,27.5,48 +Bayern,253,Augsburg-Stadt,,2,165.2,287.9,138.2,239,1743,14.4,2.8,8,14.5,34.9,25.3,9.6,11.8,49.9,47.8,0,0.6,24.9,0.5,116.2,3,520.9,570.4,11.9,10,32.8,29.9,26.9,11.6,12,468.8,0.3,32.7,20.9,46.2 +Bayern,254,Augsburg-Land,,61,1567.4,318.1,156.7,298.1,203,17.8,3.6,7.6,12.6,36.6,21.8,9.1,8.1,40.2,35.7,5.6,10.1,25.8,0.7,73.4,4.8,422.5,736.3,9.6,11.2,40.7,36.4,11.7,6.7,7,216.9,1.1,45.8,25.7,27.3 +Bayern,255,Donau-Ries,,79,2332.6,249.9,124.5,236.3,107,18.2,3.8,8.3,13.1,34.5,22.1,9.3,10,30.1,25.9,3.6,21.5,25.5,0.9,123.3,3.9,414.1,773.4,12.8,10.3,35.1,39.1,15.6,5.5,5.9,313.1,1.3,51.6,20.8,26.3 +Bayern,256,Neu-Ulm,,70,1683.6,320.2,158.9,287.9,190,17.5,3.6,8.3,13.2,35.3,22.2,9.8,9,37.6,34.1,4.3,11.4,24,0.8,111.8,4.1,429.1,733.4,11.6,10.8,34.9,37.4,16.9,7.2,7.7,314.4,0.7,45.3,23.9,30 +Bayern,257,Oberallgu,,48,1914.7,290.4,140.2,263.7,152,16.6,3.4,7.5,12.6,34.7,25.2,8.7,10.4,46.5,41.9,2.9,14.6,20.1,0.6,86.2,5,508.4,736,10.8,8.7,37.4,36.2,17.7,7.1,7.5,322.5,0.9,38.9,27.2,32.9 +Bayern,258,Ostallgu,,80,2328.5,319.7,155.7,296.7,137,17.2,3.5,7.9,12.5,34.3,24.5,9.2,10.4,41.4,37.3,2.9,17.6,23.4,0.8,92.3,4.6,455.5,754.6,11.8,9.3,37.6,38.1,14.9,7.3,7.6,312.5,1.1,46.2,22.2,30.5 +Bayern,0,Land insgesamt,,2056,70549.1,12443.9,6088.8,11268.7,176,16,3.3,8,13.5,35.9,23.4,9,9.8,46.7,42.9,2.9,11.8,22.4,0.6,95.8,4.6,459.1,720.2,10.8,9.5,35.6,35.1,19.7,8,8.3,344.6,0.8,37.9,22.8,38.6 +Baden-Wrttemberg,259,Stuttgart I,Erluterungen siehe Vorbemerkungen,1,113.7,284,139.3,221.9,2497,13,2.5,8.1,16.8,35.8,23.8,9,9.3,65.3,63.7,1.3,0.5,7.9,0.4,142.9,1.6,494.5,597.2,8.5,10,25.2,29.4,34.7,7.8,8.1,582.9,0.3,29.3,17.1,53.3 +Baden-Wrttemberg,260,Stuttgart II,Erluterungen siehe Vorbemerkungen,1,93.6,306.7,151.6,228.5,3276,13,2.5,8.1,16.8,35.8,23.8,9,9.3,65.3,63.7,1.3,0.5,7.9,0.4,142.9,1.6,494.5,597.2,8.5,10,25.2,29.4,34.7,7.8,8.1,582.9,0.3,29.3,17.1,53.3 +Baden-Wrttemberg,261,Bblingen,,24,585.4,357.2,176.9,301.9,610,16.8,3.3,7.9,14.1,36,21.9,10.1,7.6,42.4,41.2,3.6,2.8,22.4,0.6,204.8,4.2,438.9,725,10.3,8.1,30,36.5,25.4,6,6,421.5,0.4,53.4,17,29.2 +Baden-Wrttemberg,262,Esslingen,Erluterungen siehe Vorbemerkungen,15,208.7,240.9,118.5,202.4,1154,15.5,3,7.6,14,35.5,24.4,9.4,8.6,40.1,36.8,4.1,1.2,16.4,0.9,133.9,4.3,463.8,704.4,10.2,7.8,31.6,38.1,21.8,5.4,5.4,345.8,0.6,46.9,22.6,29.9 +Baden-Wrttemberg,263,Nrtingen,Erluterungen siehe Vorbemerkungen,31,465.2,287.1,141.3,250.8,617,16.7,3.3,7.8,13.5,36.6,22.2,9.4,8.6,40.1,36.8,4.1,3.2,18.2,0.9,133.9,3.7,449.4,704.4,10.2,7.8,31.6,38.1,21.8,5.4,5.4,345.8,0.6,46.9,22.6,29.9 +Baden-Wrttemberg,264,Gppingen,,38,642.4,258.5,127.2,224.4,402,16.6,3.5,8,12.8,35,24.1,8.6,9.4,29.1,27.5,0.9,4.4,25.5,1,115.5,3.7,442.4,698.3,11.2,8.5,30,40.5,20.7,6.4,7,295,0.6,49.8,19.3,30.3 +Baden-Wrttemberg,265,Waiblingen,,18,513.4,314.3,154.1,271.2,612,16.6,3.2,7.5,13.5,36,23.2,9.6,8.6,37.1,36.1,2.1,5,10,0.9,108.5,4.1,455.3,695.7,10.2,8,29.4,41.3,20.9,5.8,6.1,293.3,1.1,46.6,19.5,32.8 +Baden-Wrttemberg,266,Ludwigsburg,Erluterungen siehe Vorbemerkungen,15,339.3,301.1,148.6,251.4,888,16.2,3,7.6,14.2,35.8,23.1,9.9,8.1,41.2,37.7,5.2,2.9,20.9,0.9,111.8,4.7,463.4,683.7,10.4,8.5,29.5,39.5,22.6,5.4,5.5,317.7,1.1,44.1,23.8,31.1 +Baden-Wrttemberg,267,Neckar-Zaber,Erluterungen siehe Vorbemerkungen,39,642.4,311,153.6,273.5,484,17.6,3.5,7.6,13,36.4,21.8,9.9,8.1,41.2,37.7,5.2,9.7,9.8,0.9,111.8,4.4,439.1,683.7,10.4,8.5,29.5,39.5,22.6,5.4,5.5,317.7,1.1,44.1,23.8,31.1 +Baden-Wrttemberg,268,Heilbronn,,32,904.9,349.9,173.1,300.4,387,16.9,3.6,8.2,13.6,35,22.7,9.4,9.2,47.2,44.5,3,6.7,19.8,0.8,125.7,4,436.8,737.6,11.6,7.9,34.4,39.1,18.6,7.2,7.5,346.2,0.9,46.5,21.1,31.6 +Baden-Wrttemberg,269,Schwbisch Hall - Hohenlohe,,46,2260.8,298.8,147.9,278.6,132,18,3.9,8.5,12.8,34.8,22,9.5,9.5,38.1,36.1,1.9,16.7,24.3,1,125.9,4.6,417.7,781.2,12.7,8.3,36.6,39.3,15.4,6.7,6.6,342.8,0.9,47.7,22.7,28.7 +Baden-Wrttemberg,270,Backnang - Schwbisch Gmnd,Erluterungen siehe Vorbemerkungen,34,838.7,246.7,121.4,221.1,294,17.4,3.6,8,12.7,35.2,23.2,9.3,9.6,27.1,27.4,-0.7,6.6,19.8,0.9,139,3.8,431.5,703.9,12.9,6.7,34.5,40.5,18.2,7.8,8,319,0.8,53.4,16,29.8 +Baden-Wrttemberg,271,Aalen - Heidenheim,Erluterungen siehe Vorbemerkungen,32,1644.8,309.3,152.6,283.4,188,17.4,3.7,8.3,12.9,34.1,23.7,9.3,9.6,27.1,27.4,-0.7,8.7,27.4,0.9,139,3.6,433.4,703.9,12.9,6.7,34.5,40.5,18.2,7.8,8,319,0.8,53.4,16,29.8 +Baden-Wrttemberg,272,Karlsruhe-Stadt,,1,173.5,284.2,139.8,240.9,1638,13.1,2.6,8.3,15.9,35.5,24.7,9,10.7,78.5,72.2,4.5,0.4,23.3,0.5,79.6,1.6,499.1,595,8.5,9.1,26,32.2,32.7,9.4,9.6,521.1,0.2,21.2,24.4,54.2 +Baden-Wrttemberg,273,Karlsruhe-Land,Erluterungen siehe Vorbemerkungen,21,718.4,277.9,136.3,254.2,387,16.4,3.3,7.4,12.1,37.3,23.4,8.4,8.8,37.3,33.8,3.2,3.5,27.2,0.7,95.3,2.3,417.3,691.6,11,5.8,30.2,43.6,20.4,6.3,6.4,282.2,0.7,43.7,20.2,35.4 +Baden-Wrttemberg,274,Rastatt,,24,879,281.9,136.5,255.5,321,15.4,3.3,7.4,12.1,36.2,25.6,8.2,10.3,43.8,37.8,3.8,4.8,12.2,0.8,144.7,3,464,723.5,10.6,8.6,38,33.1,20.3,6.2,6.6,370.4,0.8,49.7,18.5,31.1 +Baden-Wrttemberg,275,Heidelberg,,12,305.6,299.4,143.3,260.7,980,13.2,2.6,9.1,15.5,36.5,23,8.4,8.9,95.7,92.5,2.8,1.7,20.4,0.4,77.4,3.8,480.5,492.1,9.4,4.8,19.3,26.4,49,7.7,8.6,520.7,0.3,20.3,18.6,60.8 +Baden-Wrttemberg,276,Mannheim,,1,145,307.5,150.9,238.4,2121,13.6,2.7,8.3,14.8,36.7,24,8.8,10.7,55.4,54.8,-1.3,0.3,29.6,0.5,147.1,1.4,530,580.9,9.3,9.4,32.6,31.5,25.5,11.8,11.8,513.9,0.3,34.6,22.8,42.2 +Baden-Wrttemberg,277,Odenwald - Tauber,,45,2430.7,288.9,143.2,272.5,119,16.7,3.8,8.2,12.4,35.2,23.7,8.9,9.5,30.8,29.7,0.6,13.4,30,0.9,104.7,3.5,423,732.4,12.8,8.2,35.2,37.3,19.4,7.3,7.7,288.8,0.8,48.6,15.4,35.2 +Baden-Wrttemberg,278,Rhein-Neckar,,34,724.9,267.7,131.5,241.6,369,16.6,3.4,7.8,12.8,37,22.3,8.8,9.3,41,38.4,2,3.7,25.8,0.6,74.2,3,431.7,684,9.6,7.9,33.8,34.6,23.7,7,7.4,254.1,0.7,38.9,21.8,38.5 +Baden-Wrttemberg,279,Bruchsal - Schwetzingen,Erluterungen siehe Vorbemerkungen,20,506.6,259.2,127.2,233.7,512,15.9,3.3,7.7,13.1,37.2,22.8,8.4,8.8,37.3,33.8,3.2,2,32.2,0.7,95.3,3.9,448.9,691.6,11,5.8,30.2,43.6,20.4,6.3,6.4,282.2,0.7,43.7,20.2,35.4 +Baden-Wrttemberg,280,Pforzheim,,29,671.8,314.9,153.6,275,469,16.8,3.4,7.8,12.5,35.7,23.8,8.7,9,46.4,43.6,2.6,2.3,28.3,1.2,119.3,2.9,451.2,650.8,10.8,8.1,33.1,37.2,20.8,8.1,7.5,316.8,0.6,50.1,20.6,28.7 +Baden-Wrttemberg,281,Calw,,42,1668.2,283.9,139.3,255.3,170,17.7,3.7,8.3,12.8,34.8,22.7,9.3,9.5,46.2,44.7,1.3,6.8,19.6,0.9,93.2,3.2,438,697.5,11.3,8.7,37.6,41.5,12.2,6,6.4,276.9,1,43.6,22,33.4 +Baden-Wrttemberg,282,Freiburg,,20,452.9,297.4,142.7,262.6,657,14.4,2.8,10.2,15.9,36.2,20.4,9.2,8.7,84.5,74.2,10.7,9.7,6.1,0.5,60.6,3.9,449.8,493.8,10.3,6.3,22.1,32.1,38.8,8.9,8.6,440.5,0.2,18.5,24.2,57.1 +Baden-Wrttemberg,283,Lrrach - Mllheim,,55,1155.1,307,149.2,275.3,266,17,3.5,7.6,12.4,36,23.5,8.6,8.7,49.2,44.3,4.8,9.2,14.5,0.7,82.5,4.1,442.1,691.5,10.4,8.1,33.1,37.2,21.5,6.1,6.2,273.8,1.1,43.1,23.8,31.9 +Baden-Wrttemberg,284,Emmendingen - Lahr,,41,1194.5,279.2,136.8,261.3,234,17.3,3.7,8,12.5,36,22.5,9.2,8.8,39.1,35.2,4.2,14,10.7,0.9,85.7,4.1,429.1,700.7,11.1,6.8,37.4,40.5,15.3,6.4,6.3,254.2,1.2,47.3,19.9,31.6 +Baden-Wrttemberg,285,Offenburg,,29,1104.6,271.1,132.9,251.1,245,17.1,3.6,7.9,12.5,35.3,23.6,8.9,9.4,26.7,23.2,3.1,16.1,9.1,1.1,123.5,3.7,430.9,715.1,12.8,7.7,36.4,37.9,17.9,6.6,6.9,348.8,0.8,44,24.4,30.8 +Baden-Wrttemberg,286,Rottweil - Tuttlingen,,57,1503.8,277.4,136.6,251.6,184,17.9,3.8,8.1,12.7,34,23.6,9.6,9.3,32.5,31.9,0.8,7.8,26.6,1.5,163.3,3.7,431.3,721.3,12.2,7.9,37.6,36.1,18.4,6.2,6.1,344.8,0.5,60.1,16.2,23.3 +Baden-Wrttemberg,287,Schwarzwald-Baar,,25,1266.8,232.9,113.7,208.7,184,16.4,3.6,8.1,12.2,34.4,25.3,8.8,10.3,33.7,32.7,-0.5,8.6,22.3,1.3,134,3.6,462.5,700.7,13,7.8,33,41.5,17.7,7.5,7.5,354,0.5,46.8,18.7,33.9 +Baden-Wrttemberg,288,Konstanz,,25,818,274.1,133,242,335,15.2,3.1,8.5,13.3,36,23.9,8.4,9.7,50.5,43.2,5.9,5.1,25.8,0.6,83.5,3.8,466.5,642.8,10,8.5,31.4,38.3,21.8,8.1,7.6,296.8,1.4,37.3,23.5,37.7 +Baden-Wrttemberg,289,Waldshut,,50,1861.4,245.9,120.2,223.1,132,17.1,3.6,8.1,12.5,34.9,23.7,8.6,8.9,34.8,33.3,1.2,13.5,19.3,0.7,86.6,3,450.1,727.6,12.4,6.5,41.7,35.3,16.5,6.3,6.3,270,0.9,45.6,21.4,32 +Baden-Wrttemberg,290,Reutlingen,,27,1094.2,281.8,137.9,246.9,258,16.9,3.4,8.1,13.3,35.3,23,9.3,8.8,43.7,40.4,3.8,6.1,25.1,0.9,121.7,3.1,431.5,703.7,11.3,7,35.3,34.8,22.4,5.9,6,328.2,0.9,47.7,19.7,31.7 +Baden-Wrttemberg,291,Tbingen,,21,788.9,266.4,131.2,235.3,338,16.8,3.4,9.2,14.2,37,19.4,9.9,6.7,55,51.8,6.4,4.1,27.8,0.7,69.9,4.3,427.2,621.5,11.5,7.1,28.6,32.5,31,6.2,6.3,280.6,0.5,30.4,17.8,51.3 +Baden-Wrttemberg,292,Ulm,,56,1476,309.8,153.4,271.8,210,17,3.5,8.7,14.1,34.6,22,10,8.7,52.2,48.2,5.2,9.6,27.5,0.9,122.5,3.8,428.5,685.3,11.8,6.6,30.8,37.2,25.4,6.8,7.2,380.7,0.5,38.3,24,37.2 +Baden-Wrttemberg,293,Biberach,,59,2423.4,322.1,159,301.1,133,19,3.9,8.4,13.1,34.3,21.3,9.6,8.6,35.4,30.8,5.6,15.6,27.2,0.9,119.9,4.5,413.1,728.3,13.3,6.7,35,40,18.3,5.5,5.8,326.8,0.9,46.4,18.6,34.1 +Baden-Wrttemberg,294,Ravensburg - Bodensee,,37,1152.5,333.4,163.2,302.5,289,16.7,3.5,8,13.1,35.4,23.3,9.1,9.5,58.6,52.8,5.3,10.6,17.5,0.7,136.7,4.8,453.8,724.5,12,8.4,26.1,43.1,22.5,6.7,6.5,336,1,48.7,18.2,32 +Baden-Wrttemberg,295,Zollernalb - Sigmaringen,,55,1982.8,288,142.6,264.5,145,17.7,3.8,8.1,12.5,34.7,23.2,8.8,9.3,32.7,32.9,-0.8,11.1,27.6,1.1,118.1,3.5,424.4,742.9,12.3,7.5,33.8,41.5,17.2,7.8,8.7,296.7,0.9,50.7,19.7,28.7 +Baden-Wrttemberg,0,Land insgesamt,,1111,35751.6,10717.4,5260.2,9435.7,300,16.3,3.4,8.1,13.5,35.6,23.1,9.1,9.1,44.5,41.6,3,6.7,20.4,0.8,116.7,3.5,448.3,685,11,7.8,32.5,37.6,21.9,6.9,7,348.8,0.7,42.2,20.4,36.7 +Saarland,296,Saarbrcken,,6,325.3,280.1,134.7,244.7,861,13.4,2.9,7.7,12.6,37.1,26.3,7.4,13.1,32.6,32.1,-5.2,0.5,27.9,0.4,93.8,1.5,514.5,670,9.5,8.7,30.6,31.8,26.7,12.7,12.8,404.4,0.3,30,21.4,48.2 +Saarland,297,Saarlouis,,18,891.4,279,135.6,258.3,313,15,3.4,7.5,11.5,36.6,25.9,7.4,11.4,31.2,27.3,-0.2,2.8,38.2,0.5,109.2,3.3,442.5,717.9,10.7,9.2,32.7,36.9,20.3,8.3,8.6,292.3,0.6,46.4,23,30 +Saarland,298,St. Wendel,,16,801.6,234,115.3,221.5,292,14.7,3.4,7.6,11.4,36.8,26.1,6.8,12,26.6,25.8,-4.4,2.6,47.2,0.4,63.9,2.7,439.8,717.3,10.8,10.3,35.6,35.5,18,8.8,9.7,235.3,0.6,37.6,21.7,40 +Saarland,299,Homburg,,12,550.4,263.4,127.9,243,479,14.3,3.2,7.5,11.5,36.7,26.8,6.7,11.5,31.6,31.3,-4.5,1.4,40.6,0.6,132.3,2.6,475.9,724.6,9.7,10,28.5,35.1,25.4,9,9.2,362.8,0.5,45.5,19.3,34.7 +Saarland,0,Land insgesamt,,52,2568.7,1056.4,513.5,967.5,411,14.3,3.2,7.6,11.8,36.8,26.2,7.2,12.1,30.7,29.1,-3.4,1.8,40.9,0.5,97.3,2.5,469,703.1,10.2,9.4,32.2,34.7,22.4,10,10.3,326.3,0.4,38.2,21.6,39.8 +Deutschland,0,Insgesamt,,12430,357028.6,82500.8,40353.6,75210.9,231,15,3.4,8.1,13,36,24.4,8.6,10.3,41.4,39.7,-0.1,5.4,38.1,0.6,76.4,3.5,471.6,650.1,11.3,9.2,25.2,40.4,24,11.5,11.9,321.5,1.2,33.1,23.3,42.4 diff --git a/file_keep/eg_file/img/Scatter_Plot_Variant_3_Areas_Highlighted.xlsx b/file_keep/eg_file/img/Scatter_Plot_Variant_3_Areas_Highlighted.xlsx new file mode 100644 index 0000000..3e713cc Binary files /dev/null and b/file_keep/eg_file/img/Scatter_Plot_Variant_3_Areas_Highlighted.xlsx differ diff --git a/file_keep/eg_file/img/Scatter_Plot_Variant_5_Connected_Points.xlsx b/file_keep/eg_file/img/Scatter_Plot_Variant_5_Connected_Points.xlsx new file mode 100644 index 0000000..06bdb52 Binary files /dev/null and b/file_keep/eg_file/img/Scatter_Plot_Variant_5_Connected_Points.xlsx differ diff --git a/file_keep/eg_file/img/Scatter_Plot_With_User_Defined_Symbols.xlsx b/file_keep/eg_file/img/Scatter_Plot_With_User_Defined_Symbols.xlsx new file mode 100644 index 0000000..abf71e1 Binary files /dev/null and b/file_keep/eg_file/img/Scatter_Plot_With_User_Defined_Symbols.xlsx differ diff --git a/file_keep/eg_file/img/Scatter_Plot_with_Few_Points.csv b/file_keep/eg_file/img/Scatter_Plot_with_Few_Points.csv new file mode 100644 index 0000000..c639d31 --- /dev/null +++ b/file_keep/eg_file/img/Scatter_Plot_with_Few_Points.csv @@ -0,0 +1,4 @@ +44.6,60.5,4.8 +45.5,97.8,4.71 +100,2.5,1 +75,2.5,1 diff --git a/file_keep/eg_file/img/Scatterplot_with_line_of_best_fit_grouped_by_number_of_cylinders.csv b/file_keep/eg_file/img/Scatterplot_with_line_of_best_fit_grouped_by_number_of_cylinders.csv new file mode 100644 index 0000000..4e29924 --- /dev/null +++ b/file_keep/eg_file/img/Scatterplot_with_line_of_best_fit_grouped_by_number_of_cylinders.csv @@ -0,0 +1,235 @@ +"manufacturer","model","displ","year","cyl","trans","drv","cty","hwy","fl","class" +"audi","a4",1.8,1999,4,"auto(l5)","f",18,29,"p","compact" +"audi","a4",1.8,1999,4,"manual(m5)","f",21,29,"p","compact" +"audi","a4",2,2008,4,"manual(m6)","f",20,31,"p","compact" +"audi","a4",2,2008,4,"auto(av)","f",21,30,"p","compact" +"audi","a4",2.8,1999,6,"auto(l5)","f",16,26,"p","compact" +"audi","a4",2.8,1999,6,"manual(m5)","f",18,26,"p","compact" +"audi","a4",3.1,2008,6,"auto(av)","f",18,27,"p","compact" +"audi","a4 quattro",1.8,1999,4,"manual(m5)","4",18,26,"p","compact" +"audi","a4 quattro",1.8,1999,4,"auto(l5)","4",16,25,"p","compact" +"audi","a4 quattro",2,2008,4,"manual(m6)","4",20,28,"p","compact" +"audi","a4 quattro",2,2008,4,"auto(s6)","4",19,27,"p","compact" +"audi","a4 quattro",2.8,1999,6,"auto(l5)","4",15,25,"p","compact" +"audi","a4 quattro",2.8,1999,6,"manual(m5)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","compact" +"audi","a4 quattro",3.1,2008,6,"manual(m6)","4",15,25,"p","compact" +"audi","a6 quattro",2.8,1999,6,"auto(l5)","4",15,24,"p","midsize" +"audi","a6 quattro",3.1,2008,6,"auto(s6)","4",17,25,"p","midsize" +"audi","a6 quattro",4.2,2008,8,"auto(s6)","4",16,23,"p","midsize" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",11,15,"e","suv" +"chevrolet","c1500 suburban 2wd",5.3,2008,8,"auto(l4)","r",14,20,"r","suv" +"chevrolet","c1500 suburban 2wd",5.7,1999,8,"auto(l4)","r",13,17,"r","suv" +"chevrolet","c1500 suburban 2wd",6,2008,8,"auto(l4)","r",12,17,"r","suv" +"chevrolet","corvette",5.7,1999,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",5.7,1999,8,"auto(l4)","r",15,23,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"manual(m6)","r",16,26,"p","2seater" +"chevrolet","corvette",6.2,2008,8,"auto(s6)","r",15,25,"p","2seater" +"chevrolet","corvette",7,2008,8,"manual(m6)","r",15,24,"p","2seater" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",14,19,"r","suv" +"chevrolet","k1500 tahoe 4wd",5.3,2008,8,"auto(l4)","4",11,14,"e","suv" +"chevrolet","k1500 tahoe 4wd",5.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"chevrolet","k1500 tahoe 4wd",6.5,1999,8,"auto(l4)","4",14,17,"d","suv" +"chevrolet","malibu",2.4,1999,4,"auto(l4)","f",19,27,"r","midsize" +"chevrolet","malibu",2.4,2008,4,"auto(l4)","f",22,30,"r","midsize" +"chevrolet","malibu",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"chevrolet","malibu",3.5,2008,6,"auto(l4)","f",18,29,"r","midsize" +"chevrolet","malibu",3.6,2008,6,"auto(s6)","f",17,26,"r","midsize" +"dodge","caravan 2wd",2.4,1999,4,"auto(l3)","f",18,24,"r","minivan" +"dodge","caravan 2wd",3,1999,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,1999,6,"auto(l4)","f",16,22,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",17,24,"r","minivan" +"dodge","caravan 2wd",3.3,2008,6,"auto(l4)","f",11,17,"e","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,22,"r","minivan" +"dodge","caravan 2wd",3.8,1999,6,"auto(l4)","f",15,21,"r","minivan" +"dodge","caravan 2wd",3.8,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","caravan 2wd",4,2008,6,"auto(l6)","f",16,23,"r","minivan" +"dodge","dakota pickup 4wd",3.7,2008,6,"manual(m6)","4",15,19,"r","pickup" +"dodge","dakota pickup 4wd",3.7,2008,6,"auto(l4)","4",14,18,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","pickup" +"dodge","dakota pickup 4wd",3.9,1999,6,"manual(m5)","4",14,17,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","pickup" +"dodge","dakota pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"manual(m5)","4",11,17,"r","pickup" +"dodge","dakota pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","durango 4wd",3.9,1999,6,"auto(l4)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"dodge","durango 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","suv" +"dodge","durango 4wd",5.2,1999,8,"auto(l4)","4",11,16,"r","suv" +"dodge","durango 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"dodge","durango 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","suv" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",12,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",4.7,2008,8,"manual(m6)","4",9,12,"e","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"auto(l4)","4",11,15,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.2,1999,8,"manual(m5)","4",11,16,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.7,2008,8,"auto(l5)","4",13,17,"r","pickup" +"dodge","ram 1500 pickup 4wd",5.9,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","expedition 2wd",4.6,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"ford","expedition 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,1999,6,"manual(m5)","4",15,19,"r","suv" +"ford","explorer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"ford","explorer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"ford","explorer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"ford","explorer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"ford","f150 pickup 4wd",4.2,1999,6,"auto(l4)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.2,1999,6,"manual(m5)","4",14,17,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"manual(m5)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,1999,8,"auto(l4)","4",13,16,"r","pickup" +"ford","f150 pickup 4wd",4.6,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","f150 pickup 4wd",5.4,1999,8,"auto(l4)","4",11,15,"r","pickup" +"ford","f150 pickup 4wd",5.4,2008,8,"auto(l4)","4",13,17,"r","pickup" +"ford","mustang",3.8,1999,6,"manual(m5)","r",18,26,"r","subcompact" +"ford","mustang",3.8,1999,6,"auto(l4)","r",18,25,"r","subcompact" +"ford","mustang",4,2008,6,"manual(m5)","r",17,26,"r","subcompact" +"ford","mustang",4,2008,6,"auto(l5)","r",16,24,"r","subcompact" +"ford","mustang",4.6,1999,8,"auto(l4)","r",15,21,"r","subcompact" +"ford","mustang",4.6,1999,8,"manual(m5)","r",15,22,"r","subcompact" +"ford","mustang",4.6,2008,8,"manual(m5)","r",15,23,"r","subcompact" +"ford","mustang",4.6,2008,8,"auto(l5)","r",15,22,"r","subcompact" +"ford","mustang",5.4,2008,8,"manual(m6)","r",14,20,"p","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",28,33,"r","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",25,32,"r","subcompact" +"honda","civic",1.6,1999,4,"manual(m5)","f",23,29,"p","subcompact" +"honda","civic",1.6,1999,4,"auto(l4)","f",24,32,"r","subcompact" +"honda","civic",1.8,2008,4,"manual(m5)","f",26,34,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",25,36,"r","subcompact" +"honda","civic",1.8,2008,4,"auto(l5)","f",24,36,"c","subcompact" +"honda","civic",2,2008,4,"manual(m6)","f",21,29,"p","subcompact" +"hyundai","sonata",2.4,1999,4,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.4,1999,4,"manual(m5)","f",18,27,"r","midsize" +"hyundai","sonata",2.4,2008,4,"auto(l4)","f",21,30,"r","midsize" +"hyundai","sonata",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"hyundai","sonata",2.5,1999,6,"auto(l4)","f",18,26,"r","midsize" +"hyundai","sonata",2.5,1999,6,"manual(m5)","f",18,26,"r","midsize" +"hyundai","sonata",3.3,2008,6,"auto(l5)","f",19,28,"r","midsize" +"hyundai","tiburon",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"hyundai","tiburon",2,1999,4,"manual(m5)","f",19,29,"r","subcompact" +"hyundai","tiburon",2,2008,4,"manual(m5)","f",20,28,"r","subcompact" +"hyundai","tiburon",2,2008,4,"auto(l4)","f",20,27,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"auto(l4)","f",17,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m6)","f",16,24,"r","subcompact" +"hyundai","tiburon",2.7,2008,6,"manual(m5)","f",17,24,"r","subcompact" +"jeep","grand cherokee 4wd",3,2008,6,"auto(l5)","4",17,22,"d","suv" +"jeep","grand cherokee 4wd",3.7,2008,6,"auto(l5)","4",15,19,"r","suv" +"jeep","grand cherokee 4wd",4,1999,6,"auto(l4)","4",15,20,"r","suv" +"jeep","grand cherokee 4wd",4.7,1999,8,"auto(l4)","4",14,17,"r","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",9,12,"e","suv" +"jeep","grand cherokee 4wd",4.7,2008,8,"auto(l5)","4",14,19,"r","suv" +"jeep","grand cherokee 4wd",5.7,2008,8,"auto(l5)","4",13,18,"r","suv" +"jeep","grand cherokee 4wd",6.1,2008,8,"auto(l5)","4",11,14,"p","suv" +"land rover","range rover",4,1999,8,"auto(l4)","4",11,15,"p","suv" +"land rover","range rover",4.2,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.4,2008,8,"auto(s6)","4",12,18,"r","suv" +"land rover","range rover",4.6,1999,8,"auto(l4)","4",11,15,"p","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,17,"r","suv" +"lincoln","navigator 2wd",5.4,1999,8,"auto(l4)","r",11,16,"p","suv" +"lincoln","navigator 2wd",5.4,2008,8,"auto(l6)","r",12,18,"r","suv" +"mercury","mountaineer 4wd",4,1999,6,"auto(l5)","4",14,17,"r","suv" +"mercury","mountaineer 4wd",4,2008,6,"auto(l5)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",4.6,2008,8,"auto(l6)","4",13,19,"r","suv" +"mercury","mountaineer 4wd",5,1999,8,"auto(l4)","4",13,17,"r","suv" +"nissan","altima",2.4,1999,4,"manual(m5)","f",21,29,"r","compact" +"nissan","altima",2.4,1999,4,"auto(l4)","f",19,27,"r","compact" +"nissan","altima",2.5,2008,4,"auto(av)","f",23,31,"r","midsize" +"nissan","altima",2.5,2008,4,"manual(m6)","f",23,32,"r","midsize" +"nissan","altima",3.5,2008,6,"manual(m6)","f",19,27,"p","midsize" +"nissan","altima",3.5,2008,6,"auto(av)","f",19,26,"p","midsize" +"nissan","maxima",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"nissan","maxima",3,1999,6,"manual(m5)","f",19,25,"r","midsize" +"nissan","maxima",3.5,2008,6,"auto(av)","f",19,25,"p","midsize" +"nissan","pathfinder 4wd",3.3,1999,6,"auto(l4)","4",14,17,"r","suv" +"nissan","pathfinder 4wd",3.3,1999,6,"manual(m5)","4",15,17,"r","suv" +"nissan","pathfinder 4wd",4,2008,6,"auto(l5)","4",14,20,"p","suv" +"nissan","pathfinder 4wd",5.6,2008,8,"auto(s5)","4",12,18,"p","suv" +"pontiac","grand prix",3.1,1999,6,"auto(l4)","f",18,26,"r","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",16,26,"p","midsize" +"pontiac","grand prix",3.8,1999,6,"auto(l4)","f",17,27,"r","midsize" +"pontiac","grand prix",3.8,2008,6,"auto(l4)","f",18,28,"r","midsize" +"pontiac","grand prix",5.3,2008,8,"auto(s4)","f",16,25,"p","midsize" +"subaru","forester awd",2.5,1999,4,"manual(m5)","4",18,25,"r","suv" +"subaru","forester awd",2.5,1999,4,"auto(l4)","4",18,24,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",20,27,"r","suv" +"subaru","forester awd",2.5,2008,4,"manual(m5)","4",19,25,"p","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",20,26,"r","suv" +"subaru","forester awd",2.5,2008,4,"auto(l4)","4",18,23,"p","suv" +"subaru","impreza awd",2.2,1999,4,"auto(l4)","4",21,26,"r","subcompact" +"subaru","impreza awd",2.2,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"manual(m5)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,1999,4,"auto(l4)","4",19,26,"r","subcompact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"auto(s4)","4",20,27,"r","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",19,25,"p","compact" +"subaru","impreza awd",2.5,2008,4,"manual(m5)","4",20,27,"r","compact" +"toyota","4runner 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","suv" +"toyota","4runner 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","suv" +"toyota","4runner 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","suv" +"toyota","4runner 4wd",4,2008,6,"auto(l5)","4",16,20,"r","suv" +"toyota","4runner 4wd",4.7,2008,8,"auto(l5)","4",14,17,"r","suv" +"toyota","camry",2.2,1999,4,"manual(m5)","f",21,29,"r","midsize" +"toyota","camry",2.2,1999,4,"auto(l4)","f",21,27,"r","midsize" +"toyota","camry",2.4,2008,4,"manual(m5)","f",21,31,"r","midsize" +"toyota","camry",2.4,2008,4,"auto(l5)","f",21,31,"r","midsize" +"toyota","camry",3,1999,6,"auto(l4)","f",18,26,"r","midsize" +"toyota","camry",3,1999,6,"manual(m5)","f",18,26,"r","midsize" +"toyota","camry",3.5,2008,6,"auto(s6)","f",19,28,"r","midsize" +"toyota","camry solara",2.2,1999,4,"auto(l4)","f",21,27,"r","compact" +"toyota","camry solara",2.2,1999,4,"manual(m5)","f",21,29,"r","compact" +"toyota","camry solara",2.4,2008,4,"manual(m5)","f",21,31,"r","compact" +"toyota","camry solara",2.4,2008,4,"auto(s5)","f",22,31,"r","compact" +"toyota","camry solara",3,1999,6,"auto(l4)","f",18,26,"r","compact" +"toyota","camry solara",3,1999,6,"manual(m5)","f",18,26,"r","compact" +"toyota","camry solara",3.3,2008,6,"auto(s5)","f",18,27,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l3)","f",24,30,"r","compact" +"toyota","corolla",1.8,1999,4,"auto(l4)","f",24,33,"r","compact" +"toyota","corolla",1.8,1999,4,"manual(m5)","f",26,35,"r","compact" +"toyota","corolla",1.8,2008,4,"manual(m5)","f",28,37,"r","compact" +"toyota","corolla",1.8,2008,4,"auto(l4)","f",26,35,"r","compact" +"toyota","land cruiser wagon 4wd",4.7,1999,8,"auto(l4)","4",11,15,"r","suv" +"toyota","land cruiser wagon 4wd",5.7,2008,8,"auto(s6)","4",13,18,"r","suv" +"toyota","toyota tacoma 4wd",2.7,1999,4,"manual(m5)","4",15,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,1999,4,"auto(l4)","4",16,20,"r","pickup" +"toyota","toyota tacoma 4wd",2.7,2008,4,"manual(m5)","4",17,22,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"manual(m5)","4",15,17,"r","pickup" +"toyota","toyota tacoma 4wd",3.4,1999,6,"auto(l4)","4",15,19,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"manual(m6)","4",15,18,"r","pickup" +"toyota","toyota tacoma 4wd",4,2008,6,"auto(l5)","4",16,20,"r","pickup" +"volkswagen","gti",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","gti",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","gti",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","gti",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","gti",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","jetta",1.9,1999,4,"manual(m5)","f",33,44,"d","compact" +"volkswagen","jetta",2,1999,4,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2,1999,4,"auto(l4)","f",19,26,"r","compact" +"volkswagen","jetta",2,2008,4,"auto(s6)","f",22,29,"p","compact" +"volkswagen","jetta",2,2008,4,"manual(m6)","f",21,29,"p","compact" +"volkswagen","jetta",2.5,2008,5,"auto(s6)","f",21,29,"r","compact" +"volkswagen","jetta",2.5,2008,5,"manual(m5)","f",21,29,"r","compact" +"volkswagen","jetta",2.8,1999,6,"auto(l4)","f",16,23,"r","compact" +"volkswagen","jetta",2.8,1999,6,"manual(m5)","f",17,24,"r","compact" +"volkswagen","new beetle",1.9,1999,4,"manual(m5)","f",35,44,"d","subcompact" +"volkswagen","new beetle",1.9,1999,4,"auto(l4)","f",29,41,"d","subcompact" +"volkswagen","new beetle",2,1999,4,"manual(m5)","f",21,29,"r","subcompact" +"volkswagen","new beetle",2,1999,4,"auto(l4)","f",19,26,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"manual(m5)","f",20,28,"r","subcompact" +"volkswagen","new beetle",2.5,2008,5,"auto(s6)","f",20,29,"r","subcompact" +"volkswagen","passat",1.8,1999,4,"manual(m5)","f",21,29,"p","midsize" +"volkswagen","passat",1.8,1999,4,"auto(l5)","f",18,29,"p","midsize" +"volkswagen","passat",2,2008,4,"auto(s6)","f",19,28,"p","midsize" +"volkswagen","passat",2,2008,4,"manual(m6)","f",21,29,"p","midsize" +"volkswagen","passat",2.8,1999,6,"auto(l5)","f",16,26,"p","midsize" +"volkswagen","passat",2.8,1999,6,"manual(m5)","f",18,26,"p","midsize" +"volkswagen","passat",3.6,2008,6,"auto(s6)","f",17,26,"p","midsize" diff --git a/file_keep/eg_file/img/Seasonal_Ranges_Panel.xlsx b/file_keep/eg_file/img/Seasonal_Ranges_Panel.xlsx new file mode 100644 index 0000000..43053a5 Binary files /dev/null and b/file_keep/eg_file/img/Seasonal_Ranges_Panel.xlsx differ diff --git a/file_keep/eg_file/img/Seasonal_Ranges_Stacked.xlsx b/file_keep/eg_file/img/Seasonal_Ranges_Stacked.xlsx new file mode 100644 index 0000000..43053a5 Binary files /dev/null and b/file_keep/eg_file/img/Seasonal_Ranges_Stacked.xlsx differ diff --git a/file_keep/eg_file/img/Simplified_Gantt_Chart.xlsx b/file_keep/eg_file/img/Simplified_Gantt_Chart.xlsx new file mode 100644 index 0000000..c01f622 Binary files /dev/null and b/file_keep/eg_file/img/Simplified_Gantt_Chart.xlsx differ diff --git a/file_keep/eg_file/img/Slope_Chart.csv b/file_keep/eg_file/img/Slope_Chart.csv new file mode 100644 index 0000000..e2dd28a --- /dev/null +++ b/file_keep/eg_file/img/Slope_Chart.csv @@ -0,0 +1,6 @@ +"continent","1952","1957" +"Africa",1252.57246582115,1385.23606225577 +"Americas",4079.0625522,4616.04373316 +"Asia",5195.48400403939,4003.13293994242 +"Europe",5661.05743476,6963.01281593333 +"Oceania",10298.08565,11598.522455 diff --git a/file_keep/eg_file/img/Spie_chart.xlsx b/file_keep/eg_file/img/Spie_chart.xlsx new file mode 100644 index 0000000..b9a610f Binary files /dev/null and b/file_keep/eg_file/img/Spie_chart.xlsx differ diff --git a/file_keep/eg_file/img/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.xlsx b/file_keep/eg_file/img/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.xlsx new file mode 100644 index 0000000..0b9c43b Binary files /dev/null and b/file_keep/eg_file/img/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.xlsx differ diff --git a/file_keep/eg_file/img/Time_Series_with_Trend_Panel.xlsx b/file_keep/eg_file/img/Time_Series_with_Trend_Panel.xlsx new file mode 100644 index 0000000..46701d4 Binary files /dev/null and b/file_keep/eg_file/img/Time_Series_with_Trend_Panel.xlsx differ diff --git a/file_keep/eg_file/img/chord_Diagram_1.csv b/file_keep/eg_file/img/chord_Diagram_1.csv new file mode 100644 index 0000000..033bc65 --- /dev/null +++ b/file_keep/eg_file/img/chord_Diagram_1.csv @@ -0,0 +1,82 @@ +orig_reg,dest_reg,flow +Africa,Africa,3.498892 +Africa,Eastern Asia,0.007214 +Africa,Eastern Europe & Central Asia,0.03682 +Africa,Europe,1.744666 +Africa,Latin America & Caribbean,0.022516 +Africa,Northern America,0.825409 +Africa,Oceania,0.107072 +Africa,Southern Asia,0.000869 +Africa,Western Asia,0.675984 +Eastern Asia,Africa,0.021043 +Eastern Asia,Eastern Asia,2.178887 +Eastern Asia,Eastern Europe & Central Asia,0.085849 +Eastern Asia,Europe,0.565937 +Eastern Asia,Latin America & Caribbean,0.04099 +Eastern Asia,Northern America,1.593311 +Eastern Asia,Oceania,0.359676 +Eastern Asia,Southern Asia,0.002097 +Eastern Asia,Western Asia,0.380948 +Eastern Europe & Central Asia,Africa,0.00176 +Eastern Europe & Central Asia,Eastern Asia,0.025689 +Eastern Europe & Central Asia,Eastern Europe & Central Asia,1.354018 +Eastern Europe & Central Asia,Europe,0.566555 +Eastern Europe & Central Asia,Latin America & Caribbean,0.001438 +Eastern Europe & Central Asia,Northern America,0.043438 +Eastern Europe & Central Asia,Oceania,0.002543 +Eastern Europe & Central Asia,Southern Asia,0 +Eastern Europe & Central Asia,Western Asia,0.088158 +Europe,Africa,0.175242 +Europe,Eastern Asia,0.010825 +Europe,Eastern Europe & Central Asia,0.601772 +Europe,Europe,2.006166 +Europe,Latin America & Caribbean,0.168391 +Europe,Northern America,0.449838 +Europe,Oceania,0.222712 +Europe,Southern Asia,1.4e-05 +Europe,Western Asia,0.223626 +Latin America & Caribbean,Africa,0.004648 +Latin America & Caribbean,Eastern Asia,0.014653 +Latin America & Caribbean,Eastern Europe & Central Asia,0.009782 +Latin America & Caribbean,Europe,0.290048 +Latin America & Caribbean,Latin America & Caribbean,0.682464 +Latin America & Caribbean,Northern America,2.195385 +Latin America & Caribbean,Oceania,0.022709 +Latin America & Caribbean,Southern Asia,0 +Latin America & Caribbean,Western Asia,0.010966 +Northern America,Africa,0.011244 +Northern America,Eastern Asia,0.044196 +Northern America,Eastern Europe & Central Asia,0.172959 +Northern America,Europe,0.213784 +Northern America,Latin America & Caribbean,0.207948 +Northern America,Northern America,0.112105 +Northern America,Oceania,0.037692 +Northern America,Southern Asia,0 +Northern America,Western Asia,0.02632 +Oceania,Africa,0.006264 +Oceania,Eastern Asia,0.006773 +Oceania,Eastern Europe & Central Asia,0.015882 +Oceania,Europe,0.079224 +Oceania,Latin America & Caribbean,0.004123 +Oceania,Northern America,0.045753 +Oceania,Oceania,0.184822 +Oceania,Southern Asia,0 +Oceania,Western Asia,0.011272 +Southern Asia,Africa,0.051368 +Southern Asia,Eastern Asia,0.505476 +Southern Asia,Eastern Europe & Central Asia,0.042952 +Southern Asia,Europe,1.168379 +Southern Asia,Latin America & Caribbean,0.009744 +Southern Asia,Northern America,1.420783 +Southern Asia,Oceania,0.316133 +Southern Asia,Southern Asia,1.306389 +Southern Asia,Western Asia,3.106273 +Western Asia,Africa,0.244112 +Western Asia,Eastern Asia,0.007958 +Western Asia,Eastern Europe & Central Asia,0.395673 +Western Asia,Europe,0.431518 +Western Asia,Latin America & Caribbean,0.006412 +Western Asia,Northern America,0.323827 +Western Asia,Oceania,0.06514 +Western Asia,Southern Asia,0.036058 +Western Asia,Western Asia,4.519158 diff --git a/file_keep/eg_file/img/chord_Diagram_2.csv b/file_keep/eg_file/img/chord_Diagram_2.csv new file mode 100644 index 0000000..c9bc8d7 --- /dev/null +++ b/file_keep/eg_file/img/chord_Diagram_2.csv @@ -0,0 +1,10 @@ +region,order1,col1,reg1,reg2 +Northern America,1,#40A4D8,Northern,America +Africa,2,#33BEB7,Africa, +Europe,3,#B2C224,Europe, +Eastern Europe & Central Asia,4,#FECC2F,Eastern Europe,& Central Asia +Western Asia,5,#FBA127,Western,Asia +Southern Asia,6,#F66320,Southern,Asia +Eastern Asia,7,#DB3937,Eastern,Asia +Oceania,8,#A463D7,Oceania, +Latin America & Caribbean,9,#0C5BCE,Latin America,& Caribbean diff --git a/file_keep/eg_file/img/scatter_plot.csv b/file_keep/eg_file/img/scatter_plot.csv new file mode 100644 index 0000000..d5a9708 --- /dev/null +++ b/file_keep/eg_file/img/scatter_plot.csv @@ -0,0 +1,50 @@ +area,poptotal,color +0.052,66090,AAR +0.014,10626,AAR +0.022,14991,AAR +0.017,30806,AAR +0.018,5836,AAR +0.05,35688,AAR +0.017,5322,AAR +0.027,16805,AAR +0.024,13437,AAR +0.042,34418,AAR +0.03,15921,AAR +0.028,14460,AAR +0.029,33944,AAR +0.03,51644,AAR +0.026,19464,AAR +0.02,10670,AAR +0.038,77932,AAR +0.023,16516,AAR +0.025,19464,AAR +0.036,19595,AAR +0.014,7440,AAR +0.028,31704,AAR +0.044,20893,AAR +0.03,14275,AAR +0.025,40319,LHR +0.052,38080,LHR +0.019,6909,LHR +0.033,15317,LHR +0.026,32337,LHR +0.025,8499,LHR +0.047,21373,LHR +0.009,5189,LHR +0.023,8096,LHR +0.051,51159,AAL +0.067,30787,AAL +0.036,61067,AAL +0.029,10609,AAL +0.033,37020,AAL +0.023,20539,AAL +0.035,21821,AAL +0.02,11347,AAL +0.018,39413,AAL +0.042,56393,AAL +0.022,15972,AAL +0.043,34392,AAL +0.062,39301,AAL +0.036,30798,AAL +0.034,35244,AAL +0.05,47679,AAL diff --git a/file_keep/temp/测试.html b/file_keep/temp/测试.html new file mode 100644 index 0000000..eeec955 --- /dev/null +++ b/file_keep/temp/测试.html @@ -0,0 +1,16 @@ + + + + + Title + + + + + \ No newline at end of file diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..72f7d3f --- /dev/null +++ b/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Simple_Drawing.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/pages/__init__.py b/pages/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pages/admin.py b/pages/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/pages/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/pages/apps.py b/pages/apps.py new file mode 100644 index 0000000..acdb960 --- /dev/null +++ b/pages/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class PagesConfig(AppConfig): + name = 'pages' diff --git a/pages/migrations/0001_initial.py b/pages/migrations/0001_initial.py new file mode 100644 index 0000000..7dc1e3e --- /dev/null +++ b/pages/migrations/0001_initial.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1.7 on 2021-06-29 16:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Message', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('data', models.CharField(db_column='data', max_length=3000)), + ('time', models.CharField(db_column='time', max_length=3000)), + ('icon', models.CharField(db_column='icon', max_length=100)), + ], + ), + ] diff --git a/pages/migrations/__init__.py b/pages/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/pages/models.py b/pages/models.py new file mode 100644 index 0000000..8ae19bf --- /dev/null +++ b/pages/models.py @@ -0,0 +1,8 @@ +from django.db import models + + +class Message(models.Model): + id = models.IntegerField(primary_key=True) + data = models.CharField(db_column='data', max_length=3000) + time = models.CharField(db_column='time', max_length=3000) + icon = models.CharField(db_column='icon', max_length=100) \ No newline at end of file diff --git a/pages/tests.py b/pages/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/pages/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/pages/urls.py b/pages/urls.py new file mode 100644 index 0000000..6156f87 --- /dev/null +++ b/pages/urls.py @@ -0,0 +1,10 @@ +from django.conf.urls import url +from pages import views + +urlpatterns = [ + url("(.*\.html$)", views.out_page), + url('message', views.message), + url("upload", views.sort_load), + url("^$", views.index), + +] diff --git a/pages/views.py b/pages/views.py new file mode 100644 index 0000000..a263010 --- /dev/null +++ b/pages/views.py @@ -0,0 +1,97 @@ +import os +import random +import time + +from django.http import JsonResponse +from django.shortcuts import render + +from pages.models import Message +from chart.models import PlottingLibrary +from chart import tools + +path = os.getcwd() + + +# def tick(): +# file_list = os.listdir(f"{path}/file_keep") +# +# for i in file_list: +# try: +# int(i) +# except: +# pass +# +# else: +# os.system(f"rm -r {path}/file_keep/{i}") +# +# +# scheduler = BackgroundScheduler() +# scheduler.add_job(tick, 'interval', minutes=0.5) +# scheduler.start() + + +# 返回随机生成的头像 +def icon_create(): + icon_list = ["layui-icon-heart-fill", 'layui-icon-rate-half', 'layui-icon-rate', + 'layui-icon-cellphone', 'layui-icon-snowflake', 'layui-icon-read', + 'layui-icon-headset', 'layui-icon-release'] + return random.choice(icon_list) + + +# 返回前端时间 +def time_f(): + return time.strftime("%Y-%m-%d", time.localtime()) + + +# 返回首页 +def index(request): + return render(request, './page/index.html') + + +# 返回静态页面 +def out_page(request, page_name): + if "Dot_Plot.html" in page_name: + + return render(request, f'./chart/{page_name}') + else: + return render(request, f'./page/{page_name}', {"url": tools.url_}) + + +# 处理留言信息 +def message(request): + message_text = request.GET.get("message", None) + get_break = request.GET.get("get_break", None) + + if get_break == "1": + return JsonResponse({'data': [{"icon": i.icon, 'data': i.data, 'time': i.time} for i in Message.objects.all()]}) + + if message_text is None or len(message_text) < 1: + message_text = "You didn't make any comments and wasted dozens of K of traffic." + + db = Message(data=message_text, icon=icon_create(), time=time_f()) + db.save() + return JsonResponse({"data": message_text, 'icon': icon_create(), "time": time_f()}) + + +# 返回首页信息 +def sort_load(request): + page = int(request.GET.get("page")) + sort = request.GET.get("sort", "all") + + if sort == "all": + a = len(PlottingLibrary.objects.all()) + pages = tools.return_pages(a) + return_data = PlottingLibrary.objects.all()[(page - 1) * 12:] + if len(return_data) >= 12: + return_data = return_data[:12] + elif sort == "Scatter": + a = len(PlottingLibrary.objects.filter(sort="scatter")) + pages = tools.return_pages(a) + return_data = PlottingLibrary.objects.filter(sort="scatter")[(page - 1) * 12:] + if len(return_data) >= 12: + return_data = return_data[:12] + + data = {"pages": pages, 'data': [{"name": i.name, "url": i.url, "show_chart": i.index_img} + for i in return_data]} + + return JsonResponse(data) diff --git a/static/css/erjiyemiancaidan.css b/static/css/erjiyemiancaidan.css new file mode 100644 index 0000000..69fd7af --- /dev/null +++ b/static/css/erjiyemiancaidan.css @@ -0,0 +1,69 @@ +.zhuyemian{ + margin: 10px 22px 50px; + width: 97%; + height: 100vh; + float: left; + background-color: rgb(255, 255, 255); + border-radius: 15px; +} + +.zhuyemian div{ + display: inline-flex; +} +.menu{ + margin: 20px 0 20px 20px; + background-color: rgb(255, 255, 255); + border: 2px solid rgb(172, 171, 171); + + width: 30%; + height: 95vh; +} + +.tupian{ + margin: 20px 20px 20px 0; + background-color: rgb(255, 255, 255); + width: 65%; + height: 95vh; +} + +/*页面开头的表头*/ +.nav2{ + float: left; + width: 100%; + height: 50px; + background-color: rgb(254, 255, 253); + border-bottom: 2px solid rgb(172, 171, 171); + } + + /*取消块级元素,使其在一行*/ + .nav2 ul li { + display: inline-flex; + } + + /*将几个元素连接起来*/ + .nav2 ul li a { + + padding: 12px 30px; + font-size: 20px; + text-align: center; + text-decoration: none; + color: #666666; + font-family: Tahoma; + + } + + /*使其选中块就可以点击*/ + .nav2 li a { + display: block; + + } + + /*鼠标停留*/ + .nav2 li a:hover { + background-color: rgb(218, 224, 224); + } + + .active { + background-color: #3371f7; + } + \ No newline at end of file diff --git a/static/css/floatingShadow.css b/static/css/floatingShadow.css new file mode 100644 index 0000000..97e35c4 --- /dev/null +++ b/static/css/floatingShadow.css @@ -0,0 +1,68 @@ + +.box { + padding: 20px; + width: 982px; + height: 270px; + margin: 0 auto; + margin-top: 50px; + margin-bottom: 200px; +} +a { +text-decoration: none; +} +.box h1{ + margin-left: 20px; + text-align: left; + +} +.smallbox { +width: 235px; +height: 270px; +margin-left: 14px; +margin-top: 30px; +float: left; +background-color: #fff; +/* css3效果过渡 */ +transition: all .2s linear; +} + +.box .smallbox img { + +height: 160px; +margin: 0 37.5px 12px; +} +.box .smallbox h4 { +margin: 10px 10px 2px; +color: #333333; +font-size: 14px; +font-weight: 400; +text-align: center; +} +.box .smallbox .conten { +font-size: 12px; +color: #b0b0b0; +text-align: center; +margin: 0 auto; +} + +.smallbox:hover { +/* 盒子阴影 */ +box-shadow: 4px 20px 40px 5px rgba(0, 0, 0, .1); +/* 盒子向上移动效果,改变上外边距 */ +margin-top: 20px; +} +.box .aa { +margin-left: 0; +} + +.box .gengduo{ + display: block; + text-align: right; + text-decoration: none; + margin-top: 300px; + margin-bottom: 300px; + padding: 30px 80px; + font-size: 20px; + color: rgb(255, 248, 248); + font-family: Tahoma; +} \ No newline at end of file diff --git a/static/css/gengduofudong2.css b/static/css/gengduofudong2.css new file mode 100644 index 0000000..6db3941 --- /dev/null +++ b/static/css/gengduofudong2.css @@ -0,0 +1,68 @@ + +.box2 { + padding: 20px; + width: 982px; + height: 100px; + margin: 0 auto; + margin-top: 50px; + margin-bottom: 200px; +} +a { +text-decoration: none; +} +.box2 h1{ + margin-left: 20px; + text-align: left; + +} +.box2 .smallbox { +width: 235px; +height: 270px; +margin-left: 14px; +margin-top: 30px; +float: right; +background-color: #fff; +/* css3效果过渡 */ +transition: all .2s linear; +} + +.box2 .smallbox img { + +height: 160px; +margin: 0 37.5px 12px; +} +.box2 .smallbox h4 { +margin: 10px 10px 2px; +color: #333333; +font-size: 14px; +font-weight: 400; +text-align: center; +} +.box2 .smallbox .conten { +font-size: 12px; +color: #b0b0b0; +text-align: center; +margin: 0 auto; +} + +.box2 .smallbox:hover { +/* 盒子阴影 */ +box-shadow: 4px 20px 40px 5px rgba(0, 0, 0, .1); +/* 盒子向上移动效果,改变上外边距 */ +margin-top: 20px; +} +.box2 .aa { +margin-left: 0; +} + +.box2 .gengduo{ + display: block; + text-align: right; + text-decoration: none; + margin-top: 300px; + margin-bottom: 300px; + padding: 30px 80px; + font-size: 20px; + color: rgb(255, 248, 248); + font-family: Tahoma; +} \ No newline at end of file diff --git a/static/css/layui.css b/static/css/layui.css new file mode 100644 index 0000000..6ab58d3 --- /dev/null +++ b/static/css/layui.css @@ -0,0 +1,5825 @@ +.layui-inline, img { + display: inline-block; + vertical-align: middle +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 400 +} + +a, body { + color: #333 +} + +.layui-edge, .layui-header, .layui-inline, .layui-main { + position: relative +} + +.layui-edge, hr { + height: 0; + overflow: hidden +} + +.layui-layout-body, .layui-side, .layui-side-scroll { + overflow-x: hidden +} + +.layui-edge, .layui-elip, hr { + overflow: hidden +} + +.layui-btn, .layui-edge, .layui-inline, img { + vertical-align: middle +} + +.layui-btn, .layui-disabled, .layui-icon, .layui-unselect { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none +} + +blockquote, body, button, dd, div, dl, dt, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, pre, td, textarea, th, ul { + margin: 0; + padding: 0; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0) +} + +a:active, a:hover { + outline: 0 +} + +img { + border: none +} + +li { + list-style: none +} + +table { + border-collapse: collapse; + border-spacing: 0 +} + +h4, h5, h6 { + font-size: 100% +} + +button, input, optgroup, option, select, textarea { + font-family: inherit; + font-size: inherit; + font-style: inherit; + font-weight: inherit; + outline: 0 +} + +pre { + white-space: pre-wrap; + white-space: -moz-pre-wrap; + white-space: -pre-wrap; + white-space: -o-pre-wrap; + word-wrap: break-word +} + +body { + line-height: 1.6; + color: rgba(0, 0, 0, .85); + font: 14px Helvetica Neue, Helvetica, PingFang SC, Tahoma, Arial, sans-serif +} + +hr { + line-height: 0; + margin: 10px 0; + padding: 0; + border: none !important; + border-bottom: 1px solid #eee !important; + clear: both; + background: 0 0 +} + +a { + text-decoration: none +} + +a:hover { + color: #777 +} + +a cite { + font-style: normal; + *cursor: pointer +} + +.layui-border-box, .layui-border-box * { + box-sizing: border-box +} + +.layui-box, .layui-box * { + box-sizing: content-box +} + +.layui-clear { + clear: both; + *zoom: 1 +} + +.layui-clear:after { + content: '\20'; + clear: both; + *zoom: 1; + display: block; + height: 0 +} + +.layui-inline { + *display: inline; + *zoom: 1 +} + +.layui-btn, .layui-btn-group, .layui-edge { + display: inline-block +} + +.layui-edge { + width: 0; + border-width: 6px; + border-style: dashed; + border-color: transparent +} + +.layui-edge-top { + top: -4px; + border-bottom-color: #999; + border-bottom-style: solid +} + +.layui-edge-right { + border-left-color: #999; + border-left-style: solid +} + +.layui-edge-bottom { + top: 2px; + border-top-color: #999; + border-top-style: solid +} + +.layui-edge-left { + border-right-color: #999; + border-right-style: solid +} + +.layui-elip { + text-overflow: ellipsis; + white-space: nowrap +} + +.layui-disabled, .layui-disabled:hover { + color: #d2d2d2 !important; + cursor: not-allowed !important +} + +.layui-circle { + border-radius: 100% +} + +.layui-show { + display: block !important +} + +.layui-hide { + display: none !important +} + +.layui-show-v { + visibility: visible !important +} + +.layui-hide-v { + visibility: hidden !important +} + +@font-face { + font-family: layui-icon; + src: url(../font/iconfont.eot?v=256); + src: url(../font/iconfont.eot?v=256#iefix) format('embedded-opentype'), url(../font/iconfont.woff2?v=256) format('woff2'), url(../font/iconfont.woff?v=256) format('woff'), url(../font/iconfont.ttf?v=256) format('truetype'), url(../font/iconfont.svg?v=256#layui-icon) format('svg') +} + +.layui-icon { + font-family: layui-icon !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale +} + +.layui-icon-reply-fill:before { + content: "\e611" +} + +.layui-icon-set-fill:before { + content: "\e614" +} + +.layui-icon-menu-fill:before { + content: "\e60f" +} + +.layui-icon-search:before { + content: "\e615" +} + +.layui-icon-share:before { + content: "\e641" +} + +.layui-icon-set-sm:before { + content: "\e620" +} + +.layui-icon-engine:before { + content: "\e628" +} + +.layui-icon-close:before { + content: "\1006" +} + +.layui-icon-close-fill:before { + content: "\1007" +} + +.layui-icon-chart-screen:before { + content: "\e629" +} + +.layui-icon-star:before { + content: "\e600" +} + +.layui-icon-circle-dot:before { + content: "\e617" +} + +.layui-icon-chat:before { + content: "\e606" +} + +.layui-icon-release:before { + content: "\e609" +} + +.layui-icon-list:before { + content: "\e60a" +} + +.layui-icon-chart:before { + content: "\e62c" +} + +.layui-icon-ok-circle:before { + content: "\1005" +} + +.layui-icon-layim-theme:before { + content: "\e61b" +} + +.layui-icon-table:before { + content: "\e62d" +} + +.layui-icon-right:before { + content: "\e602" +} + +.layui-icon-left:before { + content: "\e603" +} + +.layui-icon-cart-simple:before { + content: "\e698" +} + +.layui-icon-face-cry:before { + content: "\e69c" +} + +.layui-icon-face-smile:before { + content: "\e6af" +} + +.layui-icon-survey:before { + content: "\e6b2" +} + +.layui-icon-tree:before { + content: "\e62e" +} + +.layui-icon-ie:before { + content: "\e7bb" +} + +.layui-icon-upload-circle:before { + content: "\e62f" +} + +.layui-icon-add-circle:before { + content: "\e61f" +} + +.layui-icon-download-circle:before { + content: "\e601" +} + +.layui-icon-templeate-1:before { + content: "\e630" +} + +.layui-icon-util:before { + content: "\e631" +} + +.layui-icon-face-surprised:before { + content: "\e664" +} + +.layui-icon-edit:before { + content: "\e642" +} + +.layui-icon-speaker:before { + content: "\e645" +} + +.layui-icon-down:before { + content: "\e61a" +} + +.layui-icon-file:before { + content: "\e621" +} + +.layui-icon-layouts:before { + content: "\e632" +} + +.layui-icon-rate-half:before { + content: "\e6c9" +} + +.layui-icon-add-circle-fine:before { + content: "\e608" +} + +.layui-icon-prev-circle:before { + content: "\e633" +} + +.layui-icon-read:before { + content: "\e705" +} + +.layui-icon-404:before { + content: "\e61c" +} + +.layui-icon-carousel:before { + content: "\e634" +} + +.layui-icon-help:before { + content: "\e607" +} + +.layui-icon-code-circle:before { + content: "\e635" +} + +.layui-icon-windows:before { + content: "\e67f" +} + +.layui-icon-water:before { + content: "\e636" +} + +.layui-icon-username:before { + content: "\e66f" +} + +.layui-icon-find-fill:before { + content: "\e670" +} + +.layui-icon-about:before { + content: "\e60b" +} + +.layui-icon-location:before { + content: "\e715" +} + +.layui-icon-up:before { + content: "\e619" +} + +.layui-icon-pause:before { + content: "\e651" +} + +.layui-icon-date:before { + content: "\e637" +} + +.layui-icon-layim-uploadfile:before { + content: "\e61d" +} + +.layui-icon-delete:before { + content: "\e640" +} + +.layui-icon-play:before { + content: "\e652" +} + +.layui-icon-top:before { + content: "\e604" +} + +.layui-icon-firefox:before { + content: "\e686" +} + +.layui-icon-friends:before { + content: "\e612" +} + +.layui-icon-refresh-3:before { + content: "\e9aa" +} + +.layui-icon-ok:before { + content: "\e605" +} + +.layui-icon-layer:before { + content: "\e638" +} + +.layui-icon-face-smile-fine:before { + content: "\e60c" +} + +.layui-icon-dollar:before { + content: "\e659" +} + +.layui-icon-group:before { + content: "\e613" +} + +.layui-icon-layim-download:before { + content: "\e61e" +} + +.layui-icon-picture-fine:before { + content: "\e60d" +} + +.layui-icon-link:before { + content: "\e64c" +} + +.layui-icon-diamond:before { + content: "\e735" +} + +.layui-icon-log:before { + content: "\e60e" +} + +.layui-icon-key:before { + content: "\e683" +} + +.layui-icon-rate-solid:before { + content: "\e67a" +} + +.layui-icon-fonts-del:before { + content: "\e64f" +} + +.layui-icon-unlink:before { + content: "\e64d" +} + +.layui-icon-fonts-clear:before { + content: "\e639" +} + +.layui-icon-triangle-r:before { + content: "\e623" +} + +.layui-icon-circle:before { + content: "\e63f" +} + +.layui-icon-radio:before { + content: "\e643" +} + +.layui-icon-align-center:before { + content: "\e647" +} + +.layui-icon-align-right:before { + content: "\e648" +} + +.layui-icon-align-left:before { + content: "\e649" +} + +.layui-icon-loading-1:before { + content: "\e63e" +} + +.layui-icon-return:before { + content: "\e65c" +} + +.layui-icon-fonts-strong:before { + content: "\e62b" +} + +.layui-icon-upload:before { + content: "\e67c" +} + +.layui-icon-dialogue:before { + content: "\e63a" +} + +.layui-icon-video:before { + content: "\e6ed" +} + +.layui-icon-headset:before { + content: "\e6fc" +} + +.layui-icon-cellphone-fine:before { + content: "\e63b" +} + +.layui-icon-add-1:before { + content: "\e654" +} + +.layui-icon-face-smile-b:before { + content: "\e650" +} + +.layui-icon-fonts-html:before { + content: "\e64b" +} + +.layui-icon-screen-full:before { + content: "\e622" +} + +.layui-icon-form:before { + content: "\e63c" +} + +.layui-icon-cart:before { + content: "\e657" +} + +.layui-icon-camera-fill:before { + content: "\e65d" +} + +.layui-icon-tabs:before { + content: "\e62a" +} + +.layui-icon-heart-fill:before { + content: "\e68f" +} + +.layui-icon-fonts-code:before { + content: "\e64e" +} + +.layui-icon-ios:before { + content: "\e680" +} + +.layui-icon-at:before { + content: "\e687" +} + +.layui-icon-fire:before { + content: "\e756" +} + +.layui-icon-set:before { + content: "\e716" +} + +.layui-icon-fonts-u:before { + content: "\e646" +} + +.layui-icon-triangle-d:before { + content: "\e625" +} + +.layui-icon-tips:before { + content: "\e702" +} + +.layui-icon-picture:before { + content: "\e64a" +} + +.layui-icon-more-vertical:before { + content: "\e671" +} + +.layui-icon-bluetooth:before { + content: "\e689" +} + +.layui-icon-flag:before { + content: "\e66c" +} + +.layui-icon-loading:before { + content: "\e63d" +} + +.layui-icon-fonts-i:before { + content: "\e644" +} + +.layui-icon-refresh-1:before { + content: "\e666" +} + +.layui-icon-rmb:before { + content: "\e65e" +} + +.layui-icon-addition:before { + content: "\e624" +} + +.layui-icon-home:before { + content: "\e68e" +} + +.layui-icon-time:before { + content: "\e68d" +} + +.layui-icon-user:before { + content: "\e770" +} + +.layui-icon-notice:before { + content: "\e667" +} + +.layui-icon-chrome:before { + content: "\e68a" +} + +.layui-icon-edge:before { + content: "\e68b" +} + +.layui-icon-login-weibo:before { + content: "\e675" +} + +.layui-icon-voice:before { + content: "\e688" +} + +.layui-icon-upload-drag:before { + content: "\e681" +} + +.layui-icon-login-qq:before { + content: "\e676" +} + +.layui-icon-snowflake:before { + content: "\e6b1" +} + +.layui-icon-heart:before { + content: "\e68c" +} + +.layui-icon-logout:before { + content: "\e682" +} + +.layui-icon-file-b:before { + content: "\e655" +} + +.layui-icon-template:before { + content: "\e663" +} + +.layui-icon-transfer:before { + content: "\e691" +} + +.layui-icon-auz:before { + content: "\e672" +} + +.layui-icon-console:before { + content: "\e665" +} + +.layui-icon-app:before { + content: "\e653" +} + +.layui-icon-prev:before { + content: "\e65a" +} + +.layui-icon-website:before { + content: "\e7ae" +} + +.layui-icon-next:before { + content: "\e65b" +} + +.layui-icon-component:before { + content: "\e857" +} + +.layui-icon-android:before { + content: "\e684" +} + +.layui-icon-more:before { + content: "\e65f" +} + +.layui-icon-login-wechat:before { + content: "\e677" +} + +.layui-icon-shrink-right:before { + content: "\e668" +} + +.layui-icon-spread-left:before { + content: "\e66b" +} + +.layui-icon-camera:before { + content: "\e660" +} + +.layui-icon-note:before { + content: "\e66e" +} + +.layui-icon-refresh:before { + content: "\e669" +} + +.layui-icon-female:before { + content: "\e661" +} + +.layui-icon-male:before { + content: "\e662" +} + +.layui-icon-screen-restore:before { + content: "\e758" +} + +.layui-icon-password:before { + content: "\e673" +} + +.layui-icon-senior:before { + content: "\e674" +} + +.layui-icon-theme:before { + content: "\e66a" +} + +.layui-icon-tread:before { + content: "\e6c5" +} + +.layui-icon-praise:before { + content: "\e6c6" +} + +.layui-icon-star-fill:before { + content: "\e658" +} + +.layui-icon-rate:before { + content: "\e67b" +} + +.layui-icon-template-1:before { + content: "\e656" +} + +.layui-icon-vercode:before { + content: "\e679" +} + +.layui-icon-service:before { + content: "\e626" +} + +.layui-icon-cellphone:before { + content: "\e678" +} + +.layui-icon-print:before { + content: "\e66d" +} + +.layui-icon-cols:before { + content: "\e610" +} + +.layui-icon-wifi:before { + content: "\e7e0" +} + +.layui-icon-export:before { + content: "\e67d" +} + +.layui-icon-rss:before { + content: "\e808" +} + +.layui-icon-slider:before { + content: "\e714" +} + +.layui-icon-email:before { + content: "\e618" +} + +.layui-icon-subtraction:before { + content: "\e67e" +} + +.layui-icon-mike:before { + content: "\e6dc" +} + +.layui-icon-light:before { + content: "\e748" +} + +.layui-icon-gift:before { + content: "\e627" +} + +.layui-icon-mute:before { + content: "\e685" +} + +.layui-icon-reduce-circle:before { + content: "\e616" +} + +.layui-icon-music:before { + content: "\e690" +} + +.layui-main { + width: 1140px; + margin: 0 auto +} + +.layui-header { + z-index: 1000; + height: 60px +} + +.layui-header a:hover { + transition: all .5s; + -webkit-transition: all .5s +} + +.layui-side { + position: fixed; + left: 0; + top: 0; + bottom: 0; + z-index: 999; + width: 300px +} + +.layui-side-scroll { + position: relative; + width: 320px; + height: 100% +} + +.layui-body { + position: relative; + left: 300px; + right: 0; + top: 0; + bottom: 0; + z-index: 900; + width: auto; + box-sizing: border-box +} + +.layui-layout-admin .layui-header { + position: fixed; + top: 0; + left: 0; + right: 0; + background-color: #23262E +} + +.layui-layout-admin .layui-side { + top: 60px; + width: 300px; + overflow-x: hidden +} + +.layui-layout-admin .layui-body { + position: absolute; + top: 60px; + padding-bottom: 44px +} + +.layui-layout-admin .layui-main { + width: auto; + margin: 0 15px +} + +.layui-layout-admin .layui-footer { + position: fixed; + left: 200px; + right: 0; + bottom: 0; + z-index: 990; + height: 44px; + line-height: 44px; + padding: 0 15px; + box-shadow: -1px 0 4px rgb(0 0 0 / 12%); + background-color: #FAFAFA +} + +.layui-layout-admin .layui-logo { + position: absolute; + left: 0; + top: 0; + width: 300px; + height: 100%; + line-height: 60px; + text-align: center; + color: #009688; + font-size: 16px; + box-shadow: 0 1px 2px 0 rgb(0 0 0 / 15%) +} + +.layui-layout-admin .layui-header .layui-nav { + background: 0 0 +} + +.layui-layout-left { + position: absolute !important; + left: 200px; + top: 0 +} + +.layui-layout-right { + position: absolute !important; + right: 0; + top: 0 +} + +.layui-container { + position: relative; + margin: 0 auto; + padding: 0 15px; + box-sizing: border-box +} + +.layui-fluid { + position: relative; + margin: 0 auto; + padding: 0 15px +} + +.layui-row:after, .layui-row:before { + content: ""; + display: block; + clear: both +} + +.layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9, .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9, .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9, .layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 { + position: relative; + display: block; + box-sizing: border-box +} + +.layui-col-xs1, .layui-col-xs10, .layui-col-xs11, .layui-col-xs12, .layui-col-xs2, .layui-col-xs3, .layui-col-xs4, .layui-col-xs5, .layui-col-xs6, .layui-col-xs7, .layui-col-xs8, .layui-col-xs9 { + float: left +} + +.layui-col-xs1 { + width: 8.33333333% +} + +.layui-col-xs2 { + width: 16.66666667% +} + +.layui-col-xs3 { + width: 25% +} + +.layui-col-xs4 { + width: 33.33333333% +} + +.layui-col-xs5 { + width: 41.66666667% +} + +.layui-col-xs6 { + width: 50% +} + +.layui-col-xs7 { + width: 58.33333333% +} + +.layui-col-xs8 { + width: 66.66666667% +} + +.layui-col-xs9 { + width: 75% +} + +.layui-col-xs10 { + width: 83.33333333% +} + +.layui-col-xs11 { + width: 91.66666667% +} + +.layui-col-xs12 { + width: 100% +} + +.layui-col-xs-offset1 { + margin-left: 8.33333333% +} + +.layui-col-xs-offset2 { + margin-left: 16.66666667% +} + +.layui-col-xs-offset3 { + margin-left: 25% +} + +.layui-col-xs-offset4 { + margin-left: 33.33333333% +} + +.layui-col-xs-offset5 { + margin-left: 41.66666667% +} + +.layui-col-xs-offset6 { + margin-left: 50% +} + +.layui-col-xs-offset7 { + margin-left: 58.33333333% +} + +.layui-col-xs-offset8 { + margin-left: 66.66666667% +} + +.layui-col-xs-offset9 { + margin-left: 75% +} + +.layui-col-xs-offset10 { + margin-left: 83.33333333% +} + +.layui-col-xs-offset11 { + margin-left: 91.66666667% +} + +.layui-col-xs-offset12 { + margin-left: 100% +} + +@media screen and (max-width: 768px) { + .layui-hide-xs { + display: none !important + } + + .layui-show-xs-block { + display: block !important + } + + .layui-show-xs-inline { + display: inline !important + } + + .layui-show-xs-inline-block { + display: inline-block !important + } +} + +@media screen and (min-width: 768px) { + .layui-container { + width: 750px + } + + .layui-hide-sm { + display: none !important + } + + .layui-show-sm-block { + display: block !important + } + + .layui-show-sm-inline { + display: inline !important + } + + .layui-show-sm-inline-block { + display: inline-block !important + } + + .layui-col-sm1, .layui-col-sm10, .layui-col-sm11, .layui-col-sm12, .layui-col-sm2, .layui-col-sm3, .layui-col-sm4, .layui-col-sm5, .layui-col-sm6, .layui-col-sm7, .layui-col-sm8, .layui-col-sm9 { + float: left + } + + .layui-col-sm1 { + width: 8.33333333% + } + + .layui-col-sm2 { + width: 16.66666667% + } + + .layui-col-sm3 { + width: 25% + } + + .layui-col-sm4 { + width: 33.33333333% + } + + .layui-col-sm5 { + width: 41.66666667% + } + + .layui-col-sm6 { + width: 50% + } + + .layui-col-sm7 { + width: 58.33333333% + } + + .layui-col-sm8 { + width: 66.66666667% + } + + .layui-col-sm9 { + width: 75% + } + + .layui-col-sm10 { + width: 83.33333333% + } + + .layui-col-sm11 { + width: 91.66666667% + } + + .layui-col-sm12 { + width: 100% + } + + .layui-col-sm-offset1 { + margin-left: 8.33333333% + } + + .layui-col-sm-offset2 { + margin-left: 16.66666667% + } + + .layui-col-sm-offset3 { + margin-left: 25% + } + + .layui-col-sm-offset4 { + margin-left: 33.33333333% + } + + .layui-col-sm-offset5 { + margin-left: 41.66666667% + } + + .layui-col-sm-offset6 { + margin-left: 50% + } + + .layui-col-sm-offset7 { + margin-left: 58.33333333% + } + + .layui-col-sm-offset8 { + margin-left: 66.66666667% + } + + .layui-col-sm-offset9 { + margin-left: 75% + } + + .layui-col-sm-offset10 { + margin-left: 83.33333333% + } + + .layui-col-sm-offset11 { + margin-left: 91.66666667% + } + + .layui-col-sm-offset12 { + margin-left: 100% + } +} + +@media screen and (min-width: 992px) { + .layui-container { + width: 970px + } + + .layui-hide-md { + display: none !important + } + + .layui-show-md-block { + display: block !important + } + + .layui-show-md-inline { + display: inline !important + } + + .layui-show-md-inline-block { + display: inline-block !important + } + + .layui-col-md1, .layui-col-md10, .layui-col-md11, .layui-col-md12, .layui-col-md2, .layui-col-md3, .layui-col-md4, .layui-col-md5, .layui-col-md6, .layui-col-md7, .layui-col-md8, .layui-col-md9 { + float: left + } + + .layui-col-md1 { + width: 8.33333333% + } + + .layui-col-md2 { + width: 16.66666667% + } + + .layui-col-md3 { + width: 25% + } + + .layui-col-md4 { + width: 33.33333333% + } + + .layui-col-md5 { + width: 41.66666667% + } + + .layui-col-md6 { + width: 50% + } + + .layui-col-md7 { + width: 58.33333333% + } + + .layui-col-md8 { + width: 66.66666667% + } + + .layui-col-md9 { + width: 75% + } + + .layui-col-md10 { + width: 83.33333333% + } + + .layui-col-md11 { + width: 91.66666667% + } + + .layui-col-md12 { + width: 100% + } + + .layui-col-md-offset1 { + margin-left: 8.33333333% + } + + .layui-col-md-offset2 { + margin-left: 16.66666667% + } + + .layui-col-md-offset3 { + margin-left: 25% + } + + .layui-col-md-offset4 { + margin-left: 33.33333333% + } + + .layui-col-md-offset5 { + margin-left: 41.66666667% + } + + .layui-col-md-offset6 { + margin-left: 50% + } + + .layui-col-md-offset7 { + margin-left: 58.33333333% + } + + .layui-col-md-offset8 { + margin-left: 66.66666667% + } + + .layui-col-md-offset9 { + margin-left: 75% + } + + .layui-col-md-offset10 { + margin-left: 83.33333333% + } + + .layui-col-md-offset11 { + margin-left: 91.66666667% + } + + .layui-col-md-offset12 { + margin-left: 100% + } +} + +@media screen and (min-width: 1200px) { + .layui-container { + width: 1170px + } + + .layui-hide-lg { + display: none !important + } + + .layui-show-lg-block { + display: block !important + } + + .layui-show-lg-inline { + display: inline !important + } + + .layui-show-lg-inline-block { + display: inline-block !important + } + + .layui-col-lg1, .layui-col-lg10, .layui-col-lg11, .layui-col-lg12, .layui-col-lg2, .layui-col-lg3, .layui-col-lg4, .layui-col-lg5, .layui-col-lg6, .layui-col-lg7, .layui-col-lg8, .layui-col-lg9 { + float: left + } + + .layui-col-lg1 { + width: 8.33333333% + } + + .layui-col-lg2 { + width: 16.66666667% + } + + .layui-col-lg3 { + width: 25% + } + + .layui-col-lg4 { + width: 33.33333333% + } + + .layui-col-lg5 { + width: 41.66666667% + } + + .layui-col-lg6 { + width: 50% + } + + .layui-col-lg7 { + width: 58.33333333% + } + + .layui-col-lg8 { + width: 66.66666667% + } + + .layui-col-lg9 { + width: 75% + } + + .layui-col-lg10 { + width: 83.33333333% + } + + .layui-col-lg11 { + width: 91.66666667% + } + + .layui-col-lg12 { + width: 100% + } + + .layui-col-lg-offset1 { + margin-left: 8.33333333% + } + + .layui-col-lg-offset2 { + margin-left: 16.66666667% + } + + .layui-col-lg-offset3 { + margin-left: 25% + } + + .layui-col-lg-offset4 { + margin-left: 33.33333333% + } + + .layui-col-lg-offset5 { + margin-left: 41.66666667% + } + + .layui-col-lg-offset6 { + margin-left: 50% + } + + .layui-col-lg-offset7 { + margin-left: 58.33333333% + } + + .layui-col-lg-offset8 { + margin-left: 66.66666667% + } + + .layui-col-lg-offset9 { + margin-left: 75% + } + + .layui-col-lg-offset10 { + margin-left: 83.33333333% + } + + .layui-col-lg-offset11 { + margin-left: 91.66666667% + } + + .layui-col-lg-offset12 { + margin-left: 100% + } +} + +.layui-col-space1 { + margin: -.5px +} + +.layui-col-space1 > * { + padding: .5px +} + +.layui-col-space2 { + margin: -1px +} + +.layui-col-space2 > * { + padding: 1px +} + +.layui-col-space4 { + margin: -2px +} + +.layui-col-space4 > * { + padding: 2px +} + +.layui-col-space5 { + margin: -2.5px +} + +.layui-col-space5 > * { + padding: 2.5px +} + +.layui-col-space6 { + margin: -3px +} + +.layui-col-space6 > * { + padding: 3px +} + +.layui-col-space8 { + margin: -4px +} + +.layui-col-space8 > * { + padding: 4px +} + +.layui-col-space10 { + margin: -5px +} + +.layui-col-space10 > * { + padding: 5px +} + +.layui-col-space12 { + margin: -6px +} + +.layui-col-space12 > * { + padding: 6px +} + +.layui-col-space14 { + margin: -7px +} + +.layui-col-space14 > * { + padding: 7px +} + +.layui-col-space15 { + margin: -7.5px +} + +.layui-col-space15 > * { + padding: 7.5px +} + +.layui-col-space16 { + margin: -8px +} + +.layui-col-space16 > * { + padding: 8px +} + +.layui-col-space18 { + margin: -9px +} + +.layui-col-space18 > * { + padding: 9px +} + +.layui-col-space20 { + margin: -10px +} + +.layui-col-space20 > * { + padding: 10px +} + +.layui-col-space22 { + margin: -11px +} + +.layui-col-space22 > * { + padding: 11px +} + +.layui-col-space24 { + margin: -12px +} + +.layui-col-space24 > * { + padding: 12px +} + +.layui-col-space25 { + margin: -12.5px +} + +.layui-col-space25 > * { + padding: 12.5px +} + +.layui-col-space26 { + margin: -13px +} + +.layui-col-space26 > * { + padding: 13px +} + +.layui-col-space28 { + margin: -14px +} + +.layui-col-space28 > * { + padding: 14px +} + +.layui-col-space30 { + margin: -15px +} + +.layui-col-space30 > * { + padding: 15px +} + +.layui-btn, .layui-input, .layui-select, .layui-textarea, .layui-upload-button { + outline: 0; + -webkit-appearance: none; + transition: all .3s; + -webkit-transition: all .3s; + box-sizing: border-box +} + +.layui-elem-quote { + margin-bottom: 10px; + padding: 15px; + line-height: 1.6; + border-left: 5px solid #5FB878; + border-radius: 0 2px 2px 0; + background-color: #FAFAFA +} + +.layui-quote-nm { + border-style: solid; + border-width: 1px 1px 1px 5px; + background: 0 0 +} + +.layui-elem-field { + margin-bottom: 10px; + padding: 0; + border-width: 1px; + border-style: solid +} + +.layui-elem-field legend { + margin-left: 20px; + padding: 0 10px; + font-size: 20px; + font-weight: 300 +} + +.layui-field-title { + margin: 10px 0 20px; + border-width: 1px 0 0 +} + +.layui-field-box { + padding: 15px +} + +.layui-field-title .layui-field-box { + padding: 10px 0 +} + +.layui-progress { + position: relative; + height: 6px; + border-radius: 20px; + background-color: #eee +} + +.layui-progress-bar { + position: absolute; + left: 0; + top: 0; + width: 0; + max-width: 100%; + height: 6px; + border-radius: 20px; + text-align: right; + background-color: #5FB878; + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-progress-big, .layui-progress-big .layui-progress-bar { + height: 18px; + line-height: 18px +} + +.layui-progress-text { + position: relative; + top: -20px; + line-height: 18px; + font-size: 12px; + color: #666 +} + +.layui-progress-big .layui-progress-text { + position: static; + padding: 0 10px; + color: #fff +} + +.layui-collapse { + border-width: 1px; + border-style: solid; + border-radius: 2px +} + +.layui-colla-content, .layui-colla-item { + border-top-width: 1px; + border-top-style: solid +} + +.layui-colla-item:first-child { + border-top: none +} + +.layui-colla-title { + position: relative; + height: 42px; + line-height: 42px; + padding: 0 15px 0 35px; + color: #333; + background-color: #FAFAFA; + cursor: pointer; + font-size: 14px; + overflow: hidden +} + +.layui-colla-content { + display: none; + padding: 10px 15px; + line-height: 1.6; + color: #666 +} + +.layui-colla-icon { + position: absolute; + left: 15px; + top: 0; + font-size: 14px +} + +.layui-card-body, .layui-card-header, .layui-form-label, .layui-form-mid, .layui-form-select, .layui-input-block, .layui-input-inline, .layui-panel, .layui-textarea { + position: relative +} + +.layui-card { + margin-bottom: 15px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05) +} + +.layui-form-select dl, .layui-panel { + box-shadow: 1px 1px 4px rgb(0 0 0 / 8%) +} + +.layui-card:last-child { + margin-bottom: 0 +} + +.layui-card-header { + height: 42px; + line-height: 42px; + padding: 0 15px; + border-bottom: 1px solid #f6f6f6; + color: #333; + border-radius: 2px 2px 0 0; + font-size: 14px +} + +.layui-card-body { + padding: 10px 15px; + line-height: 24px +} + +.layui-card-body[pad15] { + padding: 15px +} + +.layui-card-body[pad20] { + padding: 20px +} + +.layui-card-body .layui-table { + margin: 5px 0 +} + +.layui-card .layui-tab { + margin: 0 +} + +.layui-panel { + border-width: 1px; + border-style: solid; + border-radius: 2px; + background-color: #fff; + color: #666 +} + +.layui-bg-black, .layui-bg-blue, .layui-bg-cyan, .layui-bg-green, .layui-bg-orange, .layui-bg-red { + color: #fff !important +} + +.layui-panel-window { + position: relative; + padding: 15px; + border-radius: 0; + border-top: 5px solid #eee; + background-color: #fff +} + +.layui-border, .layui-border-black, .layui-border-blue, .layui-border-cyan, .layui-border-green, .layui-border-orange, .layui-border-red { + border-width: 1px; + border-style: solid +} + +.layui-auxiliar-moving { + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + width: 100%; + height: 100%; + background: 0 0; + z-index: 9999999999 +} + +.layui-bg-red { + background-color: #FF5722 !important +} + +.layui-bg-orange { + background-color: #FFB800 !important +} + +.layui-bg-green { + background-color: #009688 !important +} + +.layui-bg-cyan { + background-color: #2F4056 !important +} + +.layui-bg-blue { + background-color: #1E9FFF !important +} + +.layui-bg-black { + background-color: #393D49 !important +} + +.layui-bg-gray { + background-color: #FAFAFA !important; + color: #666 !important +} + +.layui-badge-rim, .layui-border, .layui-colla-content, .layui-colla-item, .layui-collapse, .layui-elem-field, .layui-form-pane .layui-form-item[pane], .layui-form-pane .layui-form-label, .layui-input, .layui-layedit, .layui-layedit-tool, .layui-panel, .layui-quote-nm, .layui-select, .layui-tab-bar, .layui-tab-card, .layui-tab-title, .layui-tab-title .layui-this:after, .layui-textarea { + border-color: #eee +} + +.layui-border { + color: #666 !important +} + +.layui-border-red { + border-color: #FF5722 !important; + color: #FF5722 !important +} + +.layui-border-orange { + border-color: #FFB800 !important; + color: #FFB800 !important +} + +.layui-border-green { + border-color: #009688 !important; + color: #009688 !important +} + +.layui-border-cyan { + border-color: #2F4056 !important; + color: #2F4056 !important +} + +.layui-border-blue { + border-color: #1E9FFF !important; + color: #1E9FFF !important +} + +.layui-border-black { + border-color: #393D49 !important; + color: #393D49 !important +} + +.layui-timeline-item:before { + background-color: #eee +} + +.layui-text { + line-height: 1.6; + font-size: 14px; + color: #666 +} + +.layui-text h1, .layui-text h2, .layui-text h3 { + font-weight: 500; + color: #333 +} + +.layui-text h1 { + font-size: 30px +} + +.layui-text h2 { + font-size: 24px +} + +.layui-text h3 { + font-size: 18px +} + +.layui-text a:not(.layui-btn) { + color: #01AAED +} + +.layui-text a:not(.layui-btn):hover { + text-decoration: underline +} + +.layui-text ul { + padding: 5px 0 5px 15px +} + +.layui-text ul li { + margin-top: 5px; + list-style-type: disc +} + +.layui-text em, .layui-word-aux { + color: #999 !important; + padding-left: 5px !important; + padding-right: 5px !important +} + +.layui-text p { + margin: 10px 0 +} + +.layui-text p:first-child { + margin-top: 0 +} + +.layui-font-12 { + font-size: 12px !important +} + +.layui-font-14 { + font-size: 14px !important +} + +.layui-font-16 { + font-size: 16px !important +} + +.layui-font-18 { + font-size: 18px !important +} + +.layui-font-20 { + font-size: 20px !important +} + +.layui-font-red { + color: #FF5722 !important +} + +.layui-font-orange { + color: #FFB800 !important +} + +.layui-font-green { + color: #009688 !important +} + +.layui-font-cyan { + color: #2F4056 !important +} + +.layui-font-blue { + color: #01AAED !important +} + +.layui-font-black { + color: #000 !important +} + +.layui-font-gray { + color: #c2c2c2 !important +} + +.layui-btn { + height: 38px; + line-height: 38px; + border: 1px solid transparent; + padding: 0 18px; + background-color: #009688; + color: #fff; + white-space: nowrap; + text-align: center; + font-size: 14px; + border-radius: 2px; + cursor: pointer +} + +.layui-btn:hover { + opacity: .8; + filter: alpha(opacity=80); + color: #fff +} + +.layui-btn:active { + opacity: 1; + filter: alpha(opacity=100) +} + +.layui-btn + .layui-btn { + margin-left: 10px +} + +.layui-btn-container { + font-size: 0 +} + +.layui-btn-container .layui-btn { + margin-right: 10px; + margin-bottom: 10px +} + +.layui-btn-container .layui-btn + .layui-btn { + margin-left: 0 +} + +.layui-table .layui-btn-container .layui-btn { + margin-bottom: 9px +} + +.layui-btn-radius { + border-radius: 100px +} + +.layui-btn .layui-icon { + padding: 0 2px; + vertical-align: middle \9; + vertical-align: bottom +} + +.layui-btn-primary { + border-color: #d2d2d2; + background: 0 0; + color: #666 +} + +.layui-btn-primary:hover { + border-color: #009688; + color: #333 +} + +.layui-btn-normal { + background-color: #1E9FFF +} + +.layui-btn-warm { + background-color: #FFB800 +} + +.layui-btn-danger { + background-color: #FF5722 +} + +.layui-btn-checked { + background-color: #5FB878 +} + +.layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover { + border-color: #eee !important; + background-color: #FBFBFB !important; + color: #d2d2d2 !important; + cursor: not-allowed !important; + opacity: 1 +} + +.layui-btn-lg { + height: 44px; + line-height: 44px; + padding: 0 25px; + font-size: 16px +} + +.layui-btn-sm { + height: 30px; + line-height: 30px; + padding: 0 10px; + font-size: 12px +} + +.layui-btn-xs { + height: 22px; + line-height: 22px; + padding: 0 5px; + font-size: 12px +} + +.layui-btn-xs i { + font-size: 12px !important +} + +.layui-btn-group { + vertical-align: middle; + font-size: 0 +} + +.layui-btn-group .layui-btn { + margin-left: 0 !important; + margin-right: 0 !important; + border-left: 1px solid rgba(255, 255, 255, .5); + border-radius: 0 +} + +.layui-btn-group .layui-btn-primary { + border-left: none +} + +.layui-btn-group .layui-btn-primary:hover { + border-color: #d2d2d2; + color: #009688 +} + +.layui-btn-group .layui-btn:first-child { + border-left: none; + border-radius: 2px 0 0 2px +} + +.layui-btn-group .layui-btn-primary:first-child { + border-left: 1px solid #d2d2d2 +} + +.layui-btn-group .layui-btn:last-child { + border-radius: 0 2px 2px 0 +} + +.layui-btn-group .layui-btn + .layui-btn { + margin-left: 0 +} + +.layui-btn-group + .layui-btn-group { + margin-left: 10px +} + +.layui-btn-fluid { + width: 100% +} + +.layui-input, .layui-select, .layui-textarea { + height: 38px; + line-height: 1.3; + line-height: 38px \9; + border-width: 1px; + border-style: solid; + background-color: #fff; + color: rgba(0, 0, 0, .85); + border-radius: 2px +} + +.layui-input::-webkit-input-placeholder, .layui-select::-webkit-input-placeholder, .layui-textarea::-webkit-input-placeholder { + line-height: 1.3 +} + +.layui-input, .layui-textarea { + display: block; + width: 100%; + padding-left: 10px +} + +.layui-input:hover, .layui-textarea:hover { + border-color: #eee !important +} + +.layui-input:focus, .layui-textarea:focus { + border-color: #d2d2d2 !important +} + +.layui-textarea { + min-height: 100px; + height: auto; + line-height: 20px; + padding: 6px 10px; + resize: vertical +} + +.layui-select { + padding: 0 10px +} + +.layui-form input[type=checkbox], .layui-form input[type=radio], .layui-form select { + display: none +} + +.layui-form [lay-ignore] { + display: initial +} + +.layui-form-item { + margin-bottom: 15px; + clear: both; + *zoom: 1 +} + +.layui-form-item:after { + content: '\20'; + clear: both; + *zoom: 1; + display: block; + height: 0 +} + +.layui-form-label { + float: left; + display: block; + padding: 9px 15px; + width: 80px; + font-weight: 400; + line-height: 20px; + text-align: right +} + +.layui-form-label-col { + display: block; + float: none; + padding: 9px 0; + line-height: 20px; + text-align: left +} + +.layui-form-item .layui-inline { + margin-bottom: 5px; + margin-right: 10px +} + +.layui-input-block { + margin-left: 110px; + min-height: 36px +} + +.layui-input-inline { + display: inline-block; + vertical-align: middle +} + +.layui-form-item .layui-input-inline { + float: left; + width: 190px; + margin-right: 10px +} + +.layui-form-text .layui-input-inline { + width: auto +} + +.layui-form-mid { + float: left; + display: block; + padding: 9px 0 !important; + line-height: 20px; + margin-right: 10px +} + +.layui-form-danger + .layui-form-select .layui-input, .layui-form-danger:focus { + border-color: #FF5722 !important +} + +.layui-form-select .layui-input { + padding-right: 30px; + cursor: pointer +} + +.layui-form-select .layui-edge { + position: absolute; + right: 10px; + top: 50%; + margin-top: -3px; + cursor: pointer; + border-width: 6px; + border-top-color: #c2c2c2; + border-top-style: solid; + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-form-select dl { + display: none; + position: absolute; + left: 0; + top: 42px; + padding: 5px 0; + z-index: 899; + min-width: 100%; + border: 1px solid #eee; + max-height: 300px; + overflow-y: auto; + background-color: #fff; + border-radius: 2px; + box-sizing: border-box +} + +.layui-form-select dl dd, .layui-form-select dl dt { + padding: 0 10px; + line-height: 36px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis +} + +.layui-form-select dl dt { + font-size: 12px; + color: #999 +} + +.layui-form-select dl dd { + cursor: pointer +} + +.layui-form-select dl dd:hover { + background-color: #F6F6F6; + -webkit-transition: .5s all; + transition: .5s all +} + +.layui-form-select .layui-select-group dd { + padding-left: 20px +} + +.layui-form-select dl dd.layui-select-tips { + padding-left: 10px !important; + color: #999 +} + +.layui-form-select dl dd.layui-this { + background-color: #5FB878; + color: #fff +} + +.layui-form-checkbox, .layui-form-select dl dd.layui-disabled { + background-color: #fff +} + +.layui-form-selected dl { + display: block +} + +.layui-form-checkbox, .layui-form-checkbox *, .layui-form-switch { + display: inline-block; + vertical-align: middle +} + +.layui-form-selected .layui-edge { + margin-top: -9px; + -webkit-transform: rotate(180deg); + transform: rotate(180deg); + margin-top: -3px \9 +} + +:root .layui-form-selected .layui-edge { + margin-top: -9px \0/ IE9 +} + +.layui-form-selectup dl { + top: auto; + bottom: 42px +} + +.layui-select-none { + margin: 5px 0; + text-align: center; + color: #999 +} + +.layui-select-disabled .layui-disabled { + border-color: #eee !important +} + +.layui-select-disabled .layui-edge { + border-top-color: #d2d2d2 +} + +.layui-form-checkbox { + position: relative; + height: 30px; + line-height: 30px; + margin-right: 10px; + padding-right: 30px; + cursor: pointer; + font-size: 0; + -webkit-transition: .1s linear; + transition: .1s linear; + box-sizing: border-box +} + +.layui-form-checkbox span { + padding: 0 10px; + height: 100%; + font-size: 14px; + border-radius: 2px 0 0 2px; + background-color: #d2d2d2; + color: #fff; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis +} + +.layui-form-checkbox:hover span { + background-color: #c2c2c2 +} + +.layui-form-checkbox i { + position: absolute; + right: 0; + top: 0; + width: 30px; + height: 28px; + border: 1px solid #d2d2d2; + border-left: none; + border-radius: 0 2px 2px 0; + color: #fff; + font-size: 20px; + text-align: center +} + +.layui-form-checkbox:hover i { + border-color: #c2c2c2; + color: #c2c2c2 +} + +.layui-form-checked, .layui-form-checked:hover { + border-color: #5FB878 +} + +.layui-form-checked span, .layui-form-checked:hover span { + background-color: #5FB878 +} + +.layui-form-checked i, .layui-form-checked:hover i { + color: #5FB878 +} + +.layui-form-item .layui-form-checkbox { + margin-top: 4px +} + +.layui-form-checkbox[lay-skin=primary] { + height: auto !important; + line-height: normal !important; + min-width: 18px; + min-height: 18px; + border: none !important; + margin-right: 0; + padding-left: 28px; + padding-right: 0; + background: 0 0 +} + +.layui-form-checkbox[lay-skin=primary] span { + padding-left: 0; + padding-right: 15px; + line-height: 18px; + background: 0 0; + color: #666 +} + +.layui-form-checkbox[lay-skin=primary] i { + right: auto; + left: 0; + width: 16px; + height: 16px; + line-height: 16px; + border: 1px solid #d2d2d2; + font-size: 12px; + border-radius: 2px; + background-color: #fff; + -webkit-transition: .1s linear; + transition: .1s linear +} + +.layui-form-checkbox[lay-skin=primary]:hover i { + border-color: #5FB878; + color: #fff +} + +.layui-form-checked[lay-skin=primary] i { + border-color: #5FB878 !important; + background-color: #5FB878; + color: #fff +} + +.layui-checkbox-disabled[lay-skin=primary] span { + background: 0 0 !important; + color: #c2c2c2 !important +} + +.layui-checkbox-disabled[lay-skin=primary]:hover i { + border-color: #d2d2d2 +} + +.layui-form-item .layui-form-checkbox[lay-skin=primary] { + margin-top: 10px +} + +.layui-form-switch { + position: relative; + height: 22px; + line-height: 22px; + min-width: 35px; + padding: 0 5px; + margin-top: 8px; + border: 1px solid #d2d2d2; + border-radius: 20px; + cursor: pointer; + background-color: #fff; + -webkit-transition: .1s linear; + transition: .1s linear +} + +.layui-form-switch i { + position: absolute; + left: 5px; + top: 3px; + width: 16px; + height: 16px; + border-radius: 20px; + background-color: #d2d2d2; + -webkit-transition: .1s linear; + transition: .1s linear +} + +.layui-form-switch em { + position: relative; + top: 0; + width: 25px; + margin-left: 21px; + padding: 0 !important; + text-align: center !important; + color: #999 !important; + font-style: normal !important; + font-size: 12px +} + +.layui-form-onswitch { + border-color: #5FB878; + background-color: #5FB878 +} + +.layui-checkbox-disabled, .layui-checkbox-disabled i { + border-color: #eee !important +} + +.layui-form-onswitch i { + left: 100%; + margin-left: -21px; + background-color: #fff +} + +.layui-form-onswitch em { + margin-left: 5px; + margin-right: 21px; + color: #fff !important +} + +.layui-checkbox-disabled span { + background-color: #eee !important +} + +.layui-checkbox-disabled em { + color: #d2d2d2 !important +} + +.layui-checkbox-disabled:hover i { + color: #fff !important +} + +[lay-radio] { + display: none +} + +.layui-form-radio, .layui-form-radio * { + display: inline-block; + vertical-align: middle +} + +.layui-form-radio { + line-height: 28px; + margin: 6px 10px 0 0; + padding-right: 10px; + cursor: pointer; + font-size: 0 +} + +.layui-form-radio * { + font-size: 14px +} + +.layui-form-radio > i { + margin-right: 8px; + font-size: 22px; + color: #c2c2c2 +} + +.layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed > i { + color: #5FB878 +} + +.layui-radio-disabled > i { + color: #eee !important +} + +.layui-radio-disabled * { + color: #c2c2c2 !important +} + +.layui-form-pane .layui-form-label { + width: 110px; + padding: 8px 15px; + height: 38px; + line-height: 20px; + border-width: 1px; + border-style: solid; + border-radius: 2px 0 0 2px; + text-align: center; + background-color: #FAFAFA; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + box-sizing: border-box +} + +.layui-form-pane .layui-input-inline { + margin-left: -1px +} + +.layui-form-pane .layui-input-block { + margin-left: 110px; + left: -1px +} + +.layui-form-pane .layui-input { + border-radius: 0 2px 2px 0 +} + +.layui-form-pane .layui-form-text .layui-form-label { + float: none; + width: 100%; + border-radius: 2px; + box-sizing: border-box; + text-align: left +} + +.layui-form-pane .layui-form-text .layui-input-inline { + display: block; + margin: 0; + top: -1px; + clear: both +} + +.layui-form-pane .layui-form-text .layui-input-block { + margin: 0; + left: 0; + top: -1px +} + +.layui-form-pane .layui-form-text .layui-textarea { + min-height: 100px; + border-radius: 0 0 2px 2px +} + +.layui-form-pane .layui-form-checkbox { + margin: 4px 0 4px 10px +} + +.layui-form-pane .layui-form-radio, .layui-form-pane .layui-form-switch { + margin-top: 6px; + margin-left: 10px +} + +.layui-form-pane .layui-form-item[pane] { + position: relative; + border-width: 1px; + border-style: solid +} + +.layui-form-pane .layui-form-item[pane] .layui-form-label { + position: absolute; + left: 0; + top: 0; + height: 100%; + border-width: 0 1px 0 0 +} + +.layui-form-pane .layui-form-item[pane] .layui-input-inline { + margin-left: 110px +} + +@media screen and (max-width: 450px) { + .layui-form-item .layui-form-label { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap + } + + .layui-form-item .layui-inline { + display: block; + margin-right: 0; + margin-bottom: 20px; + clear: both + } + + .layui-form-item .layui-inline:after { + content: '\20'; + clear: both; + display: block; + height: 0 + } + + .layui-form-item .layui-input-inline { + display: block; + float: none; + left: -3px; + width: auto !important; + margin: 0 0 10px 112px + } + + .layui-form-item .layui-input-inline + .layui-form-mid { + margin-left: 110px; + top: -5px; + padding: 0 + } + + .layui-form-item .layui-form-checkbox { + margin-right: 5px; + margin-bottom: 5px + } +} + +.layui-layedit { + border-width: 1px; + border-style: solid; + border-radius: 2px +} + +.layui-layedit-tool { + padding: 3px 5px; + border-bottom-width: 1px; + border-bottom-style: solid; + font-size: 0 +} + +.layedit-tool-fixed { + position: fixed; + top: 0; + border-top: 1px solid #eee +} + +.layui-layedit-tool .layedit-tool-mid, .layui-layedit-tool .layui-icon { + display: inline-block; + vertical-align: middle; + text-align: center; + font-size: 14px +} + +.layui-layedit-tool .layui-icon { + position: relative; + width: 32px; + height: 30px; + line-height: 30px; + margin: 3px 5px; + color: #777; + cursor: pointer; + border-radius: 2px +} + +.layui-layedit-tool .layui-icon:hover { + color: #393D49 +} + +.layui-layedit-tool .layui-icon:active { + color: #000 +} + +.layui-layedit-tool .layedit-tool-active { + background-color: #eee; + color: #000 +} + +.layui-layedit-tool .layui-disabled, .layui-layedit-tool .layui-disabled:hover { + color: #d2d2d2; + cursor: not-allowed +} + +.layui-layedit-tool .layedit-tool-mid { + width: 1px; + height: 18px; + margin: 0 10px; + background-color: #d2d2d2 +} + +.layedit-tool-html { + width: 50px !important; + font-size: 30px !important +} + +.layedit-tool-b, .layedit-tool-code, .layedit-tool-help { + font-size: 16px !important +} + +.layedit-tool-d, .layedit-tool-face, .layedit-tool-image, .layedit-tool-unlink { + font-size: 18px !important +} + +.layedit-tool-image input { + position: absolute; + font-size: 0; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: .01; + filter: Alpha(opacity=1); + cursor: pointer +} + +.layui-layedit-iframe iframe { + display: block; + width: 100% +} + +#LAY_layedit_code { + overflow: hidden +} + +.layui-laypage { + display: inline-block; + *display: inline; + *zoom: 1; + vertical-align: middle; + margin: 10px 0; + font-size: 0 +} + +.layui-laypage > a:first-child, .layui-laypage > a:first-child em { + border-radius: 2px 0 0 2px +} + +.layui-laypage > a:last-child, .layui-laypage > a:last-child em { + border-radius: 0 2px 2px 0 +} + +.layui-laypage > :first-child { + margin-left: 0 !important +} + +.layui-laypage > :last-child { + margin-right: 0 !important +} + +.layui-laypage a, .layui-laypage button, .layui-laypage input, .layui-laypage select, .layui-laypage span { + border: 1px solid #eee +} + +.layui-laypage a, .layui-laypage span { + display: inline-block; + *display: inline; + *zoom: 1; + vertical-align: middle; + padding: 0 15px; + height: 28px; + line-height: 28px; + margin: 0 -1px 5px 0; + background-color: #fff; + color: #333; + font-size: 12px +} + +.layui-flow-more a *, .layui-laypage input, .layui-table-view select[lay-ignore] { + display: inline-block +} + +.layui-laypage a:hover { + color: #009688 +} + +.layui-laypage em { + font-style: normal +} + +.layui-laypage .layui-laypage-spr { + color: #999; + font-weight: 700 +} + +.layui-laypage a { + text-decoration: none +} + +.layui-laypage .layui-laypage-curr { + position: relative +} + +.layui-laypage .layui-laypage-curr em { + position: relative; + color: #fff +} + +.layui-laypage .layui-laypage-curr .layui-laypage-em { + position: absolute; + left: -1px; + top: -1px; + padding: 1px; + width: 100%; + height: 100%; + background-color: #009688 +} + +.layui-laypage-em { + border-radius: 2px +} + +.layui-laypage-next em, .layui-laypage-prev em { + font-family: Sim sun; + font-size: 16px +} + +.layui-laypage .layui-laypage-count, .layui-laypage .layui-laypage-limits, .layui-laypage .layui-laypage-refresh, .layui-laypage .layui-laypage-skip { + margin-left: 10px; + margin-right: 10px; + padding: 0; + border: none +} + +.layui-laypage .layui-laypage-limits, .layui-laypage .layui-laypage-refresh { + vertical-align: top +} + +.layui-laypage .layui-laypage-refresh i { + font-size: 18px; + cursor: pointer +} + +.layui-laypage select { + height: 22px; + padding: 3px; + border-radius: 2px; + cursor: pointer +} + +.layui-laypage .layui-laypage-skip { + height: 30px; + line-height: 30px; + color: #999 +} + +.layui-laypage button, .layui-laypage input { + height: 30px; + line-height: 30px; + border-radius: 2px; + vertical-align: top; + background-color: #fff; + box-sizing: border-box +} + +.layui-laypage input { + width: 40px; + margin: 0 10px; + padding: 0 3px; + text-align: center +} + +.layui-laypage input:focus, .layui-laypage select:focus { + border-color: #009688 !important +} + +.layui-laypage button { + margin-left: 10px; + padding: 0 10px; + cursor: pointer +} + +.layui-table, .layui-table-view { + margin: 10px 0 +} + +.layui-flow-more { + margin: 10px 0; + text-align: center; + color: #999; + font-size: 14px +} + +.layui-flow-more a { + height: 32px; + line-height: 32px +} + +.layui-flow-more a * { + vertical-align: top +} + +.layui-flow-more a cite { + padding: 0 20px; + border-radius: 3px; + background-color: #eee; + color: #333; + font-style: normal +} + +.layui-flow-more a cite:hover { + opacity: .8 +} + +.layui-flow-more a i { + font-size: 30px; + color: #737383 +} + +.layui-table { + width: 100%; + background-color: #fff; + color: #666 +} + +.layui-table tr { + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-table th { + text-align: left; + font-weight: 400 +} + +.layui-table tbody tr:hover, .layui-table thead tr, .layui-table-click, .layui-table-header, .layui-table-hover, .layui-table-mend, .layui-table-patch, .layui-table-tool, .layui-table-total, .layui-table-total tr, .layui-table[lay-even] tr:nth-child(even) { + background-color: #FAFAFA +} + +.layui-table td, .layui-table th, .layui-table-col-set, .layui-table-fixed-r, .layui-table-grid-down, .layui-table-header, .layui-table-page, .layui-table-tips-main, .layui-table-tool, .layui-table-total, .layui-table-view, .layui-table[lay-skin=line], .layui-table[lay-skin=row] { + border-width: 1px; + border-style: solid; + border-color: #eee +} + +.layui-table td, .layui-table th { + position: relative; + padding: 9px 15px; + min-height: 20px; + line-height: 20px; + font-size: 14px +} + +.layui-table[lay-skin=line] td, .layui-table[lay-skin=line] th { + border-width: 0 0 1px +} + +.layui-table[lay-skin=row] td, .layui-table[lay-skin=row] th { + border-width: 0 1px 0 0 +} + +.layui-table[lay-skin=nob] td, .layui-table[lay-skin=nob] th { + border: none +} + +.layui-table img { + max-width: 100px +} + +.layui-table[lay-size=lg] td, .layui-table[lay-size=lg] th { + padding: 15px 30px +} + +.layui-table-view .layui-table[lay-size=lg] .layui-table-cell { + height: 40px; + line-height: 40px +} + +.layui-table[lay-size=sm] td, .layui-table[lay-size=sm] th { + font-size: 12px; + padding: 5px 10px +} + +.layui-table-view .layui-table[lay-size=sm] .layui-table-cell { + height: 20px; + line-height: 20px +} + +.layui-table[lay-data] { + display: none +} + +.layui-table-box { + position: relative; + overflow: hidden +} + +.layui-table-view .layui-table { + position: relative; + width: auto; + margin: 0 +} + +.layui-table-view .layui-table[lay-skin=line] { + border-width: 0 1px 0 0 +} + +.layui-table-view .layui-table[lay-skin=row] { + border-width: 0 0 1px +} + +.layui-table-view .layui-table td, .layui-table-view .layui-table th { + padding: 5px 0; + border-top: none; + border-left: none +} + +.layui-table-view .layui-table th.layui-unselect .layui-table-cell span { + cursor: pointer +} + +.layui-table-view .layui-table td { + cursor: default +} + +.layui-table-view .layui-table td[data-edit=text] { + cursor: text +} + +.layui-table-view .layui-form-checkbox[lay-skin=primary] i { + width: 18px; + height: 18px +} + +.layui-table-view .layui-form-radio { + line-height: 0; + padding: 0 +} + +.layui-table-view .layui-form-radio > i { + margin: 0; + font-size: 20px +} + +.layui-table-init { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + text-align: center; + z-index: 110 +} + +.layui-table-init .layui-icon { + position: absolute; + left: 50%; + top: 50%; + margin: -15px 0 0 -15px; + font-size: 30px; + color: #c2c2c2 +} + +.layui-table-header { + border-width: 0 0 1px; + overflow: hidden +} + +.layui-table-header .layui-table { + margin-bottom: -1px +} + +.layui-table-tool .layui-inline[lay-event] { + position: relative; + width: 26px; + height: 26px; + padding: 5px; + line-height: 16px; + margin-right: 10px; + text-align: center; + color: #333; + border: 1px solid #ccc; + cursor: pointer; + -webkit-transition: .5s all; + transition: .5s all +} + +.layui-table-tool .layui-inline[lay-event]:hover { + border: 1px solid #999 +} + +.layui-table-tool-temp { + padding-right: 120px +} + +.layui-table-tool-self { + position: absolute; + right: 17px; + top: 10px +} + +.layui-table-tool .layui-table-tool-self .layui-inline[lay-event] { + margin: 0 0 0 10px +} + +.layui-table-tool-panel { + position: absolute; + top: 29px; + left: -1px; + padding: 5px 0; + min-width: 150px; + min-height: 40px; + border: 1px solid #d2d2d2; + text-align: left; + overflow-y: auto; + background-color: #fff; + box-shadow: 0 2px 4px rgba(0, 0, 0, .12) +} + +.layui-table-cell, .layui-table-tool-panel li { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap +} + +.layui-table-tool-panel li { + padding: 0 10px; + line-height: 30px; + -webkit-transition: .5s all; + transition: .5s all +} + +.layui-menu li, .layui-menu-body-title a:hover, .layui-menu-body-title > .layui-icon:hover { + transition: all .3s +} + +.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] { + width: 100%; + padding-left: 28px +} + +.layui-table-tool-panel li:hover { + background-color: #F6F6F6 +} + +.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i { + position: absolute; + left: 0; + top: 0 +} + +.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span { + padding: 0 +} + +.layui-table-tool .layui-table-tool-self .layui-table-tool-panel { + left: auto; + right: -1px +} + +.layui-table-col-set { + position: absolute; + right: 0; + top: 0; + width: 20px; + height: 100%; + border-width: 0 0 0 1px; + background-color: #fff +} + +.layui-table-sort { + width: 10px; + height: 20px; + margin-left: 5px; + cursor: pointer !important +} + +.layui-table-sort .layui-edge { + position: absolute; + left: 5px; + border-width: 5px +} + +.layui-table-sort .layui-table-sort-asc { + top: 3px; + border-top: none; + border-bottom-style: solid; + border-bottom-color: #b2b2b2 +} + +.layui-table-sort .layui-table-sort-asc:hover { + border-bottom-color: #666 +} + +.layui-table-sort .layui-table-sort-desc { + bottom: 5px; + border-bottom: none; + border-top-style: solid; + border-top-color: #b2b2b2 +} + +.layui-table-sort .layui-table-sort-desc:hover { + border-top-color: #666 +} + +.layui-table-sort[lay-sort=asc] .layui-table-sort-asc { + border-bottom-color: #000 +} + +.layui-table-sort[lay-sort=desc] .layui-table-sort-desc { + border-top-color: #000 +} + +.layui-table-cell { + height: 28px; + line-height: 28px; + padding: 0 15px; + position: relative; + box-sizing: border-box +} + +.layui-table-cell .layui-form-checkbox[lay-skin=primary] { + top: -1px; + padding: 0 +} + +.layui-table-cell .layui-table-link { + color: #01AAED +} + +.laytable-cell-checkbox, .laytable-cell-numbers, .laytable-cell-radio, .laytable-cell-space { + padding: 0; + text-align: center +} + +.layui-table-body { + position: relative; + overflow: auto; + margin-right: -1px; + margin-bottom: -1px +} + +.layui-table-body .layui-none { + line-height: 26px; + padding: 30px 15px; + text-align: center; + color: #999 +} + +.layui-table-fixed { + position: absolute; + left: 0; + top: 0; + z-index: 101 +} + +.layui-table-fixed .layui-table-body { + overflow: hidden +} + +.layui-table-fixed-l { + box-shadow: 1px 0 8px rgba(0, 0, 0, .08) +} + +.layui-table-fixed-r { + left: auto; + right: -1px; + border-width: 0 0 0 1px; + box-shadow: -1px 0 8px rgba(0, 0, 0, .08) +} + +.layui-table-fixed-r .layui-table-header { + position: relative; + overflow: visible +} + +.layui-table-mend { + position: absolute; + right: -49px; + top: 0; + height: 100%; + width: 50px +} + +.layui-table-tool { + position: relative; + z-index: 890; + width: 100%; + min-height: 50px; + line-height: 30px; + padding: 10px 15px; + border-width: 0 0 1px +} + +.layui-table-tool .layui-btn-container { + margin-bottom: -10px +} + +.layui-table-page, .layui-table-total { + border-width: 1px 0 0; + margin-bottom: -1px; + overflow: hidden +} + +.layui-table-page { + position: relative; + width: 100%; + padding: 7px 7px 0; + height: 41px; + font-size: 12px; + white-space: nowrap +} + +.layui-table-page > div { + height: 26px +} + +.layui-table-page .layui-laypage { + margin: 0 +} + +.layui-table-page .layui-laypage a, .layui-table-page .layui-laypage span { + height: 26px; + line-height: 26px; + margin-bottom: 10px; + border: none; + background: 0 0 +} + +.layui-table-page .layui-laypage a, .layui-table-page .layui-laypage span.layui-laypage-curr { + padding: 0 12px +} + +.layui-table-page .layui-laypage span { + margin-left: 0; + padding: 0 +} + +.layui-table-page .layui-laypage .layui-laypage-prev { + margin-left: -7px !important +} + +.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em { + left: 0; + top: 0; + padding: 0 +} + +.layui-table-page .layui-laypage button, .layui-table-page .layui-laypage input { + height: 26px; + line-height: 26px +} + +.layui-table-page .layui-laypage input { + width: 40px +} + +.layui-table-page .layui-laypage button { + padding: 0 10px +} + +.layui-table-page select { + height: 18px +} + +.layui-table-patch .layui-table-cell { + padding: 0; + width: 30px +} + +.layui-table-edit { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + padding: 0 14px 1px; + border-radius: 0; + box-shadow: 1px 1px 20px rgba(0, 0, 0, .15) +} + +.layui-table-edit:focus { + border-color: #5FB878 !important +} + +select.layui-table-edit { + padding: 0 0 0 10px; + border-color: #d2d2d2 +} + +.layui-table-view .layui-form-checkbox, .layui-table-view .layui-form-radio, .layui-table-view .layui-form-switch { + top: 0; + margin: 0; + box-sizing: content-box +} + +.layui-colorpicker-alpha-slider, .layui-colorpicker-side-slider, .layui-menu, .layui-menu *, .layui-nav { + box-sizing: border-box +} + +.layui-table-view .layui-form-checkbox { + top: -1px; + height: 26px; + line-height: 26px +} + +.layui-table-view .layui-form-checkbox i { + height: 26px +} + +.layui-table-grid .layui-table-cell { + overflow: visible +} + +.layui-table-grid-down { + position: absolute; + top: 0; + right: 0; + width: 26px; + height: 100%; + padding: 5px 0; + border-width: 0 0 0 1px; + text-align: center; + background-color: #fff; + color: #999; + cursor: pointer +} + +.layui-table-grid-down .layui-icon { + position: absolute; + top: 50%; + left: 50%; + margin: -8px 0 0 -8px +} + +.layui-table-grid-down:hover { + background-color: #fbfbfb +} + +body .layui-table-tips .layui-layer-content { + background: 0 0; + padding: 0; + box-shadow: 0 1px 6px rgba(0, 0, 0, .12) +} + +.layui-table-tips-main { + margin: -44px 0 0 -1px; + max-height: 150px; + padding: 8px 15px; + font-size: 14px; + overflow-y: scroll; + background-color: #fff; + color: #666 +} + +.layui-table-tips-c { + position: absolute; + right: -3px; + top: -13px; + width: 20px; + height: 20px; + padding: 3px; + cursor: pointer; + background-color: #666; + border-radius: 50%; + color: #fff +} + +.layui-table-tips-c:hover { + background-color: #777 +} + +.layui-table-tips-c:before { + position: relative; + right: -2px +} + +.layui-upload-file { + display: none !important; + opacity: .01; + filter: Alpha(opacity=1) +} + +.layui-upload-drag, .layui-upload-form, .layui-upload-wrap { + display: inline-block +} + +.layui-upload-list { + margin: 10px 0 +} + +.layui-upload-choose { + max-width: 200px; + padding: 0 10px; + color: #999; + font-size: 14px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap +} + +.layui-upload-drag { + position: relative; + padding: 30px; + border: 1px dashed #e2e2e2; + background-color: #fff; + text-align: center; + cursor: pointer; + color: #999 +} + +.layui-upload-drag .layui-icon { + font-size: 50px; + color: #009688 +} + +.layui-upload-drag[lay-over] { + border-color: #009688 +} + +.layui-upload-iframe { + position: absolute; + width: 0; + height: 0; + border: 0; + visibility: hidden +} + +.layui-upload-wrap { + position: relative; + vertical-align: middle +} + +.layui-upload-wrap .layui-upload-file { + display: block !important; + position: absolute; + left: 0; + top: 0; + z-index: 10; + font-size: 100px; + width: 100%; + height: 100%; + opacity: .01; + filter: Alpha(opacity=1); + cursor: pointer +} + +.layui-btn-container .layui-upload-choose { + padding-left: 0 +} + +.layui-menu { + position: relative; + margin: 5px 0; + background-color: #fff +} + +.layui-menu li, .layui-menu-body-title a { + padding: 5px 15px +} + +.layui-menu li { + position: relative; + margin: 1px 0; + width: calc(100% + 1px); + line-height: 26px; + color: rgba(0, 0, 0, .8); + font-size: 14px; + white-space: nowrap; + cursor: pointer +} + +.layui-menu li:hover { + background-color: #F6F6F6 +} + +.layui-menu-item-parent:hover > .layui-menu-body-panel { + display: block; + animation-name: layui-fadein; + animation-duration: .3s; + animation-fill-mode: both; + animation-delay: .2s +} + +.layui-menu-item-group .layui-menu-body-title, .layui-menu-item-parent .layui-menu-body-title { + padding-right: 25px +} + +.layui-menu .layui-menu-item-divider:hover, .layui-menu .layui-menu-item-group:hover, .layui-menu .layui-menu-item-none:hover { + background: 0 0; + cursor: default +} + +.layui-menu .layui-menu-item-group > ul { + margin: 5px 0 -5px +} + +.layui-menu .layui-menu-item-group > .layui-menu-body-title { + color: rgba(0, 0, 0, .35); + user-select: none +} + +.layui-menu .layui-menu-item-none { + color: rgba(0, 0, 0, .35); + cursor: default; + text-align: center +} + +.layui-menu .layui-menu-item-divider { + margin: 5px 0; + padding: 0; + height: 0; + line-height: 0; + border-bottom: 1px solid #eee; + overflow: hidden +} + +.layui-menu .layui-menu-item-down:hover, .layui-menu .layui-menu-item-up:hover { + cursor: pointer +} + +.layui-menu .layui-menu-item-up > .layui-menu-body-title { + color: rgba(0, 0, 0, .8) +} + +.layui-menu .layui-menu-item-up > ul { + visibility: hidden; + height: 0; + overflow: hidden +} + +.layui-menu .layui-menu-item-down:hover > .layui-menu-body-title > .layui-icon, .layui-menu .layui-menu-item-up > .layui-menu-body-title:hover > .layui-icon { + color: rgba(0, 0, 0, 1) +} + +.layui-menu .layui-menu-item-down > ul { + visibility: visible; + height: auto +} + +.layui-breadcrumb, .layui-tree-btnGroup { + visibility: hidden +} + +.layui-menu .layui-menu-item-checked, .layui-menu .layui-menu-item-checked2 { + background-color: #F6F6F6 !important; + color: #5FB878 +} + +.layui-menu .layui-menu-item-checked a, .layui-menu .layui-menu-item-checked2 a { + color: #5FB878 +} + +.layui-menu .layui-menu-item-checked:after { + position: absolute; + right: 0; + top: 0; + bottom: 0; + border-right: 3px solid #5FB878; + content: "" +} + +.layui-menu-body-title { + position: relative; + overflow: hidden; + text-overflow: ellipsis +} + +.layui-menu-body-title a { + display: block; + margin: -5px -15px; + color: rgba(0, 0, 0, .8) +} + +.layui-menu-body-title > .layui-icon { + position: absolute; + right: 0; + top: 0; + font-size: 14px +} + +.layui-menu-body-title > .layui-icon-right { + right: -1px +} + +.layui-menu-body-panel { + display: none; + position: absolute; + top: -7px; + left: 100%; + z-index: 1000; + margin-left: 13px; + padding: 5px 0 +} + +.layui-menu-body-panel:before { + content: ""; + position: absolute; + width: 20px; + left: -16px; + top: 0; + bottom: 0 +} + +.layui-menu-body-panel-left { + left: auto; + right: 100%; + margin: 0 13px +} + +.layui-menu-body-panel-left:before { + left: auto; + right: -16px +} + +.layui-menu-lg li { + line-height: 32px +} + +.layui-menu-lg .layui-menu-body-title a:hover, .layui-menu-lg li:hover { + background: 0 0; + color: #5FB878 +} + +.layui-menu-lg li .layui-menu-body-panel { + margin-left: 14px +} + +.layui-menu-lg li .layui-menu-body-panel-left { + margin: 0 15px +} + +.layui-dropdown { + position: absolute; + left: -999999px; + top: -999999px; + z-index: 66666666; + margin: 5px 0; + min-width: 100px +} + +.layui-dropdown:before { + content: ""; + position: absolute; + width: 100%; + height: 6px; + left: 0; + top: -6px +} + +.layui-nav { + position: relative; + padding: 0 20px; + background-color: #393D49; + color: #fff; + border-radius: 2px; + font-size: 0 +} + +.layui-nav * { + font-size: 14px +} + +.layui-nav .layui-nav-item { + position: relative; + display: inline-block; + *display: inline; + *zoom: 1; + vertical-align: middle; + line-height: 60px +} + +.layui-nav .layui-nav-item a { + display: block; + padding: 0 20px; + color: #fff; + color: rgba(255, 255, 255, .7); + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-nav .layui-this:after, .layui-nav-bar { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 0; + height: 5px; + background-color: #5FB878; + transition: all .2s; + -webkit-transition: all .2s; + pointer-events: none +} + +.layui-nav-bar { + z-index: 1000 +} + +.layui-nav[lay-bar=disabled] .layui-nav-bar { + display: none +} + +.layui-nav .layui-nav-item a:hover, .layui-nav .layui-this a { + color: #fff +} + +.layui-nav .layui-this:after { + top: auto; + bottom: 0; + width: 100% +} + +.layui-nav-img { + width: 30px; + height: 30px; + margin-right: 10px; + border-radius: 50% +} + +.layui-nav .layui-nav-more { + position: absolute; + top: 0; + right: 3px; + left: auto !important; + margin-top: 0; + font-size: 12px; + cursor: pointer; + transition: all .2s; + -webkit-transition: all .2s +} + +.layui-nav .layui-nav-mored, .layui-nav-itemed > a .layui-nav-more { + transform: rotate(180deg) +} + +.layui-nav-child { + display: none; + position: absolute; + left: 0; + top: 65px; + min-width: 100%; + line-height: 36px; + padding: 5px 0; + box-shadow: 0 2px 4px rgba(0, 0, 0, .12); + border: 1px solid #eee; + background-color: #fff; + z-index: 100; + border-radius: 2px; + white-space: nowrap +} + +.layui-nav .layui-nav-child a { + color: #666; + color: rgba(0, 0, 0, .8) +} + +.layui-nav .layui-nav-child a:hover { + background-color: #F6F6F6; + color: rgba(0, 0, 0, .8) +} + +.layui-nav-child dd { + margin: 1px 0; + position: relative +} + +.layui-nav-child dd.layui-this { + background-color: #F6F6F6; + color: #000 +} + +.layui-nav-child dd.layui-this:after { + display: none +} + +.layui-nav-child-r { + left: auto; + right: 0 +} + +.layui-nav-child-c { + text-align: center +} + +.layui-nav-tree { + width: 300px; + padding: 0 +} + +.layui-nav-tree .layui-nav-item { + display: block; + width: 100%; + line-height: 40px +} + +.layui-nav-tree .layui-nav-item a { + position: relative; + height: 60px; + line-height: 40px; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap +} + +.layui-nav-tree .layui-nav-item > a { + padding-top: 5px; + padding-bottom: 5px +} + +.layui-nav-tree .layui-nav-more { + right: 15px +} + +.layui-nav-tree .layui-nav-item > a .layui-nav-more { + padding: 5px 0 +} + +.layui-nav-tree .layui-nav-bar { + width: 5px; + height: 0; + background-color: #009688 +} + +.layui-side .layui-nav-tree .layui-nav-bar { + width: 2px +} + +.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover { + background-color: #009688; + color: #fff +} + +.layui-nav-tree .layui-this:after { + display: none +} + +.layui-nav-itemed > a, .layui-nav-tree .layui-nav-title a, .layui-nav-tree .layui-nav-title a:hover { + color: #fff !important +} + +.layui-nav-tree .layui-nav-child { + position: relative; + z-index: 0; + top: 0; + border: none; + box-shadow: none +} + +.layui-nav-tree .layui-nav-child dd { + margin: 0 +} + +.layui-nav-tree .layui-nav-child a { + color: #fff; + color: rgba(255, 255, 255, .7) +} + + + + + +.layui-nav-tree .layui-nav-child, .layui-nav-tree .layui-nav-child a:hover { + background: 0 0; + color: #fff +} + +.layui-nav-itemed > .layui-nav-child { + display: block; + background-color: rgba(0, 0, 0, .3) !important +} + +.layui-nav-itemed > .layui-nav-child > .layui-this > .layui-nav-child { + display: block +} + +.layui-nav-side { + position: fixed; + top: 0; + bottom: 0; + left: 0; + overflow-x: hidden; + z-index: 999 +} + +.layui-breadcrumb { + font-size: 0 +} + +.layui-breadcrumb > * { + font-size: 14px +} + +.layui-breadcrumb a { + color: #999 !important +} + +.layui-breadcrumb a:hover { + color: #5FB878 !important +} + +.layui-breadcrumb a cite { + color: #666; + font-style: normal +} + +.layui-breadcrumb span[lay-separator] { + margin: 0 10px; + color: #999 +} + +.layui-tab { + margin: 10px 0; + text-align: left !important +} + +.layui-tab[overflow] > .layui-tab-title { + overflow: hidden +} + +.layui-tab-title { + position: relative; + left: 0; + height: 40px; + white-space: nowrap; + font-size: 0; + border-bottom-width: 1px; + border-bottom-style: solid; + transition: all .2s; + -webkit-transition: all .2s +} + +.layui-tab-title li { + display: inline-block; + *display: inline; + *zoom: 1; + vertical-align: middle; + font-size: 14px; + transition: all .2s; + -webkit-transition: all .2s; + position: relative; + line-height: 40px; + min-width: 65px; + padding: 0 15px; + text-align: center; + cursor: pointer +} + +.layui-tab-title li a { + display: block; + padding: 0 15px; + margin: 0 -15px +} + +.layui-tab-title .layui-this { + color: #000 +} + +.layui-tab-title .layui-this:after { + position: absolute; + left: 0; + top: 0; + content: ""; + width: 100%; + height: 41px; + border-width: 1px; + border-style: solid; + border-bottom-color: #fff; + border-radius: 2px 2px 0 0; + box-sizing: border-box; + pointer-events: none +} + +.layui-tab-bar { + position: absolute; + right: 0; + top: 0; + z-index: 10; + width: 30px; + height: 39px; + line-height: 39px; + border-width: 1px; + border-style: solid; + border-radius: 2px; + text-align: center; + background-color: #fff; + cursor: pointer +} + +.layui-tab-bar .layui-icon { + position: relative; + display: inline-block; + top: 3px; + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-tab-item { + display: none +} + +.layui-tab-more { + padding-right: 30px; + height: auto !important; + white-space: normal !important +} + +.layui-tab-more li.layui-this:after { + border-bottom-color: #eee; + border-radius: 2px +} + +.layui-tab-more .layui-tab-bar .layui-icon { + top: -2px; + top: 3px \9; + -webkit-transform: rotate(180deg); + transform: rotate(180deg) +} + +:root .layui-tab-more .layui-tab-bar .layui-icon { + top: -2px \0/ IE9 +} + +.layui-tab-content { + padding: 15px 0 +} + +.layui-tab-title li .layui-tab-close { + position: relative; + display: inline-block; + width: 18px; + height: 18px; + line-height: 20px; + margin-left: 8px; + top: 1px; + text-align: center; + font-size: 14px; + color: #c2c2c2; + transition: all .2s; + -webkit-transition: all .2s +} + +.layui-tab-title li .layui-tab-close:hover { + border-radius: 2px; + background-color: #FF5722; + color: #fff +} + +.layui-tab-brief > .layui-tab-title .layui-this { + color: #009688 +} + +.layui-tab-brief > .layui-tab-more li.layui-this:after, .layui-tab-brief > .layui-tab-title .layui-this:after { + border: none; + border-radius: 0; + border-bottom: 2px solid #5FB878 +} + +.layui-tab-brief[overflow] > .layui-tab-title .layui-this:after { + top: -1px +} + +.layui-tab-card { + border-width: 1px; + border-style: solid; + border-radius: 2px; + box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .1) +} + +.layui-tab-card > .layui-tab-title { + background-color: #FAFAFA +} + +.layui-tab-card > .layui-tab-title li { + margin-right: -1px; + margin-left: -1px +} + +.layui-tab-card > .layui-tab-title .layui-this { + background-color: #fff +} + +.layui-tab-card > .layui-tab-title .layui-this:after { + border-top: none; + border-width: 1px; + border-bottom-color: #fff +} + +.layui-tab-card > .layui-tab-title .layui-tab-bar { + height: 40px; + line-height: 40px; + border-radius: 0; + border-top: none; + border-right: none +} + +.layui-tab-card > .layui-tab-more .layui-this { + background: 0 0; + color: #5FB878 +} + +.layui-tab-card > .layui-tab-more .layui-this:after { + border: none +} + +.layui-timeline { + padding-left: 5px +} + +.layui-timeline-item { + position: relative; + padding-bottom: 20px +} + +.layui-timeline-axis { + position: absolute; + left: -5px; + top: 0; + z-index: 10; + width: 20px; + height: 20px; + line-height: 20px; + background-color: #fff; + color: #5FB878; + border-radius: 50%; + text-align: center; + cursor: pointer +} + +.layui-timeline-axis:hover { + color: #FF5722 +} + +.layui-timeline-item:before { + content: ""; + position: absolute; + left: 5px; + top: 0; + z-index: 0; + width: 1px; + height: 100% +} + +.layui-timeline-item:first-child:before { + display: block +} + +.layui-timeline-item:last-child:before { + display: none +} + +.layui-timeline-content { + padding-left: 25px +} + +.layui-timeline-title { + position: relative; + margin-bottom: 10px; + line-height: 22px +} + +.layui-badge, .layui-badge-dot, .layui-badge-rim { + position: relative; + display: inline-block; + padding: 0 6px; + font-size: 12px; + text-align: center; + background-color: #FF5722; + color: #fff; + border-radius: 2px +} + +.layui-badge { + height: 18px; + line-height: 18px +} + +.layui-badge-dot { + width: 8px; + height: 8px; + padding: 0; + border-radius: 50% +} + +.layui-badge-rim { + height: 18px; + line-height: 18px; + border-width: 1px; + border-style: solid; + background-color: #fff; + color: #666 +} + +.layui-btn .layui-badge, .layui-btn .layui-badge-dot { + margin-left: 5px +} + +.layui-nav .layui-badge, .layui-nav .layui-badge-dot { + position: absolute; + top: 50%; + margin: -5px 6px 0 +} + +.layui-nav .layui-badge { + margin-top: -10px +} + +.layui-tab-title .layui-badge, .layui-tab-title .layui-badge-dot { + left: 5px; + top: -2px +} + +.layui-carousel { + position: relative; + left: 0; + top: 0; + background-color: #f8f8f8 +} + +.layui-carousel > [carousel-item] { + position: relative; + width: 100%; + height: 100%; + overflow: hidden +} + +.layui-carousel > [carousel-item]:before { + position: absolute; + content: '\e63d'; + left: 50%; + top: 50%; + width: 100px; + line-height: 20px; + margin: -10px 0 0 -50px; + text-align: center; + color: #c2c2c2; + font-family: layui-icon !important; + font-size: 30px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale +} + +.layui-carousel > [carousel-item] > * { + display: none; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: #f8f8f8; + transition-duration: .3s; + -webkit-transition-duration: .3s +} + +.layui-carousel-updown > * { + -webkit-transition: .3s ease-in-out up; + transition: .3s ease-in-out up +} + +.layui-carousel-arrow { + display: none \9; + opacity: 0; + position: absolute; + left: 10px; + top: 50%; + margin-top: -18px; + width: 36px; + height: 36px; + line-height: 36px; + text-align: center; + font-size: 20px; + border: 0; + border-radius: 50%; + background-color: rgba(0, 0, 0, .2); + color: #fff; + -webkit-transition-duration: .3s; + transition-duration: .3s; + cursor: pointer +} + +.layui-carousel-arrow[lay-type=add] { + left: auto !important; + right: 10px +} + +.layui-carousel:hover .layui-carousel-arrow[lay-type=add], .layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add] { + right: 20px +} + +.layui-carousel[lay-arrow=always] .layui-carousel-arrow { + opacity: 1; + left: 20px +} + +.layui-carousel[lay-arrow=none] .layui-carousel-arrow { + display: none +} + +.layui-carousel-arrow:hover, .layui-carousel-ind ul:hover { + background-color: rgba(0, 0, 0, .35) +} + +.layui-carousel:hover .layui-carousel-arrow { + display: block \9; + opacity: 1; + left: 20px +} + +.layui-carousel-ind { + position: relative; + top: -35px; + width: 100%; + line-height: 0 !important; + text-align: center; + font-size: 0 +} + +.layui-carousel[lay-indicator=outside] { + margin-bottom: 30px +} + +.layui-carousel[lay-indicator=outside] .layui-carousel-ind { + top: 10px +} + +.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul { + background-color: rgba(0, 0, 0, .5) +} + +.layui-carousel[lay-indicator=none] .layui-carousel-ind { + display: none +} + +.layui-carousel-ind ul { + display: inline-block; + padding: 5px; + background-color: rgba(0, 0, 0, .2); + border-radius: 10px; + -webkit-transition-duration: .3s; + transition-duration: .3s +} + +.layui-carousel-ind li { + display: inline-block; + width: 10px; + height: 10px; + margin: 0 3px; + font-size: 14px; + background-color: #eee; + background-color: rgba(255, 255, 255, .5); + border-radius: 50%; + cursor: pointer; + -webkit-transition-duration: .3s; + transition-duration: .3s +} + +.layui-carousel-ind li:hover { + background-color: rgba(255, 255, 255, .7) +} + +.layui-carousel-ind li.layui-this { + background-color: #fff +} + +.layui-carousel > [carousel-item] > .layui-carousel-next, .layui-carousel > [carousel-item] > .layui-carousel-prev, .layui-carousel > [carousel-item] > .layui-this { + display: block +} + +.layui-carousel > [carousel-item] > .layui-this { + left: 0 +} + +.layui-carousel > [carousel-item] > .layui-carousel-prev { + left: -100% +} + +.layui-carousel > [carousel-item] > .layui-carousel-next { + left: 100% +} + +.layui-carousel > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel > [carousel-item] > .layui-carousel-prev.layui-carousel-right { + left: 0 +} + +.layui-carousel > [carousel-item] > .layui-this.layui-carousel-left { + left: -100% +} + +.layui-carousel > [carousel-item] > .layui-this.layui-carousel-right { + left: 100% +} + +.layui-carousel[lay-anim=updown] .layui-carousel-arrow { + left: 50% !important; + top: 20px; + margin: 0 0 0 -18px +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > *, .layui-carousel[lay-anim=fade] > [carousel-item] > * { + left: 0 !important +} + +.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add] { + top: auto !important; + bottom: 20px +} + +.layui-carousel[lay-anim=updown] .layui-carousel-ind { + position: absolute; + top: 50%; + right: 20px; + width: auto; + height: auto +} + +.layui-carousel[lay-anim=updown] .layui-carousel-ind ul { + padding: 3px 5px +} + +.layui-carousel[lay-anim=updown] .layui-carousel-ind li { + display: block; + margin: 6px 0 +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this { + top: 0 +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev { + top: -100% +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next { + top: 100% +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=updown] > [carousel-item] > .layui-carousel-prev.layui-carousel-right { + top: 0 +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-left { + top: -100% +} + +.layui-carousel[lay-anim=updown] > [carousel-item] > .layui-this.layui-carousel-right { + top: 100% +} + +.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev { + opacity: 0 +} + +.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-next.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-carousel-prev.layui-carousel-right { + opacity: 1 +} + +.layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-left, .layui-carousel[lay-anim=fade] > [carousel-item] > .layui-this.layui-carousel-right { + opacity: 0 +} + +.layui-fixbar { + position: fixed; + right: 15px; + bottom: 15px; + z-index: 999999 +} + +.layui-fixbar li { + width: 50px; + height: 50px; + line-height: 50px; + margin-bottom: 1px; + text-align: center; + cursor: pointer; + font-size: 30px; + background-color: #9F9F9F; + color: #fff; + border-radius: 2px; + opacity: .95 +} + +.layui-fixbar li:hover { + opacity: .85 +} + +.layui-fixbar li:active { + opacity: 1 +} + +.layui-fixbar .layui-fixbar-top { + display: none; + font-size: 40px +} + +body .layui-util-face { + border: none; + background: 0 0 +} + +body .layui-util-face .layui-layer-content { + padding: 0; + background-color: #fff; + color: #666; + box-shadow: none +} + +.layui-util-face .layui-layer-TipsG { + display: none +} + +.layui-transfer-active, .layui-transfer-box { + display: inline-block; + vertical-align: middle +} + +.layui-util-face ul { + position: relative; + width: 372px; + padding: 10px; + border: 1px solid #D9D9D9; + background-color: #fff; + box-shadow: 0 0 20px rgba(0, 0, 0, .2) +} + +.layui-util-face ul li { + cursor: pointer; + float: left; + border: 1px solid #e8e8e8; + height: 22px; + width: 26px; + overflow: hidden; + margin: -1px 0 0 -1px; + padding: 4px 2px; + text-align: center +} + +.layui-util-face ul li:hover { + position: relative; + z-index: 2; + border: 1px solid #eb7350; + background: #fff9ec +} + +.layui-code { + position: relative; + margin: 10px 0; + padding: 15px; + line-height: 20px; + border: 1px solid #eee; + border-left-width: 6px; + background-color: #FAFAFA; + color: #333; + font-family: Courier New; + font-size: 12px +} + +.layui-transfer-box, .layui-transfer-header, .layui-transfer-search { + border-width: 0; + border-style: solid; + border-color: #eee +} + +.layui-transfer-box { + position: relative; + border-width: 1px; + width: 200px; + height: 360px; + border-radius: 2px; + background-color: #fff +} + +.layui-transfer-box .layui-form-checkbox { + width: 100%; + margin: 0 !important +} + +.layui-transfer-header { + height: 38px; + line-height: 38px; + padding: 0 10px; + border-bottom-width: 1px +} + +.layui-transfer-search { + position: relative; + padding: 10px; + border-bottom-width: 1px +} + +.layui-transfer-search .layui-input { + height: 32px; + padding-left: 30px; + font-size: 12px +} + +.layui-transfer-search .layui-icon-search { + position: absolute; + left: 20px; + top: 50%; + margin-top: -8px; + color: #666 +} + +.layui-transfer-active { + margin: 0 15px +} + +.layui-transfer-active .layui-btn { + display: block; + margin: 0; + padding: 0 15px; + background-color: #5FB878; + border-color: #5FB878; + color: #fff +} + +.layui-transfer-active .layui-btn-disabled { + background-color: #FBFBFB; + border-color: #eee; + color: #d2d2d2 +} + +.layui-transfer-active .layui-btn:first-child { + margin-bottom: 15px +} + +.layui-transfer-active .layui-btn .layui-icon { + margin: 0; + font-size: 14px !important +} + +.layui-transfer-data { + padding: 5px 0; + overflow: auto +} + +.layui-transfer-data li { + height: 32px; + line-height: 32px; + padding: 0 10px +} + +.layui-transfer-data li:hover { + background-color: #F6F6F6; + transition: .5s all +} + +.layui-transfer-data .layui-none { + padding: 15px 10px; + text-align: center; + color: #999 +} + +.layui-rate, .layui-rate * { + display: inline-block; + vertical-align: middle +} + +.layui-rate { + padding: 10px 5px 10px 0; + font-size: 0 +} + +.layui-rate li i.layui-icon { + font-size: 20px; + color: #FFB800; + margin-right: 5px; + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-rate li i:hover { + cursor: pointer; + transform: scale(1.12); + -webkit-transform: scale(1.12) +} + +.layui-rate[readonly] li i:hover { + cursor: default; + transform: scale(1) +} + +.layui-colorpicker { + width: 26px; + height: 26px; + border: 1px solid #eee; + padding: 5px; + border-radius: 2px; + line-height: 24px; + display: inline-block; + cursor: pointer; + transition: all .3s; + -webkit-transition: all .3s +} + +.layui-colorpicker:hover { + border-color: #d2d2d2 +} + +.layui-colorpicker.layui-colorpicker-lg { + width: 34px; + height: 34px; + line-height: 32px +} + +.layui-colorpicker.layui-colorpicker-sm { + width: 24px; + height: 24px; + line-height: 22px +} + +.layui-colorpicker.layui-colorpicker-xs { + width: 22px; + height: 22px; + line-height: 20px +} + +.layui-colorpicker-trigger-bgcolor { + display: block; + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==); + border-radius: 2px +} + +.layui-colorpicker-trigger-span { + display: block; + height: 100%; + box-sizing: border-box; + border: 1px solid rgba(0, 0, 0, .15); + border-radius: 2px; + text-align: center +} + +.layui-colorpicker-trigger-i { + display: inline-block; + color: #FFF; + font-size: 12px +} + +.layui-colorpicker-trigger-i.layui-icon-close { + color: #999 +} + +.layui-colorpicker-main { + position: absolute; + left: -999999px; + top: -999999px; + z-index: 66666666; + width: 280px; + margin: 5px 0; + padding: 7px; + background: #FFF; + border: 1px solid #d2d2d2; + border-radius: 2px; + box-shadow: 0 2px 4px rgba(0, 0, 0, .12) +} + +.layui-colorpicker-main-wrapper { + height: 180px; + position: relative +} + +.layui-colorpicker-basis { + width: 260px; + height: 100%; + position: relative +} + +.layui-colorpicker-basis-white { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + background: linear-gradient(90deg, #FFF, hsla(0, 0%, 100%, 0)) +} + +.layui-colorpicker-basis-black { + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + background: linear-gradient(0deg, #000, transparent) +} + +.layui-colorpicker-basis-cursor { + width: 10px; + height: 10px; + border: 1px solid #FFF; + border-radius: 50%; + position: absolute; + top: -3px; + right: -3px; + cursor: pointer +} + +.layui-colorpicker-side { + position: absolute; + top: 0; + right: 0; + width: 12px; + height: 100%; + background: linear-gradient(red, #FF0, #0F0, #0FF, #00F, #F0F, red) +} + +.layui-colorpicker-side-slider { + width: 100%; + height: 5px; + box-shadow: 0 0 1px #888; + background: #FFF; + border-radius: 1px; + border: 1px solid #f0f0f0; + cursor: pointer; + position: absolute; + left: 0 +} + +.layui-colorpicker-main-alpha { + display: none; + height: 12px; + margin-top: 7px; + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==) +} + +.layui-colorpicker-alpha-bgcolor { + height: 100%; + position: relative +} + +.layui-colorpicker-alpha-slider { + width: 5px; + height: 100%; + box-shadow: 0 0 1px #888; + background: #FFF; + border-radius: 1px; + border: 1px solid #f0f0f0; + cursor: pointer; + position: absolute; + top: 0 +} + +.layui-colorpicker-main-pre { + padding-top: 7px; + font-size: 0 +} + +.layui-colorpicker-pre { + width: 20px; + height: 20px; + border-radius: 2px; + display: inline-block; + margin-left: 6px; + margin-bottom: 7px; + cursor: pointer +} + +.layui-colorpicker-pre:nth-child(11n+1) { + margin-left: 0 +} + +.layui-colorpicker-pre-isalpha { + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==) +} + +.layui-colorpicker-pre.layui-this { + box-shadow: 0 0 3px 2px rgba(0, 0, 0, .15) +} + +.layui-colorpicker-pre > div { + height: 100%; + border-radius: 2px +} + +.layui-colorpicker-main-input { + text-align: right; + padding-top: 7px +} + +.layui-colorpicker-main-input .layui-btn-container .layui-btn { + margin: 0 0 0 10px +} + +.layui-colorpicker-main-input div.layui-inline { + float: left; + margin-right: 10px; + font-size: 14px +} + +.layui-colorpicker-main-input input.layui-input { + width: 150px; + height: 30px; + color: #666 +} + +.layui-slider { + height: 4px; + background: #eee; + border-radius: 3px; + position: relative; + cursor: pointer +} + +.layui-slider-bar { + border-radius: 3px; + position: absolute; + height: 100% +} + +.layui-slider-step { + position: absolute; + top: 0; + width: 4px; + height: 4px; + border-radius: 50%; + background: #FFF; + -webkit-transform: translateX(-50%); + transform: translateX(-50%) +} + +.layui-slider-wrap { + width: 36px; + height: 36px; + position: absolute; + top: -16px; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + z-index: 10; + text-align: center +} + +.layui-slider-wrap-btn { + width: 12px; + height: 12px; + border-radius: 50%; + background: #FFF; + display: inline-block; + vertical-align: middle; + cursor: pointer; + transition: .3s +} + +.layui-slider-wrap:after { + content: ""; + height: 100%; + display: inline-block; + vertical-align: middle +} + +.layui-slider-wrap-btn.layui-slider-hover, .layui-slider-wrap-btn:hover { + transform: scale(1.2) +} + +.layui-slider-wrap-btn.layui-disabled:hover { + transform: scale(1) !important +} + +.layui-slider-tips { + position: absolute; + top: -42px; + z-index: 66666666; + white-space: nowrap; + display: none; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + color: #FFF; + background: #000; + border-radius: 3px; + height: 25px; + line-height: 25px; + padding: 0 10px +} + +.layui-slider-tips:after { + content: ""; + position: absolute; + bottom: -12px; + left: 50%; + margin-left: -6px; + width: 0; + height: 0; + border-width: 6px; + border-style: solid; + border-color: #000 transparent transparent +} + +.layui-slider-input { + width: 70px; + height: 32px; + border: 1px solid #eee; + border-radius: 3px; + font-size: 16px; + line-height: 32px; + position: absolute; + right: 0; + top: -14px +} + +.layui-slider-input-btn { + position: absolute; + top: 0; + right: 0; + width: 20px; + height: 100%; + border-left: 1px solid #eee +} + +.layui-slider-input-btn i { + cursor: pointer; + position: absolute; + right: 0; + bottom: 0; + width: 20px; + height: 50%; + font-size: 12px; + line-height: 16px; + text-align: center; + color: #999 +} + +.layui-slider-input-btn i:first-child { + top: 0; + border-bottom: 1px solid #eee +} + +.layui-slider-input-txt { + height: 100%; + font-size: 14px +} + +.layui-slider-input-txt input { + height: 100%; + border: none +} + +.layui-slider-input-btn i:hover { + color: #009688 +} + +.layui-slider-vertical { + width: 4px; + margin-left: 33px +} + +.layui-slider-vertical .layui-slider-bar { + width: 4px +} + +.layui-slider-vertical .layui-slider-step { + top: auto; + left: 0; + -webkit-transform: translateY(50%); + transform: translateY(50%) +} + +.layui-slider-vertical .layui-slider-wrap { + top: auto; + left: -16px; + -webkit-transform: translateY(50%); + transform: translateY(50%) +} + +.layui-slider-vertical .layui-slider-tips { + top: auto; + left: 2px +} + +@media \0screen { + .layui-slider-wrap-btn { + margin-left: -20px + } + + .layui-slider-vertical .layui-slider-wrap-btn { + margin-left: 0; + margin-bottom: -20px + } + + .layui-slider-vertical .layui-slider-tips { + margin-left: -8px + } + + .layui-slider > span { + margin-left: 8px + } +} + +.layui-tree { + line-height: 22px +} + +.layui-tree .layui-form-checkbox { + margin: 0 !important +} + +.layui-tree-set { + width: 100%; + position: relative +} + +.layui-tree-pack { + display: none; + padding-left: 20px; + position: relative +} + +.layui-tree-iconClick, .layui-tree-main { + display: inline-block; + vertical-align: middle +} + +.layui-tree-line .layui-tree-pack { + padding-left: 27px +} + +.layui-tree-line .layui-tree-set .layui-tree-set:after { + content: ""; + position: absolute; + top: 14px; + left: -9px; + width: 17px; + height: 0; + border-top: 1px dotted #c0c4cc +} + +.layui-tree-entry { + position: relative; + padding: 3px 0; + height: 20px; + white-space: nowrap +} + +.layui-tree-entry:hover { + background-color: #eee +} + +.layui-tree-line .layui-tree-entry:hover { + background-color: rgba(0, 0, 0, 0) +} + +.layui-tree-line .layui-tree-entry:hover .layui-tree-txt { + color: #999; + text-decoration: underline; + transition: .3s +} + +.layui-tree-main { + cursor: pointer; + padding-right: 10px +} + +.layui-tree-line .layui-tree-set:before { + content: ""; + position: absolute; + top: 0; + left: -9px; + width: 0; + height: 100%; + border-left: 1px dotted #c0c4cc +} + +.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before { + height: 13px +} + +.layui-tree-line .layui-tree-set.layui-tree-setHide:before { + height: 0 +} + +.layui-tree-iconClick { + position: relative; + height: 20px; + line-height: 20px; + margin: 0 10px; + color: #c0c4cc +} + +.layui-tree-icon { + height: 12px; + line-height: 12px; + width: 12px; + text-align: center; + border: 1px solid #c0c4cc +} + +.layui-tree-iconClick .layui-icon { + font-size: 18px +} + +.layui-tree-icon .layui-icon { + font-size: 12px; + color: #666 +} + +.layui-tree-iconArrow { + padding: 0 5px +} + +.layui-tree-iconArrow:after { + content: ""; + position: absolute; + left: 4px; + top: 3px; + z-index: 100; + width: 0; + height: 0; + border-width: 5px; + border-style: solid; + border-color: transparent transparent transparent #c0c4cc; + transition: .5s +} + +.layui-tree-btnGroup, .layui-tree-editInput { + position: relative; + vertical-align: middle; + display: inline-block +} + +.layui-tree-spread > .layui-tree-entry > .layui-tree-iconClick > .layui-tree-iconArrow:after { + transform: rotate(90deg) translate(3px, 4px) +} + +.layui-tree-txt { + display: inline-block; + vertical-align: middle; + color: #555 +} + +.layui-tree-search { + margin-bottom: 15px; + color: #666 +} + +.layui-tree-btnGroup .layui-icon { + display: inline-block; + vertical-align: middle; + padding: 0 2px; + cursor: pointer +} + +.layui-tree-btnGroup .layui-icon:hover { + color: #999; + transition: .3s +} + +.layui-tree-entry:hover .layui-tree-btnGroup { + visibility: visible +} + +.layui-tree-editInput { + height: 20px; + line-height: 20px; + padding: 0 3px; + border: none; + background-color: rgba(0, 0, 0, .05) +} + +.layui-tree-emptyText { + text-align: center; + color: #999 +} + +.layui-anim { + -webkit-animation-duration: .3s; + -webkit-animation-fill-mode: both; + animation-duration: .3s; + animation-fill-mode: both +} + +.layui-anim.layui-icon { + display: inline-block +} + +.layui-anim-loop { + -webkit-animation-iteration-count: infinite; + animation-iteration-count: infinite +} + +.layui-trans, .layui-trans a { + transition: all .2s; + -webkit-transition: all .2s +} + +@-webkit-keyframes layui-rotate { + from { + -webkit-transform: rotate(0) + } + to { + -webkit-transform: rotate(360deg) + } +} + +@keyframes layui-rotate { + from { + transform: rotate(0) + } + to { + transform: rotate(360deg) + } +} + +.layui-anim-rotate { + -webkit-animation-name: layui-rotate; + animation-name: layui-rotate; + -webkit-animation-duration: 1s; + animation-duration: 1s; + -webkit-animation-timing-function: linear; + animation-timing-function: linear +} + +@-webkit-keyframes layui-up { + from { + -webkit-transform: translate3d(0, 100%, 0); + opacity: .3 + } + to { + -webkit-transform: translate3d(0, 0, 0); + opacity: 1 + } +} + +@keyframes layui-up { + from { + transform: translate3d(0, 100%, 0); + opacity: .3 + } + to { + transform: translate3d(0, 0, 0); + opacity: 1 + } +} + +.layui-anim-up { + -webkit-animation-name: layui-up; + animation-name: layui-up +} + +@-webkit-keyframes layui-upbit { + from { + -webkit-transform: translate3d(0, 15px, 0); + opacity: .3 + } + to { + -webkit-transform: translate3d(0, 0, 0); + opacity: 1 + } +} + +@keyframes layui-upbit { + from { + transform: translate3d(0, 15px, 0); + opacity: .3 + } + to { + transform: translate3d(0, 0, 0); + opacity: 1 + } +} + +.layui-anim-upbit { + -webkit-animation-name: layui-upbit; + animation-name: layui-upbit +} + +@keyframes layui-down { + 0% { + opacity: .3; + transform: translate3d(0, -100%, 0) + } + 100% { + opacity: 1; + transform: translate3d(0, 0, 0) + } +} + +.layui-anim-down { + animation-name: layui-down +} + +@keyframes layui-downbit { + 0% { + opacity: .3; + transform: translate3d(0, -5px, 0) + } + 100% { + opacity: 1; + transform: translate3d(0, 0, 0) + } +} + +.layui-anim-downbit { + animation-name: layui-downbit +} + +@-webkit-keyframes layui-scale { + 0% { + opacity: .3; + -webkit-transform: scale(.5) + } + 100% { + opacity: 1; + -webkit-transform: scale(1) + } +} + +@keyframes layui-scale { + 0% { + opacity: .3; + -ms-transform: scale(.5); + transform: scale(.5) + } + 100% { + opacity: 1; + -ms-transform: scale(1); + transform: scale(1) + } +} + +.layui-anim-scale { + -webkit-animation-name: layui-scale; + animation-name: layui-scale +} + +@-webkit-keyframes layui-scale-spring { + 0% { + opacity: .5; + -webkit-transform: scale(.5) + } + 80% { + opacity: .8; + -webkit-transform: scale(1.1) + } + 100% { + opacity: 1; + -webkit-transform: scale(1) + } +} + +@keyframes layui-scale-spring { + 0% { + opacity: .5; + transform: scale(.5) + } + 80% { + opacity: .8; + transform: scale(1.1) + } + 100% { + opacity: 1; + transform: scale(1) + } +} + +.layui-anim-scaleSpring { + -webkit-animation-name: layui-scale-spring; + animation-name: layui-scale-spring +} + +@keyframes layui-scalesmall { + 0% { + opacity: .3; + transform: scale(1.5) + } + 100% { + opacity: 1; + transform: scale(1) + } +} + +.layui-anim-scalesmall { + animation-name: layui-scalesmall +} + +@keyframes layui-scalesmall-spring { + 0% { + opacity: .3; + transform: scale(1.5) + } + 80% { + opacity: .8; + transform: scale(.9) + } + 100% { + opacity: 1; + transform: scale(1) + } +} + +.layui-anim-scalesmall-spring { + animation-name: layui-scalesmall-spring +} + +@-webkit-keyframes layui-fadein { + 0% { + opacity: 0 + } + 100% { + opacity: 1 + } +} + +@keyframes layui-fadein { + 0% { + opacity: 0 + } + 100% { + opacity: 1 + } +} + +.layui-anim-fadein { + -webkit-animation-name: layui-fadein; + animation-name: layui-fadein +} + +@-webkit-keyframes layui-fadeout { + 0% { + opacity: 1 + } + 100% { + opacity: 0 + } +} + +@keyframes layui-fadeout { + 0% { + opacity: 1 + } + 100% { + opacity: 0 + } +} + +.layui-anim-fadeout { + -webkit-animation-name: layui-fadeout; + animation-name: layui-fadeout +} \ No newline at end of file diff --git a/static/css/modules/code.css b/static/css/modules/code.css new file mode 100644 index 0000000..0fee0c5 --- /dev/null +++ b/static/css/modules/code.css @@ -0,0 +1 @@ +html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:40px;line-height:40px;border-bottom:1px solid #eee}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 10px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view .layui-code-ol li:first-child{padding-top:10px}.layui-code-view .layui-code-ol li:last-child{padding-bottom:10px}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}.layui-code-demo .layui-code{visibility:visible!important;margin:-15px;border-top:none;border-right:none;border-bottom:none}.layui-code-demo .layui-tab-content{padding:15px;border-top:none} \ No newline at end of file diff --git a/static/css/modules/laydate/default/laydate.css b/static/css/modules/laydate/default/laydate.css new file mode 100644 index 0000000..c08928b --- /dev/null +++ b/static/css/modules/laydate/default/laydate.css @@ -0,0 +1 @@ +.laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-name:laydate-downbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@keyframes laydate-downbit{0%{opacity:.3;transform:translate3d(0,-5px,0)}100%{opacity:1;transform:translate3d(0,0,0)}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;padding:0 5px;color:#999;font-size:18px;cursor:pointer}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-set-ym span{padding:0 10px;cursor:pointer}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px}.layui-laydate-footer span{display:inline-block;vertical-align:top;height:26px;line-height:24px;padding:0 10px;border:1px solid #C9C9C9;border-radius:2px;background-color:#fff;font-size:12px;cursor:pointer;white-space:nowrap;transition:all .3s}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-footer span:hover{color:#5FB878}.layui-laydate-footer span.layui-laydate-preview{cursor:default;border-color:transparent!important}.layui-laydate-footer span.layui-laydate-preview:hover{color:#666}.layui-laydate-footer span:first-child.layui-laydate-preview{padding-left:0}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{margin:0 0 0 -1px}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;height:30px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content,.layui-laydate-range .laydate-main-list-1 .layui-laydate-header{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#B5FFF8}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eee;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} \ No newline at end of file diff --git a/static/css/modules/layer/default/icon-ext.png b/static/css/modules/layer/default/icon-ext.png new file mode 100644 index 0000000..bbbb669 Binary files /dev/null and b/static/css/modules/layer/default/icon-ext.png differ diff --git a/static/css/modules/layer/default/icon.png b/static/css/modules/layer/default/icon.png new file mode 100644 index 0000000..3e17da8 Binary files /dev/null and b/static/css/modules/layer/default/icon.png differ diff --git a/static/css/modules/layer/default/layer.css b/static/css/modules/layer/default/layer.css new file mode 100644 index 0000000..db51f31 --- /dev/null +++ b/static/css/modules/layer/default/layer.css @@ -0,0 +1 @@ +.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:50px;line-height:50px;border-bottom:1px solid #F0F0F0;font-size:14px;color:#333;overflow:hidden;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:17px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:300px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:260px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:300px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:51px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{background:0 0;box-shadow:none}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgnext,.layui-layer-imgprev{position:fixed;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:30px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:30px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:fixed;left:0;right:0;bottom:0;width:100%;height:40px;line-height:40px;background-color:#000\9;filter:Alpha(opacity=60);background-color:rgba(2,0,0,.35);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} \ No newline at end of file diff --git a/static/css/modules/layer/default/loading-0.gif b/static/css/modules/layer/default/loading-0.gif new file mode 100644 index 0000000..6f3c953 Binary files /dev/null and b/static/css/modules/layer/default/loading-0.gif differ diff --git a/static/css/modules/layer/default/loading-1.gif b/static/css/modules/layer/default/loading-1.gif new file mode 100644 index 0000000..db3a483 Binary files /dev/null and b/static/css/modules/layer/default/loading-1.gif differ diff --git a/static/css/modules/layer/default/loading-2.gif b/static/css/modules/layer/default/loading-2.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/static/css/modules/layer/default/loading-2.gif differ diff --git a/static/css/mycss.css b/static/css/mycss.css new file mode 100644 index 0000000..1f8e10a --- /dev/null +++ b/static/css/mycss.css @@ -0,0 +1,130 @@ +.hen { + height: 334px; + margin: 30px; + background-color: white; + border-bottom: black; + box-shadow: 5px 5px 15px rgba(0, 0, 0, .3); +} + +.img_style { + width: 100%; + margin-top: 10px; +} + +#search { + height: 25px; +} + + +/*定义留言板ui*/ +.LeavingAessage_box, +.BriefIntroduction_box, +.declare_box, +.timeline_box { + height: 95%; + width: 95%; + background-color: white; + margin: 20px auto; + overflow: hidden + +} + +.input_text textarea { + width: 95%; + margin: 40px auto 0; + height: 100px; +} + +.LeavingAessage_box p { + width: 95%; + margin: 30px auto 0; + font-size: 30px; + display: inline; +} + + +.input_text button { + margin: 20px 30px 0 auto; + float: right; +} + +.LeavingAessage_box h3 { + margin: 30px auto 0; + font-size: 30px; +} + +.LeavingAessage_box i { + font-size: 30px; + margin-left: 30px; + +} + +.LeavingAessage_box h4 { + float: right; + margin-right: 30px; + +} + +#message_text { + width: 95%; + margin-top: 30px; +} + +#text { + width: 90%; + display: inline-block; + font-size: 30px; +} + +#icon { + float: left; + display: inline-block; + width: 7%; +} + +#message_text hr { + width: 95%; + margin: 0 auto; +} + + +#message_box::-webkit-scrollbar { + display: none; +} + +.hide { + display: none; +} + +.show_out { +} + + +/*定义时间线*/ +.line_box { + margin: 30px 50px; + +} + + +.layui-nav-tree .layui-nav-child .color { + color: rgba(255, 255, 255, .7); + margin-left: 20px; + margin-right: 20px; +} + + +#color_div { + color: #fff; + color: rgba(255, 255, 255, .7) + +} +.label_meg { + float: left; + +} + + +.NO:hover{ + background-color: #393d49 !important; +} \ No newline at end of file diff --git a/static/css/pageHeader.css b/static/css/pageHeader.css new file mode 100644 index 0000000..7a286a8 --- /dev/null +++ b/static/css/pageHeader.css @@ -0,0 +1,41 @@ +/*页面开头的表头*/ +.nav{ + float: left; + width: 100%; + height:90px; + background-color: rgb(69, 73, 77); + +} + +/*取消块级元素,使其在一行*/ +.nav ul li { + display: inline-flex; +} + +/*将几个元素连接起来*/ +.nav ul li a { + + padding: 30px 80px; + font-size: 20px; + text-align: center; + text-decoration: none; + color: rgb(255, 248, 248); + font-family: Tahoma; + +} + +/*使其选中块就可以点击*/ +li a { + display: block; + +} + +/*鼠标停留*/ +.nav li a:hover { + background-color: rgb(3, 8, 8); +} + +.active { + background-color: #3371f7; +} + diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..51f4c2e --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,21 @@ +body{ + background:#f3f3f3; + text-align:center; /* 文字居中 */ +} + +*{margin:0;padding:0} + +.guanyu{ + background-color: white; + width: 100%; + height: 500px; + +} +.guanyu h3{ + + color: #666666; + margin: 20px; + padding: 30px; + text-align: left; + font-size: 25px; +} diff --git a/static/font/iconfont.eot b/static/font/iconfont.eot new file mode 100644 index 0000000..622d7ec Binary files /dev/null and b/static/font/iconfont.eot differ diff --git a/static/font/iconfont.svg b/static/font/iconfont.svg new file mode 100644 index 0000000..999ca1f --- /dev/null +++ b/static/font/iconfont.svg @@ -0,0 +1,554 @@ + + + + + +Created by iconfont + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/font/iconfont.ttf b/static/font/iconfont.ttf new file mode 100644 index 0000000..06e30f9 Binary files /dev/null and b/static/font/iconfont.ttf differ diff --git a/static/font/iconfont.woff b/static/font/iconfont.woff new file mode 100644 index 0000000..66a1783 Binary files /dev/null and b/static/font/iconfont.woff differ diff --git a/static/font/iconfont.woff2 b/static/font/iconfont.woff2 new file mode 100644 index 0000000..47e9980 Binary files /dev/null and b/static/font/iconfont.woff2 differ diff --git a/static/img_eg/example_chart/Aggregated_Pyramids.png b/static/img_eg/example_chart/Aggregated_Pyramids.png new file mode 100644 index 0000000..caca4b9 Binary files /dev/null and b/static/img_eg/example_chart/Aggregated_Pyramids.png differ diff --git a/static/img_eg/example_chart/Area_Chart_UnStacked.png b/static/img_eg/example_chart/Area_Chart_UnStacked.png new file mode 100644 index 0000000..1f56945 Binary files /dev/null and b/static/img_eg/example_chart/Area_Chart_UnStacked.png differ diff --git a/static/img_eg/example_chart/Areas_Under_a_Time_Series.png b/static/img_eg/example_chart/Areas_Under_a_Time_Series.png new file mode 100644 index 0000000..a9a8bb1 Binary files /dev/null and b/static/img_eg/example_chart/Areas_Under_a_Time_Series.png differ diff --git a/static/img_eg/example_chart/Balloon_Plot.png b/static/img_eg/example_chart/Balloon_Plot.png new file mode 100644 index 0000000..cf1f89b Binary files /dev/null and b/static/img_eg/example_chart/Balloon_Plot.png differ diff --git a/static/img_eg/example_chart/Bar_Chart.png b/static/img_eg/example_chart/Bar_Chart.png new file mode 100644 index 0000000..c4da915 Binary files /dev/null and b/static/img_eg/example_chart/Bar_Chart.png differ diff --git a/static/img_eg/example_chart/Bar_Chart_Simple.png b/static/img_eg/example_chart/Bar_Chart_Simple.png new file mode 100644 index 0000000..8807ec0 Binary files /dev/null and b/static/img_eg/example_chart/Bar_Chart_Simple.png differ diff --git a/static/img_eg/example_chart/Bump_Chart.png b/static/img_eg/example_chart/Bump_Chart.png new file mode 100644 index 0000000..afc0b56 Binary files /dev/null and b/static/img_eg/example_chart/Bump_Chart.png differ diff --git a/static/img_eg/example_chart/Column_Chart_for_Developments.png b/static/img_eg/example_chart/Column_Chart_for_Developments.png new file mode 100644 index 0000000..1b61eb3 Binary files /dev/null and b/static/img_eg/example_chart/Column_Chart_for_Developments.png differ diff --git a/static/img_eg/example_chart/Column_Chart_with_Percentages_for_Growth_Developments.png b/static/img_eg/example_chart/Column_Chart_with_Percentages_for_Growth_Developments.png new file mode 100644 index 0000000..f2f9772 Binary files /dev/null and b/static/img_eg/example_chart/Column_Chart_with_Percentages_for_Growth_Developments.png differ diff --git a/static/img_eg/example_chart/Comparison_with_Bar_Chart_1.png b/static/img_eg/example_chart/Comparison_with_Bar_Chart_1.png new file mode 100644 index 0000000..6d91e45 Binary files /dev/null and b/static/img_eg/example_chart/Comparison_with_Bar_Chart_1.png differ diff --git a/static/img_eg/example_chart/Comparison_with_Bar_Chart_2.png b/static/img_eg/example_chart/Comparison_with_Bar_Chart_2.png new file mode 100644 index 0000000..c3ef515 Binary files /dev/null and b/static/img_eg/example_chart/Comparison_with_Bar_Chart_2.png differ diff --git a/static/img_eg/example_chart/Comparison_with_Bar_Chart_3.png b/static/img_eg/example_chart/Comparison_with_Bar_Chart_3.png new file mode 100644 index 0000000..3aa3bfa Binary files /dev/null and b/static/img_eg/example_chart/Comparison_with_Bar_Chart_3.png differ diff --git a/static/img_eg/example_chart/Composition_Bar.png b/static/img_eg/example_chart/Composition_Bar.png new file mode 100644 index 0000000..de7e7d7 Binary files /dev/null and b/static/img_eg/example_chart/Composition_Bar.png differ diff --git a/static/img_eg/example_chart/Composition_BarOfColorsDataByGroup.png b/static/img_eg/example_chart/Composition_BarOfColorsDataByGroup.png new file mode 100644 index 0000000..22baac8 Binary files /dev/null and b/static/img_eg/example_chart/Composition_BarOfColorsDataByGroup.png differ diff --git a/static/img_eg/example_chart/Composition_Pie.png b/static/img_eg/example_chart/Composition_Pie.png new file mode 100644 index 0000000..7de21b7 Binary files /dev/null and b/static/img_eg/example_chart/Composition_Pie.png differ diff --git a/static/img_eg/example_chart/Composition_Waffles.png b/static/img_eg/example_chart/Composition_Waffles.png new file mode 100644 index 0000000..291df61 Binary files /dev/null and b/static/img_eg/example_chart/Composition_Waffles.png differ diff --git a/static/img_eg/example_chart/Correlation_Box.png b/static/img_eg/example_chart/Correlation_Box.png new file mode 100644 index 0000000..973abd1 Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Box.png differ diff --git a/static/img_eg/example_chart/Correlation_Bubble.png b/static/img_eg/example_chart/Correlation_Bubble.png new file mode 100644 index 0000000..ad636e5 Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Bubble.png differ diff --git a/static/img_eg/example_chart/Correlation_Correlation.png b/static/img_eg/example_chart/Correlation_Correlation.png new file mode 100644 index 0000000..1e9a813 Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Correlation.png differ diff --git a/static/img_eg/example_chart/Correlation_Count.png b/static/img_eg/example_chart/Correlation_Count.png new file mode 100644 index 0000000..194e7ba Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Count.png differ diff --git a/static/img_eg/example_chart/Correlation_Jitter.png b/static/img_eg/example_chart/Correlation_Jitter.png new file mode 100644 index 0000000..5eadc7e Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Jitter.png differ diff --git a/static/img_eg/example_chart/Correlation_Scatter.png b/static/img_eg/example_chart/Correlation_Scatter.png new file mode 100644 index 0000000..047b4c3 Binary files /dev/null and b/static/img_eg/example_chart/Correlation_Scatter.png differ diff --git a/static/img_eg/example_chart/Correllogram.png b/static/img_eg/example_chart/Correllogram.png new file mode 100644 index 0000000..e047f30 Binary files /dev/null and b/static/img_eg/example_chart/Correllogram.png differ diff --git a/static/img_eg/example_chart/Daily_Values_with_Labels.png b/static/img_eg/example_chart/Daily_Values_with_Labels.png new file mode 100644 index 0000000..b826ef8 Binary files /dev/null and b/static/img_eg/example_chart/Daily_Values_with_Labels.png differ diff --git a/static/img_eg/example_chart/Density_Plot.png b/static/img_eg/example_chart/Density_Plot.png new file mode 100644 index 0000000..f80715f Binary files /dev/null and b/static/img_eg/example_chart/Density_Plot.png differ diff --git a/static/img_eg/example_chart/Deviation_Area.png b/static/img_eg/example_chart/Deviation_Area.png new file mode 100644 index 0000000..b52a586 Binary files /dev/null and b/static/img_eg/example_chart/Deviation_Area.png differ diff --git a/static/img_eg/example_chart/Deviation_Bar.png b/static/img_eg/example_chart/Deviation_Bar.png new file mode 100644 index 0000000..48c5720 Binary files /dev/null and b/static/img_eg/example_chart/Deviation_Bar.png differ diff --git a/static/img_eg/example_chart/Deviation_Lollipop.png b/static/img_eg/example_chart/Deviation_Lollipop.png new file mode 100644 index 0000000..3d44555 Binary files /dev/null and b/static/img_eg/example_chart/Deviation_Lollipop.png differ diff --git a/static/img_eg/example_chart/Distribution_BoxWithDots.png b/static/img_eg/example_chart/Distribution_BoxWithDots.png new file mode 100644 index 0000000..afe7393 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_BoxWithDots.png differ diff --git a/static/img_eg/example_chart/Distribution_Box_1.png b/static/img_eg/example_chart/Distribution_Box_1.png new file mode 100644 index 0000000..ebd9d9d Binary files /dev/null and b/static/img_eg/example_chart/Distribution_Box_1.png differ diff --git a/static/img_eg/example_chart/Distribution_Box_2.png b/static/img_eg/example_chart/Distribution_Box_2.png new file mode 100644 index 0000000..01b77ad Binary files /dev/null and b/static/img_eg/example_chart/Distribution_Box_2.png differ diff --git a/static/img_eg/example_chart/Distribution_DensityFunction.png b/static/img_eg/example_chart/Distribution_DensityFunction.png new file mode 100644 index 0000000..71c8229 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_DensityFunction.png differ diff --git a/static/img_eg/example_chart/Distribution_Histogram.png b/static/img_eg/example_chart/Distribution_Histogram.png new file mode 100644 index 0000000..524ccf0 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_Histogram.png differ diff --git a/static/img_eg/example_chart/Distribution_HistogramOfClassificationVariables.png b/static/img_eg/example_chart/Distribution_HistogramOfClassificationVariables.png new file mode 100644 index 0000000..503c04f Binary files /dev/null and b/static/img_eg/example_chart/Distribution_HistogramOfClassificationVariables.png differ diff --git a/static/img_eg/example_chart/Distribution_PopulationPyramid.png b/static/img_eg/example_chart/Distribution_PopulationPyramid.png new file mode 100644 index 0000000..ffbc696 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_PopulationPyramid.png differ diff --git a/static/img_eg/example_chart/Distribution_TufteBox.png b/static/img_eg/example_chart/Distribution_TufteBox.png new file mode 100644 index 0000000..ad241a9 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_TufteBox.png differ diff --git a/static/img_eg/example_chart/Distribution_Violin.png b/static/img_eg/example_chart/Distribution_Violin.png new file mode 100644 index 0000000..e384355 Binary files /dev/null and b/static/img_eg/example_chart/Distribution_Violin.png differ diff --git a/static/img_eg/example_chart/Diverging_Bars.png b/static/img_eg/example_chart/Diverging_Bars.png new file mode 100644 index 0000000..2fa94d1 Binary files /dev/null and b/static/img_eg/example_chart/Diverging_Bars.png differ diff --git a/static/img_eg/example_chart/Diverging_Bars_vertical.png b/static/img_eg/example_chart/Diverging_Bars_vertical.png new file mode 100644 index 0000000..fc1c196 Binary files /dev/null and b/static/img_eg/example_chart/Diverging_Bars_vertical.png differ diff --git a/static/img_eg/example_chart/Dot_Box_Plot.png b/static/img_eg/example_chart/Dot_Box_Plot.png new file mode 100644 index 0000000..d9bb31a Binary files /dev/null and b/static/img_eg/example_chart/Dot_Box_Plot.png differ diff --git a/static/img_eg/example_chart/Dot_Plot.png b/static/img_eg/example_chart/Dot_Plot.png new file mode 100644 index 0000000..b9f8773 Binary files /dev/null and b/static/img_eg/example_chart/Dot_Plot.png differ diff --git a/static/img_eg/example_chart/Dumbbell_Plot.png b/static/img_eg/example_chart/Dumbbell_Plot.png new file mode 100644 index 0000000..74a4a31 Binary files /dev/null and b/static/img_eg/example_chart/Dumbbell_Plot.png differ diff --git a/static/img_eg/example_chart/Each_regression_line_in_its_own_column.png b/static/img_eg/example_chart/Each_regression_line_in_its_own_column.png new file mode 100644 index 0000000..eb1637e Binary files /dev/null and b/static/img_eg/example_chart/Each_regression_line_in_its_own_column.png differ diff --git a/static/img_eg/example_chart/Group_HierarchicalTree.png b/static/img_eg/example_chart/Group_HierarchicalTree.png new file mode 100644 index 0000000..93c06d0 Binary files /dev/null and b/static/img_eg/example_chart/Group_HierarchicalTree.png differ diff --git a/static/img_eg/example_chart/Heat_Map.png b/static/img_eg/example_chart/Heat_Map.png new file mode 100644 index 0000000..eefaf0c Binary files /dev/null and b/static/img_eg/example_chart/Heat_Map.png differ diff --git a/static/img_eg/example_chart/Jittering_with_stripplot.png b/static/img_eg/example_chart/Jittering_with_stripplot.png new file mode 100644 index 0000000..47a84f1 Binary files /dev/null and b/static/img_eg/example_chart/Jittering_with_stripplot.png differ diff --git a/static/img_eg/example_chart/Joy_Plot.png b/static/img_eg/example_chart/Joy_Plot.png new file mode 100644 index 0000000..74e19b3 Binary files /dev/null and b/static/img_eg/example_chart/Joy_Plot.png differ diff --git a/static/img_eg/example_chart/Lollipop_Chart.png b/static/img_eg/example_chart/Lollipop_Chart.png new file mode 100644 index 0000000..40b20c3 Binary files /dev/null and b/static/img_eg/example_chart/Lollipop_Chart.png differ diff --git a/static/img_eg/example_chart/Marginal_Boxplot.png b/static/img_eg/example_chart/Marginal_Boxplot.png new file mode 100644 index 0000000..478714b Binary files /dev/null and b/static/img_eg/example_chart/Marginal_Boxplot.png differ diff --git a/static/img_eg/example_chart/Marginal_Histogram.png b/static/img_eg/example_chart/Marginal_Histogram.png new file mode 100644 index 0000000..fa6633c Binary files /dev/null and b/static/img_eg/example_chart/Marginal_Histogram.png differ diff --git a/static/img_eg/example_chart/Monthly_Values_with_Monthly_Labels_Layout.png b/static/img_eg/example_chart/Monthly_Values_with_Monthly_Labels_Layout.png new file mode 100644 index 0000000..16f6e40 Binary files /dev/null and b/static/img_eg/example_chart/Monthly_Values_with_Monthly_Labels_Layout.png differ diff --git a/static/img_eg/example_chart/Multiple_Time_Series.png b/static/img_eg/example_chart/Multiple_Time_Series.png new file mode 100644 index 0000000..d41081f Binary files /dev/null and b/static/img_eg/example_chart/Multiple_Time_Series.png differ diff --git a/static/img_eg/example_chart/Ordered_Bar_Chart.png b/static/img_eg/example_chart/Ordered_Bar_Chart.png new file mode 100644 index 0000000..a7e9226 Binary files /dev/null and b/static/img_eg/example_chart/Ordered_Bar_Chart.png differ diff --git a/static/img_eg/example_chart/Pie_Chart.png b/static/img_eg/example_chart/Pie_Chart.png new file mode 100644 index 0000000..ae46b3e Binary files /dev/null and b/static/img_eg/example_chart/Pie_Chart.png differ diff --git a/static/img_eg/example_chart/Plotting_with_different_scales_using_secondary_Y_axis.png b/static/img_eg/example_chart/Plotting_with_different_scales_using_secondary_Y_axis.png new file mode 100644 index 0000000..3efdb11 Binary files /dev/null and b/static/img_eg/example_chart/Plotting_with_different_scales_using_secondary_Y_axis.png differ diff --git a/static/img_eg/example_chart/Population_Pyramid.png b/static/img_eg/example_chart/Population_Pyramid.png new file mode 100644 index 0000000..885fb83 Binary files /dev/null and b/static/img_eg/example_chart/Population_Pyramid.png differ diff --git a/static/img_eg/example_chart/Quarterly_Values_as_Columns.png b/static/img_eg/example_chart/Quarterly_Values_as_Columns.png new file mode 100644 index 0000000..17396ad Binary files /dev/null and b/static/img_eg/example_chart/Quarterly_Values_as_Columns.png differ diff --git a/static/img_eg/example_chart/Quarterly_Values_as_Lines_with_Value_Labels.png b/static/img_eg/example_chart/Quarterly_Values_as_Lines_with_Value_Labels.png new file mode 100644 index 0000000..90e9771 Binary files /dev/null and b/static/img_eg/example_chart/Quarterly_Values_as_Lines_with_Value_Labels.png differ diff --git a/static/img_eg/example_chart/Radial_Polygons_Overlay.png b/static/img_eg/example_chart/Radial_Polygons_Overlay.png new file mode 100644 index 0000000..e6d8985 Binary files /dev/null and b/static/img_eg/example_chart/Radial_Polygons_Overlay.png differ diff --git a/static/img_eg/example_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png b/static/img_eg/example_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png new file mode 100644 index 0000000..5e78921 Binary files /dev/null and b/static/img_eg/example_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png differ diff --git a/static/img_eg/example_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png b/static/img_eg/example_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png new file mode 100644 index 0000000..d32d980 Binary files /dev/null and b/static/img_eg/example_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png differ diff --git a/static/img_eg/example_chart/Scatter_Plot_Variant_5_Connected_Points.png b/static/img_eg/example_chart/Scatter_Plot_Variant_5_Connected_Points.png new file mode 100644 index 0000000..4919ee9 Binary files /dev/null and b/static/img_eg/example_chart/Scatter_Plot_Variant_5_Connected_Points.png differ diff --git a/static/img_eg/example_chart/Scatter_Plot_With_User_Defined_Symbols.png b/static/img_eg/example_chart/Scatter_Plot_With_User_Defined_Symbols.png new file mode 100644 index 0000000..8c506b0 Binary files /dev/null and b/static/img_eg/example_chart/Scatter_Plot_With_User_Defined_Symbols.png differ diff --git a/static/img_eg/example_chart/Scatter_Plot_with_Few_Points.png b/static/img_eg/example_chart/Scatter_Plot_with_Few_Points.png new file mode 100644 index 0000000..26da88a Binary files /dev/null and b/static/img_eg/example_chart/Scatter_Plot_with_Few_Points.png differ diff --git a/static/img_eg/example_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png b/static/img_eg/example_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png new file mode 100644 index 0000000..c4face0 Binary files /dev/null and b/static/img_eg/example_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png differ diff --git a/static/img_eg/example_chart/Seasonal_Ranges_Panel.png b/static/img_eg/example_chart/Seasonal_Ranges_Panel.png new file mode 100644 index 0000000..66a4543 Binary files /dev/null and b/static/img_eg/example_chart/Seasonal_Ranges_Panel.png differ diff --git a/static/img_eg/example_chart/Seasonal_Ranges_Stacked.png b/static/img_eg/example_chart/Seasonal_Ranges_Stacked.png new file mode 100644 index 0000000..aa4f16c Binary files /dev/null and b/static/img_eg/example_chart/Seasonal_Ranges_Stacked.png differ diff --git a/static/img_eg/example_chart/Simplified_Gantt_Chart.png b/static/img_eg/example_chart/Simplified_Gantt_Chart.png new file mode 100644 index 0000000..56571ed Binary files /dev/null and b/static/img_eg/example_chart/Simplified_Gantt_Chart.png differ diff --git a/static/img_eg/example_chart/Slope_Chart.png b/static/img_eg/example_chart/Slope_Chart.png new file mode 100644 index 0000000..99b14a0 Binary files /dev/null and b/static/img_eg/example_chart/Slope_Chart.png differ diff --git a/static/img_eg/example_chart/Sort_Dots.png b/static/img_eg/example_chart/Sort_Dots.png new file mode 100644 index 0000000..db8c386 Binary files /dev/null and b/static/img_eg/example_chart/Sort_Dots.png differ diff --git a/static/img_eg/example_chart/Sort_Lean.png b/static/img_eg/example_chart/Sort_Lean.png new file mode 100644 index 0000000..202911d Binary files /dev/null and b/static/img_eg/example_chart/Sort_Lean.png differ diff --git a/static/img_eg/example_chart/Sort_Lollipop.png b/static/img_eg/example_chart/Sort_Lollipop.png new file mode 100644 index 0000000..de2e173 Binary files /dev/null and b/static/img_eg/example_chart/Sort_Lollipop.png differ diff --git a/static/img_eg/example_chart/Sort_OrderedBar.png b/static/img_eg/example_chart/Sort_OrderedBar.png new file mode 100644 index 0000000..f6c682d Binary files /dev/null and b/static/img_eg/example_chart/Sort_OrderedBar.png differ diff --git a/static/img_eg/example_chart/Spie_chart.png b/static/img_eg/example_chart/Spie_chart.png new file mode 100644 index 0000000..4d5b19e Binary files /dev/null and b/static/img_eg/example_chart/Spie_chart.png differ diff --git a/static/img_eg/example_chart/Stacked_Area_Chart.png b/static/img_eg/example_chart/Stacked_Area_Chart.png new file mode 100644 index 0000000..c238abe Binary files /dev/null and b/static/img_eg/example_chart/Stacked_Area_Chart.png differ diff --git a/static/img_eg/example_chart/Stacked_Histogram_for_Continuous_Variable.png b/static/img_eg/example_chart/Stacked_Histogram_for_Continuous_Variable.png new file mode 100644 index 0000000..fee092f Binary files /dev/null and b/static/img_eg/example_chart/Stacked_Histogram_for_Continuous_Variable.png differ diff --git a/static/img_eg/example_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png b/static/img_eg/example_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png new file mode 100644 index 0000000..88027f9 Binary files /dev/null and b/static/img_eg/example_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_Accumulation.png b/static/img_eg/example_chart/TemporalChanges_Accumulation.png new file mode 100644 index 0000000..1522f80 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_Accumulation.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_CalendarHeat.png b/static/img_eg/example_chart/TemporalChanges_CalendarHeat.png new file mode 100644 index 0000000..65e18c9 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_CalendarHeat.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_DataframeTimeSeries.png b/static/img_eg/example_chart/TemporalChanges_DataframeTimeSeries.png new file mode 100644 index 0000000..28d0008 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_DataframeTimeSeries.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_SeasonalTimeSeries.png b/static/img_eg/example_chart/TemporalChanges_SeasonalTimeSeries.png new file mode 100644 index 0000000..5948f71 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_SeasonalTimeSeries.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png b/static/img_eg/example_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png new file mode 100644 index 0000000..7b90c9c Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_TimeSeries.png b/static/img_eg/example_chart/TemporalChanges_TimeSeries.png new file mode 100644 index 0000000..9b3a656 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_TimeSeries.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfAnnualData.png b/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfAnnualData.png new file mode 100644 index 0000000..4e6db2f Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfAnnualData.png differ diff --git a/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfMonthlyData.png b/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfMonthlyData.png new file mode 100644 index 0000000..594a406 Binary files /dev/null and b/static/img_eg/example_chart/TemporalChanges_TimeSeriesOfMonthlyData.png differ diff --git a/static/img_eg/example_chart/Time_Series_Plot.png b/static/img_eg/example_chart/Time_Series_Plot.png new file mode 100644 index 0000000..53dd2ce Binary files /dev/null and b/static/img_eg/example_chart/Time_Series_Plot.png differ diff --git a/static/img_eg/example_chart/Time_Series_with_Error_Bands.png b/static/img_eg/example_chart/Time_Series_with_Error_Bands.png new file mode 100644 index 0000000..26648ad Binary files /dev/null and b/static/img_eg/example_chart/Time_Series_with_Error_Bands.png differ diff --git a/static/img_eg/example_chart/Time_Series_with_Trend_Panel.png b/static/img_eg/example_chart/Time_Series_with_Trend_Panel.png new file mode 100644 index 0000000..effcef9 Binary files /dev/null and b/static/img_eg/example_chart/Time_Series_with_Trend_Panel.png differ diff --git a/static/img_eg/example_chart/Treemap.png b/static/img_eg/example_chart/Treemap.png new file mode 100644 index 0000000..43a779b Binary files /dev/null and b/static/img_eg/example_chart/Treemap.png differ diff --git a/static/img_eg/example_chart/Violin_Plot.png b/static/img_eg/example_chart/Violin_Plot.png new file mode 100644 index 0000000..819ea65 Binary files /dev/null and b/static/img_eg/example_chart/Violin_Plot.png differ diff --git a/static/img_eg/example_chart/Waffle_Chart.png b/static/img_eg/example_chart/Waffle_Chart.png new file mode 100644 index 0000000..9d39de4 Binary files /dev/null and b/static/img_eg/example_chart/Waffle_Chart.png differ diff --git a/static/img_eg/example_chart/boxplot.png b/static/img_eg/example_chart/boxplot.png new file mode 100644 index 0000000..9d8073d Binary files /dev/null and b/static/img_eg/example_chart/boxplot.png differ diff --git a/static/img_eg/example_chart/chord_Diagram.png b/static/img_eg/example_chart/chord_Diagram.png new file mode 100644 index 0000000..e16e953 Binary files /dev/null and b/static/img_eg/example_chart/chord_Diagram.png differ diff --git a/static/img_eg/example_chart/scatter_plot.png b/static/img_eg/example_chart/scatter_plot.png new file mode 100644 index 0000000..ba03878 Binary files /dev/null and b/static/img_eg/example_chart/scatter_plot.png differ diff --git a/static/img_eg/show_index_chart/Aggregated_Pyramids.png b/static/img_eg/show_index_chart/Aggregated_Pyramids.png new file mode 100644 index 0000000..f765f86 Binary files /dev/null and b/static/img_eg/show_index_chart/Aggregated_Pyramids.png differ diff --git a/static/img_eg/show_index_chart/Area_Chart_UnStacked.png b/static/img_eg/show_index_chart/Area_Chart_UnStacked.png new file mode 100644 index 0000000..8ed9880 Binary files /dev/null and b/static/img_eg/show_index_chart/Area_Chart_UnStacked.png differ diff --git a/static/img_eg/show_index_chart/Areas_Under_a_Time_Series.png b/static/img_eg/show_index_chart/Areas_Under_a_Time_Series.png new file mode 100644 index 0000000..18947cb Binary files /dev/null and b/static/img_eg/show_index_chart/Areas_Under_a_Time_Series.png differ diff --git a/static/img_eg/show_index_chart/Balloon_Plot.png b/static/img_eg/show_index_chart/Balloon_Plot.png new file mode 100644 index 0000000..2f35cb9 Binary files /dev/null and b/static/img_eg/show_index_chart/Balloon_Plot.png differ diff --git a/static/img_eg/show_index_chart/Bar_Chart.png b/static/img_eg/show_index_chart/Bar_Chart.png new file mode 100644 index 0000000..8f06ec2 Binary files /dev/null and b/static/img_eg/show_index_chart/Bar_Chart.png differ diff --git a/static/img_eg/show_index_chart/Bar_Chart_Simple.png b/static/img_eg/show_index_chart/Bar_Chart_Simple.png new file mode 100644 index 0000000..3ce522a Binary files /dev/null and b/static/img_eg/show_index_chart/Bar_Chart_Simple.png differ diff --git a/static/img_eg/show_index_chart/Bump_Chart.png b/static/img_eg/show_index_chart/Bump_Chart.png new file mode 100644 index 0000000..5820f5a Binary files /dev/null and b/static/img_eg/show_index_chart/Bump_Chart.png differ diff --git a/static/img_eg/show_index_chart/Column_Chart_for_Developments.png b/static/img_eg/show_index_chart/Column_Chart_for_Developments.png new file mode 100644 index 0000000..4a51889 Binary files /dev/null and b/static/img_eg/show_index_chart/Column_Chart_for_Developments.png differ diff --git a/static/img_eg/show_index_chart/Column_Chart_with_Percentages_for_Growth_Developments.png b/static/img_eg/show_index_chart/Column_Chart_with_Percentages_for_Growth_Developments.png new file mode 100644 index 0000000..7185422 Binary files /dev/null and b/static/img_eg/show_index_chart/Column_Chart_with_Percentages_for_Growth_Developments.png differ diff --git a/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_1.png b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_1.png new file mode 100644 index 0000000..20663c3 Binary files /dev/null and b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_1.png differ diff --git a/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_2.png b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_2.png new file mode 100644 index 0000000..66ab6f1 Binary files /dev/null and b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_2.png differ diff --git a/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_3.png b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_3.png new file mode 100644 index 0000000..2e59461 Binary files /dev/null and b/static/img_eg/show_index_chart/Comparison_with_Bar_Chart_3.png differ diff --git a/static/img_eg/show_index_chart/Composition_Bar.png b/static/img_eg/show_index_chart/Composition_Bar.png new file mode 100644 index 0000000..ca87ddd Binary files /dev/null and b/static/img_eg/show_index_chart/Composition_Bar.png differ diff --git a/static/img_eg/show_index_chart/Composition_BarOfColorsDataByGroup.png b/static/img_eg/show_index_chart/Composition_BarOfColorsDataByGroup.png new file mode 100644 index 0000000..0b6facd Binary files /dev/null and b/static/img_eg/show_index_chart/Composition_BarOfColorsDataByGroup.png differ diff --git a/static/img_eg/show_index_chart/Composition_Pie.png b/static/img_eg/show_index_chart/Composition_Pie.png new file mode 100644 index 0000000..1768eee Binary files /dev/null and b/static/img_eg/show_index_chart/Composition_Pie.png differ diff --git a/static/img_eg/show_index_chart/Composition_Waffles.png b/static/img_eg/show_index_chart/Composition_Waffles.png new file mode 100644 index 0000000..d8ba02d Binary files /dev/null and b/static/img_eg/show_index_chart/Composition_Waffles.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Box.png b/static/img_eg/show_index_chart/Correlation_Box.png new file mode 100644 index 0000000..20a7166 Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Box.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Bubble.png b/static/img_eg/show_index_chart/Correlation_Bubble.png new file mode 100644 index 0000000..4ca95c9 Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Bubble.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Correlation.png b/static/img_eg/show_index_chart/Correlation_Correlation.png new file mode 100644 index 0000000..4c36379 Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Correlation.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Count.png b/static/img_eg/show_index_chart/Correlation_Count.png new file mode 100644 index 0000000..0f0e771 Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Count.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Jitter.png b/static/img_eg/show_index_chart/Correlation_Jitter.png new file mode 100644 index 0000000..5b64662 Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Jitter.png differ diff --git a/static/img_eg/show_index_chart/Correlation_Scatter.png b/static/img_eg/show_index_chart/Correlation_Scatter.png new file mode 100644 index 0000000..a41dedc Binary files /dev/null and b/static/img_eg/show_index_chart/Correlation_Scatter.png differ diff --git a/static/img_eg/show_index_chart/Correllogram.png b/static/img_eg/show_index_chart/Correllogram.png new file mode 100644 index 0000000..138d434 Binary files /dev/null and b/static/img_eg/show_index_chart/Correllogram.png differ diff --git a/static/img_eg/show_index_chart/Daily_Values_with_Labels.png b/static/img_eg/show_index_chart/Daily_Values_with_Labels.png new file mode 100644 index 0000000..995c612 Binary files /dev/null and b/static/img_eg/show_index_chart/Daily_Values_with_Labels.png differ diff --git a/static/img_eg/show_index_chart/Density_Plot.png b/static/img_eg/show_index_chart/Density_Plot.png new file mode 100644 index 0000000..e382caf Binary files /dev/null and b/static/img_eg/show_index_chart/Density_Plot.png differ diff --git a/static/img_eg/show_index_chart/Deviation_Area.png b/static/img_eg/show_index_chart/Deviation_Area.png new file mode 100644 index 0000000..cdeca49 Binary files /dev/null and b/static/img_eg/show_index_chart/Deviation_Area.png differ diff --git a/static/img_eg/show_index_chart/Deviation_Bar.png b/static/img_eg/show_index_chart/Deviation_Bar.png new file mode 100644 index 0000000..288ec83 Binary files /dev/null and b/static/img_eg/show_index_chart/Deviation_Bar.png differ diff --git a/static/img_eg/show_index_chart/Deviation_Lollipop.png b/static/img_eg/show_index_chart/Deviation_Lollipop.png new file mode 100644 index 0000000..4e9ef7e Binary files /dev/null and b/static/img_eg/show_index_chart/Deviation_Lollipop.png differ diff --git a/static/img_eg/show_index_chart/Distribution_BoxWithDots.png b/static/img_eg/show_index_chart/Distribution_BoxWithDots.png new file mode 100644 index 0000000..e25641c Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_BoxWithDots.png differ diff --git a/static/img_eg/show_index_chart/Distribution_Box_1.png b/static/img_eg/show_index_chart/Distribution_Box_1.png new file mode 100644 index 0000000..ee3d5fe Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_Box_1.png differ diff --git a/static/img_eg/show_index_chart/Distribution_Box_2.png b/static/img_eg/show_index_chart/Distribution_Box_2.png new file mode 100644 index 0000000..d692d70 Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_Box_2.png differ diff --git a/static/img_eg/show_index_chart/Distribution_DensityFunction.png b/static/img_eg/show_index_chart/Distribution_DensityFunction.png new file mode 100644 index 0000000..4f71af8 Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_DensityFunction.png differ diff --git a/static/img_eg/show_index_chart/Distribution_Histogram.png b/static/img_eg/show_index_chart/Distribution_Histogram.png new file mode 100644 index 0000000..ff560c4 Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_Histogram.png differ diff --git a/static/img_eg/show_index_chart/Distribution_HistogramOfClassificationVariables.png b/static/img_eg/show_index_chart/Distribution_HistogramOfClassificationVariables.png new file mode 100644 index 0000000..9532c9c Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_HistogramOfClassificationVariables.png differ diff --git a/static/img_eg/show_index_chart/Distribution_PopulationPyramid.png b/static/img_eg/show_index_chart/Distribution_PopulationPyramid.png new file mode 100644 index 0000000..7201ccd Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_PopulationPyramid.png differ diff --git a/static/img_eg/show_index_chart/Distribution_TufteBox.png b/static/img_eg/show_index_chart/Distribution_TufteBox.png new file mode 100644 index 0000000..339793f Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_TufteBox.png differ diff --git a/static/img_eg/show_index_chart/Distribution_Violin.png b/static/img_eg/show_index_chart/Distribution_Violin.png new file mode 100644 index 0000000..078f32f Binary files /dev/null and b/static/img_eg/show_index_chart/Distribution_Violin.png differ diff --git a/static/img_eg/show_index_chart/Diverging_Bars.png b/static/img_eg/show_index_chart/Diverging_Bars.png new file mode 100644 index 0000000..650c956 Binary files /dev/null and b/static/img_eg/show_index_chart/Diverging_Bars.png differ diff --git a/static/img_eg/show_index_chart/Diverging_Bars_vertical.png b/static/img_eg/show_index_chart/Diverging_Bars_vertical.png new file mode 100644 index 0000000..fc1c196 Binary files /dev/null and b/static/img_eg/show_index_chart/Diverging_Bars_vertical.png differ diff --git a/static/img_eg/show_index_chart/Dot_Box_Plot.png b/static/img_eg/show_index_chart/Dot_Box_Plot.png new file mode 100644 index 0000000..39d25b8 Binary files /dev/null and b/static/img_eg/show_index_chart/Dot_Box_Plot.png differ diff --git a/static/img_eg/show_index_chart/Dot_Plot.png b/static/img_eg/show_index_chart/Dot_Plot.png new file mode 100644 index 0000000..da3b363 Binary files /dev/null and b/static/img_eg/show_index_chart/Dot_Plot.png differ diff --git a/static/img_eg/show_index_chart/Dumbbell_Plot.png b/static/img_eg/show_index_chart/Dumbbell_Plot.png new file mode 100644 index 0000000..64a8556 Binary files /dev/null and b/static/img_eg/show_index_chart/Dumbbell_Plot.png differ diff --git a/static/img_eg/show_index_chart/Each_regression_line_in_its_own_column.png b/static/img_eg/show_index_chart/Each_regression_line_in_its_own_column.png new file mode 100644 index 0000000..496bcc6 Binary files /dev/null and b/static/img_eg/show_index_chart/Each_regression_line_in_its_own_column.png differ diff --git a/static/img_eg/show_index_chart/Group_HierarchicalTree.png b/static/img_eg/show_index_chart/Group_HierarchicalTree.png new file mode 100644 index 0000000..13182bc Binary files /dev/null and b/static/img_eg/show_index_chart/Group_HierarchicalTree.png differ diff --git a/static/img_eg/show_index_chart/Heat_Map.png b/static/img_eg/show_index_chart/Heat_Map.png new file mode 100644 index 0000000..40839bb Binary files /dev/null and b/static/img_eg/show_index_chart/Heat_Map.png differ diff --git a/static/img_eg/show_index_chart/Jittering_with_stripplot.png b/static/img_eg/show_index_chart/Jittering_with_stripplot.png new file mode 100644 index 0000000..7d4efa8 Binary files /dev/null and b/static/img_eg/show_index_chart/Jittering_with_stripplot.png differ diff --git a/static/img_eg/show_index_chart/Joy_Plot.png b/static/img_eg/show_index_chart/Joy_Plot.png new file mode 100644 index 0000000..74e19b3 Binary files /dev/null and b/static/img_eg/show_index_chart/Joy_Plot.png differ diff --git a/static/img_eg/show_index_chart/Lollipop_Chart.png b/static/img_eg/show_index_chart/Lollipop_Chart.png new file mode 100644 index 0000000..2215b49 Binary files /dev/null and b/static/img_eg/show_index_chart/Lollipop_Chart.png differ diff --git a/static/img_eg/show_index_chart/Marginal_Boxplot.png b/static/img_eg/show_index_chart/Marginal_Boxplot.png new file mode 100644 index 0000000..03c98da Binary files /dev/null and b/static/img_eg/show_index_chart/Marginal_Boxplot.png differ diff --git a/static/img_eg/show_index_chart/Marginal_Histogram.png b/static/img_eg/show_index_chart/Marginal_Histogram.png new file mode 100644 index 0000000..efcca52 Binary files /dev/null and b/static/img_eg/show_index_chart/Marginal_Histogram.png differ diff --git a/static/img_eg/show_index_chart/Monthly_Values_with_Monthly_Labels_Layout.png b/static/img_eg/show_index_chart/Monthly_Values_with_Monthly_Labels_Layout.png new file mode 100644 index 0000000..c8f55a3 Binary files /dev/null and b/static/img_eg/show_index_chart/Monthly_Values_with_Monthly_Labels_Layout.png differ diff --git a/static/img_eg/show_index_chart/Multiple_Time_Series.png b/static/img_eg/show_index_chart/Multiple_Time_Series.png new file mode 100644 index 0000000..06393c4 Binary files /dev/null and b/static/img_eg/show_index_chart/Multiple_Time_Series.png differ diff --git a/static/img_eg/show_index_chart/Ordered_Bar_Chart.png b/static/img_eg/show_index_chart/Ordered_Bar_Chart.png new file mode 100644 index 0000000..eddc132 Binary files /dev/null and b/static/img_eg/show_index_chart/Ordered_Bar_Chart.png differ diff --git a/static/img_eg/show_index_chart/Pie_Chart.png b/static/img_eg/show_index_chart/Pie_Chart.png new file mode 100644 index 0000000..a1251d3 Binary files /dev/null and b/static/img_eg/show_index_chart/Pie_Chart.png differ diff --git a/static/img_eg/show_index_chart/Plotting_with_different_scales_using_secondary_Y_axis.png b/static/img_eg/show_index_chart/Plotting_with_different_scales_using_secondary_Y_axis.png new file mode 100644 index 0000000..74baa18 Binary files /dev/null and b/static/img_eg/show_index_chart/Plotting_with_different_scales_using_secondary_Y_axis.png differ diff --git a/static/img_eg/show_index_chart/Population_Pyramid.png b/static/img_eg/show_index_chart/Population_Pyramid.png new file mode 100644 index 0000000..8c6f2e3 Binary files /dev/null and b/static/img_eg/show_index_chart/Population_Pyramid.png differ diff --git a/static/img_eg/show_index_chart/Quarterly_Values_as_Columns.png b/static/img_eg/show_index_chart/Quarterly_Values_as_Columns.png new file mode 100644 index 0000000..ec40155 Binary files /dev/null and b/static/img_eg/show_index_chart/Quarterly_Values_as_Columns.png differ diff --git a/static/img_eg/show_index_chart/Quarterly_Values_as_Lines_with_Value_Labels.png b/static/img_eg/show_index_chart/Quarterly_Values_as_Lines_with_Value_Labels.png new file mode 100644 index 0000000..8cc4846 Binary files /dev/null and b/static/img_eg/show_index_chart/Quarterly_Values_as_Lines_with_Value_Labels.png differ diff --git a/static/img_eg/show_index_chart/Radial_Polygons_Overlay.png b/static/img_eg/show_index_chart/Radial_Polygons_Overlay.png new file mode 100644 index 0000000..9fe91df Binary files /dev/null and b/static/img_eg/show_index_chart/Radial_Polygons_Overlay.png differ diff --git a/static/img_eg/show_index_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png b/static/img_eg/show_index_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png new file mode 100644 index 0000000..399fcdd Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_Plot_Variant_2_Outliers_Highlighted.png differ diff --git a/static/img_eg/show_index_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png b/static/img_eg/show_index_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png new file mode 100644 index 0000000..129a5a4 Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_Plot_Variant_3_Areas_Highlighted.png differ diff --git a/static/img_eg/show_index_chart/Scatter_Plot_Variant_5_Connected_Points.png b/static/img_eg/show_index_chart/Scatter_Plot_Variant_5_Connected_Points.png new file mode 100644 index 0000000..1c69e50 Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_Plot_Variant_5_Connected_Points.png differ diff --git a/static/img_eg/show_index_chart/Scatter_Plot_With_User_Defined_Symbols.png b/static/img_eg/show_index_chart/Scatter_Plot_With_User_Defined_Symbols.png new file mode 100644 index 0000000..ca38bf2 Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_Plot_With_User_Defined_Symbols.png differ diff --git a/static/img_eg/show_index_chart/Scatter_Plot_with_Few_Points.png b/static/img_eg/show_index_chart/Scatter_Plot_with_Few_Points.png new file mode 100644 index 0000000..2befc68 Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_Plot_with_Few_Points.png differ diff --git a/static/img_eg/show_index_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png b/static/img_eg/show_index_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png new file mode 100644 index 0000000..18b7329 Binary files /dev/null and b/static/img_eg/show_index_chart/Scatter_plot_with_linear_regression_line_of_best_fit.png differ diff --git a/static/img_eg/show_index_chart/Seasonal_Ranges_Panel.png b/static/img_eg/show_index_chart/Seasonal_Ranges_Panel.png new file mode 100644 index 0000000..b4384b5 Binary files /dev/null and b/static/img_eg/show_index_chart/Seasonal_Ranges_Panel.png differ diff --git a/static/img_eg/show_index_chart/Seasonal_Ranges_Stacked.png b/static/img_eg/show_index_chart/Seasonal_Ranges_Stacked.png new file mode 100644 index 0000000..c5cbdb7 Binary files /dev/null and b/static/img_eg/show_index_chart/Seasonal_Ranges_Stacked.png differ diff --git a/static/img_eg/show_index_chart/Simplified_Gantt_Chart.png b/static/img_eg/show_index_chart/Simplified_Gantt_Chart.png new file mode 100644 index 0000000..c061e36 Binary files /dev/null and b/static/img_eg/show_index_chart/Simplified_Gantt_Chart.png differ diff --git a/static/img_eg/show_index_chart/Slope_Chart.png b/static/img_eg/show_index_chart/Slope_Chart.png new file mode 100644 index 0000000..d9060a6 Binary files /dev/null and b/static/img_eg/show_index_chart/Slope_Chart.png differ diff --git a/static/img_eg/show_index_chart/Sort_Dots.png b/static/img_eg/show_index_chart/Sort_Dots.png new file mode 100644 index 0000000..c225b26 Binary files /dev/null and b/static/img_eg/show_index_chart/Sort_Dots.png differ diff --git a/static/img_eg/show_index_chart/Sort_Lean.png b/static/img_eg/show_index_chart/Sort_Lean.png new file mode 100644 index 0000000..30a0d30 Binary files /dev/null and b/static/img_eg/show_index_chart/Sort_Lean.png differ diff --git a/static/img_eg/show_index_chart/Sort_Lollipop.png b/static/img_eg/show_index_chart/Sort_Lollipop.png new file mode 100644 index 0000000..985a72f Binary files /dev/null and b/static/img_eg/show_index_chart/Sort_Lollipop.png differ diff --git a/static/img_eg/show_index_chart/Sort_OrderedBar.png b/static/img_eg/show_index_chart/Sort_OrderedBar.png new file mode 100644 index 0000000..b925d4f Binary files /dev/null and b/static/img_eg/show_index_chart/Sort_OrderedBar.png differ diff --git a/static/img_eg/show_index_chart/Spie_chart.png b/static/img_eg/show_index_chart/Spie_chart.png new file mode 100644 index 0000000..e8919c7 Binary files /dev/null and b/static/img_eg/show_index_chart/Spie_chart.png differ diff --git a/static/img_eg/show_index_chart/Stacked_Area_Chart.png b/static/img_eg/show_index_chart/Stacked_Area_Chart.png new file mode 100644 index 0000000..fdce607 Binary files /dev/null and b/static/img_eg/show_index_chart/Stacked_Area_Chart.png differ diff --git a/static/img_eg/show_index_chart/Stacked_Histogram_for_Continuous_Variable.png b/static/img_eg/show_index_chart/Stacked_Histogram_for_Continuous_Variable.png new file mode 100644 index 0000000..a614895 Binary files /dev/null and b/static/img_eg/show_index_chart/Stacked_Histogram_for_Continuous_Variable.png differ diff --git a/static/img_eg/show_index_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png b/static/img_eg/show_index_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png new file mode 100644 index 0000000..fa4fe6d Binary files /dev/null and b/static/img_eg/show_index_chart/Table_with_Symbols_of_the_Symbol_Signs_Type_Face.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_Accumulation.png b/static/img_eg/show_index_chart/TemporalChanges_Accumulation.png new file mode 100644 index 0000000..da8e894 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_Accumulation.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_CalendarHeat.png b/static/img_eg/show_index_chart/TemporalChanges_CalendarHeat.png new file mode 100644 index 0000000..1ad3ad1 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_CalendarHeat.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_DataframeTimeSeries.png b/static/img_eg/show_index_chart/TemporalChanges_DataframeTimeSeries.png new file mode 100644 index 0000000..31115b0 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_DataframeTimeSeries.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_SeasonalTimeSeries.png b/static/img_eg/show_index_chart/TemporalChanges_SeasonalTimeSeries.png new file mode 100644 index 0000000..14fed21 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_SeasonalTimeSeries.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png b/static/img_eg/show_index_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png new file mode 100644 index 0000000..302f133 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_ShowMultipleTimeSeriesSimultaneously.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_TimeSeries.png b/static/img_eg/show_index_chart/TemporalChanges_TimeSeries.png new file mode 100644 index 0000000..15a910b Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_TimeSeries.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfAnnualData.png b/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfAnnualData.png new file mode 100644 index 0000000..c3dfd26 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfAnnualData.png differ diff --git a/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfMonthlyData.png b/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfMonthlyData.png new file mode 100644 index 0000000..484e658 Binary files /dev/null and b/static/img_eg/show_index_chart/TemporalChanges_TimeSeriesOfMonthlyData.png differ diff --git a/static/img_eg/show_index_chart/Time_Series_Plot.png b/static/img_eg/show_index_chart/Time_Series_Plot.png new file mode 100644 index 0000000..0b90bd2 Binary files /dev/null and b/static/img_eg/show_index_chart/Time_Series_Plot.png differ diff --git a/static/img_eg/show_index_chart/Time_Series_with_Error_Bands.png b/static/img_eg/show_index_chart/Time_Series_with_Error_Bands.png new file mode 100644 index 0000000..b7e8e56 Binary files /dev/null and b/static/img_eg/show_index_chart/Time_Series_with_Error_Bands.png differ diff --git a/static/img_eg/show_index_chart/Time_Series_with_Trend_Panel.png b/static/img_eg/show_index_chart/Time_Series_with_Trend_Panel.png new file mode 100644 index 0000000..e10b616 Binary files /dev/null and b/static/img_eg/show_index_chart/Time_Series_with_Trend_Panel.png differ diff --git a/static/img_eg/show_index_chart/Treemap.png b/static/img_eg/show_index_chart/Treemap.png new file mode 100644 index 0000000..a54d169 Binary files /dev/null and b/static/img_eg/show_index_chart/Treemap.png differ diff --git a/static/img_eg/show_index_chart/Violin_Plot.png b/static/img_eg/show_index_chart/Violin_Plot.png new file mode 100644 index 0000000..ce32ba5 Binary files /dev/null and b/static/img_eg/show_index_chart/Violin_Plot.png differ diff --git a/static/img_eg/show_index_chart/Waffle_Chart.png b/static/img_eg/show_index_chart/Waffle_Chart.png new file mode 100644 index 0000000..ba85071 Binary files /dev/null and b/static/img_eg/show_index_chart/Waffle_Chart.png differ diff --git a/static/img_eg/show_index_chart/boxplot.png b/static/img_eg/show_index_chart/boxplot.png new file mode 100644 index 0000000..f37bb05 Binary files /dev/null and b/static/img_eg/show_index_chart/boxplot.png differ diff --git a/static/img_eg/show_index_chart/chord_Diagram.png b/static/img_eg/show_index_chart/chord_Diagram.png new file mode 100644 index 0000000..fc2e2a9 Binary files /dev/null and b/static/img_eg/show_index_chart/chord_Diagram.png differ diff --git a/static/img_eg/show_index_chart/scatter_plot.png b/static/img_eg/show_index_chart/scatter_plot.png new file mode 100644 index 0000000..1b22497 Binary files /dev/null and b/static/img_eg/show_index_chart/scatter_plot.png differ diff --git a/static/layer.js b/static/layer.js new file mode 100644 index 0000000..c6bc68b --- /dev/null +++ b/static/layer.js @@ -0,0 +1,2 @@ +/*! layer-v3.5.1 Web 通用弹出层组件 MIT License */ + ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var t=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}(),i=e.LAYUI_GLOBAL||{};return i.layer_dir||t.substring(0,t.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c="creating",u=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function d(t){var n=100,a=document.getElementById(f);return++u>1e4/n?e.console&&console.error(l+".css: Invalid"):void(1989===parseInt(o.getStyle(a,"width"))?(t===c&&a.removeAttribute("lay-status"),a.getAttribute("lay-status")===c?setTimeout(d,n):i()):(a.setAttribute("lay-status",c),setTimeout(function(){d(c)},n)))}()}}},r={v:"3.5.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:260},n))}},s=function(e){var t=this,a=function(){t.creat()};t.index=++r.index,t.config.maxWidth=i(n).width()-30,t.config=i.extend({},t.config,o.config,e),document.body?a():setTimeout(function(){a()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],l.SHADE="layui-layer-shade",l.MOVE="layui-layer-move",s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,minStack:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
'+(f?r.title[0]:r.title)+"
":"";return r.zIndex=s,t([r.shade?'
':"",'
'+(e&&2!=r.type?"":u)+'
'+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
'+function(){var e=c?'':"";return r.closeBtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
'+e+"
"}():"")+(r.resize?'':"")+"
"],u,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i("#"+l.MOVE)[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),e.shadeo=i("#"+l.SHADE+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),e.shadeo.css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():function(){e.offset(),parseInt(o.getStyle(document.getElementById(l.MOVE),"z-index"))||function(){e.layero.css("visibility","hidden"),r.ready(function(){e.offset(),e.layero.css("visibility","visible")})}()}(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&t.shadeo.on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n,t.index);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n,t.index)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n,t.index)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){t=t||{};var a=i("#"+l[0]+e),s=i("#"+l.SHADE+e),f=a.find(l[1]).outerHeight()||0,c=a.attr("minLeft")||181*o.minIndex+"px",u=a.css("position"),d={width:180,height:f,position:"fixed",overflow:"hidden"};o.record(a),o.minLeft[0]&&(c=o.minLeft[0],o.minLeft.shift()),t.minStack&&(d.left=c,d.top=n.height()-f,a.attr("minLeft")||o.minIndex++,a.attr("minLeft",c)),a.attr("position",u),r.style(e,d,!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),s.hide()},r.restore=function(e){var t=i("#"+l[0]+e),n=i("#"+l.SHADE+e),a=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(a[0]),height:parseFloat(a[1]),top:parseFloat(a[2]),left:parseFloat(a[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e),n.show()},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e,t){var n=i("#"+l[0]+e),a=n.attr("type"),s="layer-anim-close";if(n[0]){var f="layui-layer-wrap",c=function(){if(a===o.type[1]&&"object"===n.attr("conType")){n.children(":not(."+l[5]+")").remove();for(var r=n.find("."+f),s=0;s<2;s++)r.unwrap();r.css("display",r.data("display")).removeClass(f)}else{if(a===o.type[2])try{var c=i("#"+l[4]+e)[0];c.contentWindow.document.write(""),c.contentWindow.close(),n.find("."+l[5])[0].removeChild(c)}catch(u){}n[0].innerHTML="",n.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e],"function"==typeof t&&t()};n.data("isOutAnim")&&n.addClass("layer-anim "+s),i("#layui-layer-moves, #"+l.SHADE+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),n.attr("minLeft")&&(o.minIndex--,o.minLeft.push(n.attr("minLeft"))),r.ie&&r.ie<10||!n.data("isOutAnim")?c():setTimeout(function(){c()},200)}},r.closeAll=function(e,t){"function"==typeof e&&(t=e,e=null);var n=i("."+l[0]);i.each(n,function(a){var o=i(this),s=e?o.attr("type")===e:1;s&&r.close(o.attr("times"),a===n.length-1?t:null),s=null}),0===n.length&&"function"==typeof t&&t()};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a=''+t[0].title+"";i"+t[i].title+"";return a}(),content:'
    '+function(){var e=t.length,i=1,a="";if(e>0)for(a='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return a}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=!("string"==typeof t.photos||t.photos instanceof i),f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){h();var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0)}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev(!0)}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext(!0)}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),a&&(t.anim=-1),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||'+function(){return u.length>1?'
'+(u[d].alt||"")+""+s.imgIndex+" / "+u.length+"
":""}()+"",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){r.ready(),o.run(e.jQuery)}()}(window); \ No newline at end of file diff --git a/static/layui.js b/static/layui.js new file mode 100644 index 0000000..37ad1bf --- /dev/null +++ b/static/layui.js @@ -0,0 +1,7099 @@ +/*! MIT Licensed */ +;!function (t) { + "use strict"; + var e = t.document, n = {modules: {}, status: {}, timeout: 10, event: {}}, r = function () { + this.v = "2.6.8" + }, o = t.LAYUI_GLOBAL || {}, a = function () { + var t = e.currentScript ? e.currentScript.src : function () { + for (var t, n = e.scripts, r = n.length - 1, o = r; o > 0; o--) if ("interactive" === n[o].readyState) { + t = n[o].src; + break + } + return t || n[r].src + }(); + return n.dir = o.dir || t.substring(0, t.lastIndexOf("/") + 1) + }(), i = function (e, n) { + n = n || "log", t.console && console[n] && console[n]("layui error hint: " + e) + }, u = "undefined" != typeof opera && "[object Opera]" === opera.toString(), l = n.builtin = { + lay: "lay", + layer: "layer", + laydate: "laydate", + laypage: "laypage", + laytpl: "laytpl", + layedit: "layedit", + form: "form", + upload: "upload", + dropdown: "dropdown", + transfer: "transfer", + tree: "tree", + table: "table", + element: "element", + rate: "rate", + colorpicker: "colorpicker", + slider: "slider", + carousel: "carousel", + flow: "flow", + util: "util", + code: "code", + jquery: "jquery", + all: "all", + "layui.all": "layui.all" + }; + r.prototype.cache = n, r.prototype.define = function (t, e) { + var r = this, o = "function" == typeof t, a = function () { + var t = function (t, e) { + layui[t] = e, n.status[t] = !0 + }; + return "function" == typeof e && e(function (r, o) { + t(r, o), n.callback[r] = function () { + e(t) + } + }), this + }; + return o && (e = t, t = []), r.use(t, a, null, "define"), r + }, r.prototype.use = function (r, o, c, s) { + function p(t, e) { + var r = "PLaySTATION 3" === navigator.platform ? /^complete$/ : /^(complete|loaded)$/; + ("load" === t.type || r.test((t.currentTarget || t.srcElement).readyState)) && (n.modules[h] = e, v.removeChild(b), function o() { + return ++m > 1e3 * n.timeout / 4 ? i(h + " is not a valid module", "error") : void (n.status[h] ? f() : setTimeout(o, 4)) + }()) + } + + function f() { + c.push(layui[h]), r.length > 1 ? y.use(r.slice(1), o, c, s) : "function" == typeof o && function () { + return layui.jquery && "function" == typeof layui.jquery && "define" !== s ? layui.jquery(function () { + o.apply(layui, c) + }) : void o.apply(layui, c) + }() + } + + var y = this, d = n.dir = n.dir ? n.dir : a, v = e.getElementsByTagName("head")[0]; + r = function () { + return "string" == typeof r ? [r] : "function" == typeof r ? (o = r, ["all"]) : r + }(), t.jQuery && jQuery.fn.on && (y.each(r, function (t, e) { + "jquery" === e && r.splice(t, 1) + }), layui.jquery = layui.$ = jQuery); + var h = r[0], m = 0; + if (c = c || [], n.host = n.host || (d.match(/\/\/([\s\S]+?)\//) || ["//" + location.host + "/"])[0], 0 === r.length || layui["layui.all"] && l[h]) return f(), y; + var g = (l[h] ? d + "modules/" : /^\{\/\}/.test(y.modules[h]) ? "" : n.base || "") + (y.modules[h] || h) + ".js"; + if (g = g.replace(/^\{\/\}/, ""), !n.modules[h] && layui[h] && (n.modules[h] = g), n.modules[h]) !function S() { + return ++m > 1e3 * n.timeout / 4 ? i(h + " is not a valid module", "error") : void ("string" == typeof n.modules[h] && n.status[h] ? f() : setTimeout(S, 4)) + }(); else { + var b = e.createElement("script"); + b.async = !0, b.charset = "utf-8", b.src = g + function () { + var t = n.version === !0 ? n.v || (new Date).getTime() : n.version || ""; + return t ? "?v=" + t : "" + }(), v.appendChild(b), !b.attachEvent || b.attachEvent.toString && b.attachEvent.toString().indexOf("[native code") < 0 || u ? b.addEventListener("load", function (t) { + p(t, g) + }, !1) : b.attachEvent("onreadystatechange", function (t) { + p(t, g) + }), n.modules[h] = g + } + return y + }, r.prototype.getStyle = function (e, n) { + var r = e.currentStyle ? e.currentStyle : t.getComputedStyle(e, null); + return r[r.getPropertyValue ? "getPropertyValue" : "getAttribute"](n) + }, r.prototype.link = function (t, r, o) { + var a = this, u = e.getElementsByTagName("head")[0], l = e.createElement("link"); + "string" == typeof r && (o = r); + var c = (o || t).replace(/\.|\//g, ""), s = l.id = "layuicss-" + c, p = "creating", f = 0; + return l.rel = "stylesheet", l.href = t + (n.debug ? "?v=" + (new Date).getTime() : ""), l.media = "all", e.getElementById(s) || u.appendChild(l), "function" != typeof r ? a : (function y(o) { + var u = 100, l = e.getElementById(s); + return ++f > 1e3 * n.timeout / u ? i(t + " timeout") : void (1989 === parseInt(a.getStyle(l, "width")) ? (o === p && l.removeAttribute("lay-status"), l.getAttribute("lay-status") === p ? setTimeout(y, u) : r()) : (l.setAttribute("lay-status", p), setTimeout(function () { + y(p) + }, u))) + }(), a) + }, r.prototype.addcss = function (t, e, r) { + return layui.link(n.dir + "css/" + t, e, r) + }, n.callback = {}, r.prototype.factory = function (t) { + if (layui[t]) return "function" == typeof n.callback[t] ? n.callback[t] : null + }, r.prototype.img = function (t, e, n) { + var r = new Image; + return r.src = t, r.complete ? e(r) : (r.onload = function () { + r.onload = null, "function" == typeof e && e(r) + }, void (r.onerror = function (t) { + r.onerror = null, "function" == typeof n && n(t) + })) + }, r.prototype.config = function (t) { + t = t || {}; + for (var e in t) n[e] = t[e]; + return this + }, r.prototype.modules = function () { + var t = {}; + for (var e in l) t[e] = l[e]; + return t + }(), r.prototype.extend = function (t) { + var e = this; + t = t || {}; + for (var n in t) e[n] || e.modules[n] ? i(n + " Module already exists", "error") : e.modules[n] = t[n]; + return e + }, r.prototype.router = function (t) { + var e = this, t = t || location.hash, n = {path: [], search: {}, hash: (t.match(/[^#](#.*$)/) || [])[1] || ""}; + return /^#\//.test(t) ? (t = t.replace(/^#\//, ""), n.href = "/" + t, t = t.replace(/([^#])(#.*$)/, "$1").split("/") || [], e.each(t, function (t, e) { + /^\w+=/.test(e) ? function () { + e = e.split("="), n.search[e[0]] = e[1] + }() : n.path.push(e) + }), n) : n + }, r.prototype.url = function (t) { + var e = this, n = { + pathname: function () { + var e = t ? function () { + var e = (t.match(/\.[^.]+?\/.+/) || [])[0] || ""; + return e.replace(/^[^\/]+/, "").replace(/\?.+/, "") + }() : location.pathname; + return e.replace(/^\//, "").split("/") + }(), search: function () { + var n = {}, r = (t ? function () { + var e = (t.match(/\?.+/) || [])[0] || ""; + return e.replace(/\#.+/, "") + }() : location.search).replace(/^\?+/, "").split("&"); + return e.each(r, function (t, e) { + var r = e.indexOf("="), o = function () { + return r < 0 ? e.substr(0, e.length) : 0 !== r && e.substr(0, r) + }(); + o && (n[o] = r > 0 ? e.substr(r + 1) : null) + }), n + }(), hash: e.router(function () { + return t ? (t.match(/#.+/) || [])[0] || "/" : location.hash + }()) + }; + return n + }, r.prototype.data = function (e, n, r) { + if (e = e || "layui", r = r || localStorage, t.JSON && t.JSON.parse) { + if (null === n) return delete r[e]; + n = "object" == typeof n ? n : {key: n}; + try { + var o = JSON.parse(r[e]) + } catch (a) { + var o = {} + } + return "value" in n && (o[n.key] = n.value), n.remove && delete o[n.key], r[e] = JSON.stringify(o), n.key ? o[n.key] : o + } + }, r.prototype.sessionData = function (t, e) { + return this.data(t, e, sessionStorage) + }, r.prototype.device = function (e) { + var n = navigator.userAgent.toLowerCase(), r = function (t) { + var e = new RegExp(t + "/([^\\s\\_\\-]+)"); + return t = (n.match(e) || [])[1], t || !1 + }, o = { + os: function () { + return /windows/.test(n) ? "windows" : /linux/.test(n) ? "linux" : /iphone|ipod|ipad|ios/.test(n) ? "ios" : /mac/.test(n) ? "mac" : void 0 + }(), ie: function () { + return !!(t.ActiveXObject || "ActiveXObject" in t) && ((n.match(/msie\s(\d+)/) || [])[1] || "11") + }(), weixin: r("micromessenger") + }; + return e && !o[e] && (o[e] = r(e)), o.android = /android/.test(n), o.ios = "ios" === o.os, o.mobile = !(!o.android && !o.ios), o + }, r.prototype.hint = function () { + return {error: i} + }, r.prototype._typeof = function (t) { + return null === t ? String(t) : "object" == typeof t || "function" == typeof t ? function () { + var e = Object.prototype.toString.call(t).match(/\s(.+)\]$/) || [], + n = "Function|Array|Date|RegExp|Object|Error|Symbol"; + return e = e[1] || "Object", new RegExp("\\b(" + n + ")\\b").test(e) ? e.toLowerCase() : "object" + }() : typeof t + }, r.prototype._isArray = function (e) { + var n, r = this, o = r._typeof(e); + return !(!e || "object" != typeof e || e === t) && (n = "length" in e && e.length, "array" === o || 0 === n || "number" == typeof n && n > 0 && n - 1 in e) + }, r.prototype.each = function (t, e) { + var n, r = this, o = function (t, n) { + return e.call(n[t], t, n[t]) + }; + if ("function" != typeof e) return r; + if (t = t || [], r._isArray(t)) for (n = 0; n < t.length && !o(n, t); n++) ; else for (n in t) if (o(n, t)) break; + return r + }, r.prototype.sort = function (t, e, n) { + var r = JSON.parse(JSON.stringify(t || [])); + return e ? (r.sort(function (t, n) { + var r = t[e], o = n[e], a = [!isNaN(r), !isNaN(o)]; + return a[0] && a[1] ? r && !o && 0 !== o ? 1 : !r && 0 !== r && o ? -1 : r - o : a[0] || a[1] ? a[0] || !a[1] ? -1 : !a[0] || a[1] ? 1 : void 0 : r > o ? 1 : r < o ? -1 : 0 + }), n && r.reverse(), r) : r + }, r.prototype.stope = function (e) { + e = e || t.event; + try { + e.stopPropagation() + } catch (n) { + e.cancelBubble = !0 + } + }; + var c = "LAYUI-EVENT-REMOVE"; + r.prototype.onevent = function (t, e, n) { + return "string" != typeof t || "function" != typeof n ? this : r.event(t, e, null, n) + }, r.prototype.event = r.event = function (t, e, r, o) { + var a = this, i = null, u = (e || "").match(/\((.*)\)$/) || [], l = (t + "." + e).replace(u[0], ""), + s = u[1] || "", p = function (t, e) { + var n = e && e.call(a, r); + n === !1 && null === i && (i = !1) + }; + return r === c ? (delete (a.cache.event[l] || {})[s], a) : o ? (n.event[l] = n.event[l] || {}, n.event[l][s] = [o], this) : (layui.each(n.event[l], function (t, e) { + return "{*}" === s ? void layui.each(e, p) : ("" === t && layui.each(e, p), void (s && t === s && layui.each(e, p))) + }), i) + }, r.prototype.on = function (t, e, n) { + var r = this; + return r.onevent.call(r, e, t, n) + }, r.prototype.off = function (t, e) { + var n = this; + return n.event.call(n, e, t, c) + }, t.layui = new r +}(window); +layui.define(function (a) { + var i = layui.cache; + layui.config({dir: i.dir.replace(/lay\/dest\/$/, "")}), a("layui.all", layui.v) +}); +!function (t) { + "use strict"; + var e = "lay", n = t.document, r = function (t) { + return new o(t) + }, o = function (t) { + for (var e = 0, r = "object" == typeof t ? [t] : (this.selector = t, n.querySelectorAll(t || null)); e < r.length; e++) this.push(r[e]) + }; + o.prototype = [], o.prototype.constructor = o, r.extend = function () { + var t = 1, e = arguments, n = function (t, e) { + t = t || ("array" === layui._typeof(e) ? [] : {}); + for (var r in e) t[r] = e[r] && e[r].constructor === Object ? n(t[r], e[r]) : e[r]; + return t + }; + for (e[0] = "object" == typeof e[0] ? e[0] : {}; t < e.length; t++) "object" == typeof e[t] && n(e[0], e[t]); + return e[0] + }, r.v = "1.0.8", r.ie = function () { + var e = navigator.userAgent.toLowerCase(); + return !!(t.ActiveXObject || "ActiveXObject" in t) && ((e.match(/msie\s(\d+)/) || [])[1] || "11") + }(), r.layui = layui || {}, r.getPath = layui.cache.dir, r.stope = layui.stope, r.each = function () { + return layui.each.apply(layui, arguments), this + }, r.digit = function (t, e, n) { + var r = ""; + t = String(t), e = e || 2; + for (var o = t.length; o < e; o++) r += "0"; + return t < Math.pow(10, e) ? r + (0 | t) : t + }, r.elem = function (t, e) { + var o = n.createElement(t); + return r.each(e || {}, function (t, e) { + o.setAttribute(t, e) + }), o + }, r.hasScrollbar = function () { + return n.body.scrollHeight > (t.innerHeight || n.documentElement.clientHeight) + }, r.position = function (e, o, i) { + if (o) { + i = i || {}, e !== n && e !== r("body")[0] || (i.clickType = "right"); + var c = "right" === i.clickType ? function () { + var e = i.e || t.event || {}; + return {left: e.clientX, top: e.clientY, right: e.clientX, bottom: e.clientY} + }() : e.getBoundingClientRect(), u = o.offsetWidth, a = o.offsetHeight, f = function (t) { + return t = t ? "scrollLeft" : "scrollTop", n.body[t] | n.documentElement[t] + }, s = function (t) { + return n.documentElement[t ? "clientWidth" : "clientHeight"] + }, l = 5, h = c.left, p = c.bottom; + "center" === i.align ? h -= (u - e.offsetWidth) / 2 : "right" === i.align && (h = h - u + e.offsetWidth), h + u + l > s("width") && (h = s("width") - u - l), h < l && (h = l), p + a + l > s() && (c.top > a + l ? p = c.top - a - 2 * l : "right" === i.clickType && (p = s() - a - 2 * l, p < 0 && (p = 0))); + var y = i.position; + if (y && (o.style.position = y), o.style.left = h + ("fixed" === y ? 0 : f(1)) + "px", o.style.top = p + ("fixed" === y ? 0 : f()) + "px", !r.hasScrollbar()) { + var d = o.getBoundingClientRect(); + !i.SYSTEM_RELOAD && d.bottom + l > s() && (i.SYSTEM_RELOAD = !0, setTimeout(function () { + r.position(e, o, i) + }, 50)) + } + } + }, r.options = function (t, e) { + var n = r(t), o = e || "lay-options"; + try { + return new Function("return " + (n.attr(o) || "{}"))() + } catch (i) { + return hint.error("parseerror\uff1a" + i, "error"), {} + } + }, r.isTopElem = function (t) { + var e = [n, r("body")[0]], o = !1; + return r.each(e, function (e, n) { + if (n === t) return o = !0 + }), o + }, o.addStr = function (t, e) { + return t = t.replace(/\s+/, " "), e = e.replace(/\s+/, " ").split(" "), r.each(e, function (e, n) { + new RegExp("\\b" + n + "\\b").test(t) || (t = t + " " + n) + }), t.replace(/^\s|\s$/, "") + }, o.removeStr = function (t, e) { + return t = t.replace(/\s+/, " "), e = e.replace(/\s+/, " ").split(" "), r.each(e, function (e, n) { + var r = new RegExp("\\b" + n + "\\b"); + r.test(t) && (t = t.replace(r, "")) + }), t.replace(/\s+/, " ").replace(/^\s|\s$/, "") + }, o.prototype.find = function (t) { + var e = this, n = 0, o = [], i = "object" == typeof t; + return this.each(function (r, c) { + for (var u = i ? c.contains(t) : c.querySelectorAll(t || null); n < u.length; n++) o.push(u[n]); + e.shift() + }), i || (e.selector = (e.selector ? e.selector + " " : "") + t), r.each(o, function (t, n) { + e.push(n) + }), e + }, o.prototype.each = function (t) { + return r.each.call(this, this, t) + }, o.prototype.addClass = function (t, e) { + return this.each(function (n, r) { + r.className = o[e ? "removeStr" : "addStr"](r.className, t) + }) + }, o.prototype.removeClass = function (t) { + return this.addClass(t, !0) + }, o.prototype.hasClass = function (t) { + var e = !1; + return this.each(function (n, r) { + new RegExp("\\b" + t + "\\b").test(r.className) && (e = !0) + }), e + }, o.prototype.css = function (t, e) { + var n = this, o = function (t) { + return isNaN(t) ? t : t + "px" + }; + return "string" == typeof t && void 0 === e ? function () { + if (n.length > 0) return n[0].style[t] + }() : n.each(function (n, i) { + "object" == typeof t ? r.each(t, function (t, e) { + i.style[t] = o(e) + }) : i.style[t] = o(e) + }) + }, o.prototype.width = function (t) { + var e = this; + return void 0 === t ? function () { + if (e.length > 0) return e[0].offsetWidth + }() : e.each(function (n, r) { + e.css("width", t) + }) + }, o.prototype.height = function (t) { + var e = this; + return void 0 === t ? function () { + if (e.length > 0) return e[0].offsetHeight + }() : e.each(function (n, r) { + e.css("height", t) + }) + }, o.prototype.attr = function (t, e) { + var n = this; + return void 0 === e ? function () { + if (n.length > 0) return n[0].getAttribute(t) + }() : n.each(function (n, r) { + r.setAttribute(t, e) + }) + }, o.prototype.removeAttr = function (t) { + return this.each(function (e, n) { + n.removeAttribute(t) + }) + }, o.prototype.html = function (t) { + var e = this; + return void 0 === t ? function () { + if (e.length > 0) return e[0].innerHTML + }() : this.each(function (e, n) { + n.innerHTML = t + }) + }, o.prototype.val = function (t) { + var e = this; + return void 0 === t ? function () { + if (e.length > 0) return e[0].value + }() : this.each(function (e, n) { + n.value = t + }) + }, o.prototype.append = function (t) { + return this.each(function (e, n) { + "object" == typeof t ? n.appendChild(t) : n.innerHTML = n.innerHTML + t + }) + }, o.prototype.remove = function (t) { + return this.each(function (e, n) { + t ? n.removeChild(t) : n.parentNode.removeChild(n) + }) + }, o.prototype.on = function (t, e) { + return this.each(function (n, r) { + r.attachEvent ? r.attachEvent("on" + t, function (t) { + t.target = t.srcElement, e.call(r, t) + }) : r.addEventListener(t, e, !1) + }) + }, o.prototype.off = function (t, e) { + return this.each(function (n, r) { + r.detachEvent ? r.detachEvent("on" + t, e) : r.removeEventListener(t, e, !1) + }) + }, t.lay = r, t.layui && layui.define && layui.define(function (t) { + t(e, r) + }) +}(window, window.document); +layui.define(function (e) { + "use strict"; + var r = {open: "{{", close: "}}"}, c = { + exp: function (e) { + return new RegExp(e, "g") + }, query: function (e, c, t) { + var o = ["#([\\s\\S])+?", "([^{#}])*?"][e || 0]; + return n((c || "") + r.open + o + r.close + (t || "")) + }, escape: function (e) { + return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&").replace(//g, ">").replace(/'/g, "'").replace(/"/g, """) + }, error: function (e, r) { + var c = "Laytpl Error: "; + return "object" == typeof console && console.error(c + e + "\n" + (r || "")), c + e + } + }, n = c.exp, t = function (e) { + this.tpl = e + }; + t.pt = t.prototype, window.errors = 0, t.pt.parse = function (e, t) { + var o = this, p = e, a = n("^" + r.open + "#", ""), l = n(r.close + "$", ""); + e = e.replace(/\s+|\r|\t|\n/g, " ").replace(n(r.open + "#"), r.open + "# ").replace(n(r.close + "}"), "} " + r.close).replace(/\\/g, "\\\\").replace(n(r.open + "!(.+?)!" + r.close), function (e) { + return e = e.replace(n("^" + r.open + "!"), "").replace(n("!" + r.close), "").replace(n(r.open + "|" + r.close), function (e) { + return e.replace(/(.)/g, "\\$1") + }) + }).replace(/(?="|')/g, "\\").replace(c.query(), function (e) { + return e = e.replace(a, "").replace(l, ""), '";' + e.replace(/\\(.)/g, "$1") + ';view+="' + }).replace(c.query(1), function (e) { + var c = '"+('; + return e.replace(/\s/g, "") === r.open + r.close ? "" : (e = e.replace(n(r.open + "|" + r.close), ""), /^=/.test(e) && (e = e.replace(/^=/, ""), c = '"+_escape_('), c + e.replace(/\\(.)/g, "$1") + ')+"') + }), e = '"use strict";var view = "' + e + '";return view;'; + try { + return o.cache = e = new Function("d, _escape_", e), e(t, c.escape) + } catch (u) { + return delete o.cache, c.error(u, p) + } + }, t.pt.render = function (e, r) { + var n, t = this; + return e ? (n = t.cache ? t.cache(e, c.escape) : t.parse(t.tpl, e), r ? void r(n) : n) : c.error("no data") + }; + var o = function (e) { + return "string" != typeof e ? c.error("Template not found") : new t(e) + }; + o.config = function (e) { + e = e || {}; + for (var c in e) r[c] = e[c] + }, o.v = "1.2.0", e("laytpl", o) +}); +layui.define(function (e) { + "use strict"; + var a = document, t = "getElementById", n = "getElementsByTagName", i = "laypage", r = "layui-disabled", + u = function (e) { + var a = this; + a.config = e || {}, a.config.index = ++s.index, a.render(!0) + }; + u.prototype.type = function () { + var e = this.config; + if ("object" == typeof e.elem) return void 0 === e.elem.length ? 2 : 3 + }, u.prototype.view = function () { + var e = this, a = e.config, t = a.groups = "groups" in a ? 0 | a.groups : 5; + a.layout = "object" == typeof a.layout ? a.layout : ["prev", "page", "next"], a.count = 0 | a.count, a.curr = 0 | a.curr || 1, a.limits = "object" == typeof a.limits ? a.limits : [10, 20, 30, 40, 50], a.limit = 0 | a.limit || 10, a.pages = Math.ceil(a.count / a.limit) || 1, a.curr > a.pages && (a.curr = a.pages), t < 0 ? t = 1 : t > a.pages && (t = a.pages), a.prev = "prev" in a ? a.prev : "上一页", a.next = "next" in a ? a.next : "下一页"; + var n = a.pages > t ? Math.ceil((a.curr + (t > 1 ? 1 : 0)) / (t > 0 ? t : 1)) : 1, i = { + prev: function () { + return a.prev ? '' + a.prev + "" : "" + }(), + page: function () { + var e = []; + if (a.count < 1) return ""; + n > 1 && a.first !== !1 && 0 !== t && e.push('' + (a.first || 1) + ""); + var i = Math.floor((t - 1) / 2), r = n > 1 ? a.curr - i : 1, u = n > 1 ? function () { + var e = a.curr + (t - i - 1); + return e > a.pages ? a.pages : e + }() : t; + for (u - r < t - 1 && (r = u - t + 1), a.first !== !1 && r > 2 && e.push(''); r <= u; r++) r === a.curr ? e.push('" + r + "") : e.push('' + r + ""); + return a.pages > t && a.pages > u && a.last !== !1 && (u + 1 < a.pages && e.push(''), 0 !== t && e.push('' + (a.last || a.pages) + "")), e.join("") + }(), + next: function () { + return a.next ? '' + a.next + "" : "" + }(), + count: '\u5171 ' + a.count + " \u6761", + limit: function () { + var e = ['" + }(), + refresh: ['', '', ""].join(""), + skip: function () { + return ['到第', '', '页', ""].join("") + }() + }; + return ['
', function () { + var e = []; + return layui.each(a.layout, function (a, t) { + i[t] && e.push(i[t]) + }), e.join("") + }(), "
"].join("") + }, u.prototype.jump = function (e, a) { + if (e) { + var t = this, i = t.config, r = e.children, u = e[n]("button")[0], l = e[n]("input")[0], + p = e[n]("select")[0], c = function () { + var e = 0 | l.value.replace(/\s|\D/g, ""); + e && (i.curr = e, t.render()) + }; + if (a) return c(); + for (var o = 0, y = r.length; o < y; o++) "a" === r[o].nodeName.toLowerCase() && s.on(r[o], "click", function () { + var e = 0 | this.getAttribute("data-page"); + e < 1 || e > i.pages || (i.curr = e, t.render()) + }); + p && s.on(p, "change", function () { + var e = this.value; + i.curr * e > i.count && (i.curr = Math.ceil(i.count / e)), i.limit = e, t.render() + }), u && s.on(u, "click", function () { + c() + }) + } + }, u.prototype.skip = function (e) { + if (e) { + var a = this, t = e[n]("input")[0]; + t && s.on(t, "keyup", function (t) { + var n = this.value, i = t.keyCode; + /^(37|38|39|40)$/.test(i) || (/\D/.test(n) && (this.value = n.replace(/\D/, "")), 13 === i && a.jump(e, !0)) + }) + } + }, u.prototype.render = function (e) { + var n = this, i = n.config, r = n.type(), u = n.view(); + 2 === r ? i.elem && (i.elem.innerHTML = u) : 3 === r ? i.elem.html(u) : a[t](i.elem) && (a[t](i.elem).innerHTML = u), i.jump && i.jump(i, e); + var s = a[t]("layui-laypage-" + i.index); + n.jump(s), i.hash && !e && (location.hash = "!" + i.hash + "=" + i.curr), n.skip(s) + }; + var s = { + render: function (e) { + var a = new u(e); + return a.index + }, index: layui.laypage ? layui.laypage.index + 1e4 : 0, on: function (e, a, t) { + return e.attachEvent ? e.attachEvent("on" + a, function (a) { + a.target = a.srcElement, t.call(e, a) + }) : e.addEventListener(a, t, !1), this + } + }; + e(i, s) +}); +!function (e, t) { + "use strict"; + var a = e.layui && layui.define, n = { + getPath: e.lay && lay.getPath ? lay.getPath : "", link: function (t, a, n) { + l.path && e.lay && lay.layui && lay.layui.link(l.path + t, a, n) + } + }, i = e.LAYUI_GLOBAL || {}, l = { + v: "5.3.1", + config: {}, + index: e.laydate && e.laydate.v ? 1e5 : 0, + path: i.laydate_dir || n.getPath, + set: function (e) { + var t = this; + return t.config = lay.extend({}, t.config, e), t + }, + ready: function (e) { + var t = "laydate", i = "", r = (a ? "modules/laydate/" : "theme/") + "default/laydate.css?v=" + l.v + i; + return a ? layui.addcss(r, e, t) : n.link(r, e, t), this + } + }, r = function () { + var e = this, t = e.config, a = t.id; + return r.that[a] = e, { + hint: function (t) { + e.hint.call(e, t) + }, config: e.config + } + }, o = "laydate", s = ".layui-laydate", y = "layui-this", d = "laydate-disabled", m = [100, 2e5], + c = "layui-laydate-static", u = "layui-laydate-list", h = "layui-laydate-hint", f = "layui-laydate-footer", + p = ".laydate-btns-confirm", g = "laydate-time-text", v = "laydate-btns-time", T = "layui-laydate-preview", + D = function (e) { + var t = this; + t.index = ++l.index, t.config = lay.extend({}, t.config, l.config, e), e = t.config, e.id = "id" in e ? e.id : t.index, l.ready(function () { + t.init() + }) + }, w = "yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s"; + r.formatArr = function (e) { + return (e || "").match(new RegExp(w + "|.", "g")) || [] + }, D.isLeapYear = function (e) { + return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0 + }, D.prototype.config = { + type: "date", + range: !1, + format: "yyyy-MM-dd", + value: null, + isInitValue: !0, + min: "1900-1-1", + max: "2099-12-31", + trigger: "click", + show: !1, + showBottom: !0, + isPreview: !0, + btns: ["clear", "now", "confirm"], + lang: "cn", + theme: "default", + position: null, + calendar: !1, + mark: {}, + zIndex: null, + done: null, + change: null + }, D.prototype.lang = function () { + var e = this, t = e.config, a = { + cn: { + weeks: ["\u65e5", "\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d"], + time: ["\u65f6", "\u5206", "\u79d2"], + timeTips: "\u9009\u62e9\u65f6\u95f4", + startTime: "\u5f00\u59cb\u65f6\u95f4", + endTime: "\u7ed3\u675f\u65f6\u95f4", + dateTips: "\u8fd4\u56de\u65e5\u671f", + month: ["\u4e00", "\u4e8c", "\u4e09", "\u56db", "\u4e94", "\u516d", "\u4e03", "\u516b", "\u4e5d", "\u5341", "\u5341\u4e00", "\u5341\u4e8c"], + tools: {confirm: "\u786e\u5b9a", clear: "\u6e05\u7a7a", now: "\u73b0\u5728"}, + timeout: "\u7ed3\u675f\u65f6\u95f4\u4e0d\u80fd\u65e9\u4e8e\u5f00\u59cb\u65f6\u95f4
\u8bf7\u91cd\u65b0\u9009\u62e9", + invalidDate: "\u4e0d\u5728\u6709\u6548\u65e5\u671f\u6216\u65f6\u95f4\u8303\u56f4\u5185", + formatError: ["\u65e5\u671f\u683c\u5f0f\u4e0d\u5408\u6cd5
\u5fc5\u987b\u9075\u5faa\u4e0b\u8ff0\u683c\u5f0f\uff1a
", "
\u5df2\u4e3a\u4f60\u91cd\u7f6e"], + preview: "\u5f53\u524d\u9009\u4e2d\u7684\u7ed3\u679c" + }, + en: { + weeks: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], + time: ["Hours", "Minutes", "Seconds"], + timeTips: "Select Time", + startTime: "Start Time", + endTime: "End Time", + dateTips: "Select Date", + month: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], + tools: {confirm: "Confirm", clear: "Clear", now: "Now"}, + timeout: "End time cannot be less than start Time
Please re-select", + invalidDate: "Invalid date", + formatError: ["The date format error
Must be followed\uff1a
", "
It has been reset"], + preview: "The selected result" + } + }; + return a[t.lang] || a.cn + }, D.prototype.init = function () { + var t = this, a = t.config, n = "static" === a.position, + i = {year: "yyyy", month: "yyyy-MM", date: "yyyy-MM-dd", time: "HH:mm:ss", datetime: "yyyy-MM-dd HH:mm:ss"}; + a.elem = lay(a.elem), a.eventElem = lay(a.eventElem), a.elem[0] && (t.rangeStr = a.range ? "string" == typeof a.range ? a.range : "-" : "", "array" === layui._typeof(a.range) && (t.rangeElem = [lay(a.range[0]), lay(a.range[1])]), i[a.type] || (e.console && console.error && console.error("laydate type error:'" + a.type + "' is not supported"), a.type = "date"), a.format === i.date && (a.format = i[a.type] || i.date), t.format = r.formatArr(a.format), t.EXP_IF = "", t.EXP_SPLIT = "", lay.each(t.format, function (e, a) { + var n = new RegExp(w).test(a) ? "\\d{" + function () { + return new RegExp(w).test(t.format[0 === e ? e + 1 : e - 1] || "") ? /^yyyy|y$/.test(a) ? 4 : a.length : /^yyyy$/.test(a) ? "1,4" : /^y$/.test(a) ? "1,308" : "1,2" + }() + "}" : "\\" + a; + t.EXP_IF = t.EXP_IF + n, t.EXP_SPLIT = t.EXP_SPLIT + "(" + n + ")" + }), t.EXP_IF_ONE = new RegExp("^" + t.EXP_IF + "$"), t.EXP_IF = new RegExp("^" + (a.range ? t.EXP_IF + "\\s\\" + t.rangeStr + "\\s" + t.EXP_IF : t.EXP_IF) + "$"), t.EXP_SPLIT = new RegExp("^" + t.EXP_SPLIT + "$", ""), t.isInput(a.elem[0]) || "focus" === a.trigger && (a.trigger = "click"), a.elem.attr("lay-key") || (a.elem.attr("lay-key", t.index), a.eventElem.attr("lay-key", t.index)), a.mark = lay.extend({}, a.calendar && "cn" === a.lang ? { + "0-1-1": "\u5143\u65e6", + "0-2-14": "\u60c5\u4eba", + "0-3-8": "\u5987\u5973", + "0-3-12": "\u690d\u6811", + "0-4-1": "\u611a\u4eba", + "0-5-1": "\u52b3\u52a8", + "0-5-4": "\u9752\u5e74", + "0-6-1": "\u513f\u7ae5", + "0-9-10": "\u6559\u5e08", + "0-9-18": "\u56fd\u803b", + "0-10-1": "\u56fd\u5e86", + "0-12-25": "\u5723\u8bde" + } : {}, a.mark), lay.each(["min", "max"], function (e, t) { + var n = [], i = []; + if ("number" == typeof a[t]) { + var l = a[t], r = (new Date).getTime(), o = 864e5, s = new Date(l ? l < o ? r + l * o : l : r); + n = [s.getFullYear(), s.getMonth() + 1, s.getDate()], l < o || (i = [s.getHours(), s.getMinutes(), s.getSeconds()]) + } else n = (a[t].match(/\d+-\d+-\d+/) || [""])[0].split("-"), i = (a[t].match(/\d+:\d+:\d+/) || [""])[0].split(":"); + a[t] = { + year: 0 | n[0] || (new Date).getFullYear(), + month: n[1] ? (0 | n[1]) - 1 : (new Date).getMonth(), + date: 0 | n[2] || (new Date).getDate(), + hours: 0 | i[0], + minutes: 0 | i[1], + seconds: 0 | i[2] + } + }), t.elemID = "layui-laydate" + a.elem.attr("lay-key"), (a.show || n) && t.render(), n || t.events(), a.value && a.isInitValue && ("date" === layui._typeof(a.value) ? t.setValue(t.parse(0, t.systemDate(a.value))) : t.setValue(a.value))) + }, D.prototype.render = function () { + var e = this, a = e.config, n = e.lang(), i = "static" === a.position, r = e.elem = lay.elem("div", { + id: e.elemID, + "class": ["layui-laydate", a.range ? " layui-laydate-range" : "", i ? " " + c : "", a.theme && "default" !== a.theme && !/^#/.test(a.theme) ? " laydate-theme-" + a.theme : ""].join("") + }), o = e.elemMain = [], s = e.elemHeader = [], y = e.elemCont = [], d = e.table = [], + m = e.footer = lay.elem("div", {"class": f}); + if (a.zIndex && (r.style.zIndex = a.zIndex), lay.each(new Array(2), function (e) { + if (!a.range && e > 0) return !0; + var t = lay.elem("div", {"class": "layui-laydate-header"}), i = [function () { + var e = lay.elem("i", {"class": "layui-icon laydate-icon laydate-prev-y"}); + return e.innerHTML = "", e + }(), function () { + var e = lay.elem("i", {"class": "layui-icon laydate-icon laydate-prev-m"}); + return e.innerHTML = "", e + }(), function () { + var e = lay.elem("div", {"class": "laydate-set-ym"}), t = lay.elem("span"), a = lay.elem("span"); + return e.appendChild(t), e.appendChild(a), e + }(), function () { + var e = lay.elem("i", {"class": "layui-icon laydate-icon laydate-next-m"}); + return e.innerHTML = "", e + }(), function () { + var e = lay.elem("i", {"class": "layui-icon laydate-icon laydate-next-y"}); + return e.innerHTML = "", e + }()], l = lay.elem("div", {"class": "layui-laydate-content"}), r = lay.elem("table"), m = lay.elem("thead"), + c = lay.elem("tr"); + lay.each(i, function (e, a) { + t.appendChild(a) + }), m.appendChild(c), lay.each(new Array(6), function (e) { + var t = r.insertRow(0); + lay.each(new Array(7), function (a) { + if (0 === e) { + var i = lay.elem("th"); + i.innerHTML = n.weeks[a], c.appendChild(i) + } + t.insertCell(a) + }) + }), r.insertBefore(m, r.children[0]), l.appendChild(r), o[e] = lay.elem("div", {"class": "layui-laydate-main laydate-main-list-" + e}), o[e].appendChild(t), o[e].appendChild(l), s.push(i), y.push(l), d.push(r) + }), lay(m).html(function () { + var e = [], t = []; + return "datetime" === a.type && e.push('' + n.timeTips + ""), (a.range || "datetime" !== a.type) && e.push(''), lay.each(a.btns, function (e, l) { + var r = n.tools[l] || "btn"; + a.range && "now" === l || (i && "clear" === l && (r = "cn" === a.lang ? "\u91cd\u7f6e" : "Reset"), t.push('' + r + "")) + }), e.push('"), e.join("") + }()), lay.each(o, function (e, t) { + r.appendChild(t) + }), a.showBottom && r.appendChild(m), /^#/.test(a.theme)) { + var u = lay.elem("style"), + h = ["#{{id}} .layui-laydate-header{background-color:{{theme}};}", "#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g, e.elemID).replace(/{{theme}}/g, a.theme); + "styleSheet" in u ? (u.setAttribute("type", "text/css"), u.styleSheet.cssText = h) : u.innerHTML = h, lay(r).addClass("laydate-theme-molv"), r.appendChild(u) + } + l.thisId = a.id, e.remove(D.thisElemDate), i ? a.elem.append(r) : (t.body.appendChild(r), e.position()), e.checkDate().calendar(null, 0, "init"), e.changeEvent(), D.thisElemDate = e.elemID, "function" == typeof a.ready && a.ready(lay.extend({}, a.dateTime, {month: a.dateTime.month + 1})), e.preview() + }, D.prototype.remove = function (e) { + var t = this, a = (t.config, lay("#" + (e || t.elemID))); + return a[0] ? (a.hasClass(c) || t.checkDate(function () { + a.remove() + }), t) : t + }, D.prototype.position = function () { + var e = this, t = e.config; + return lay.position(e.bindElem || t.elem[0], e.elem, {position: t.position}), e + }, D.prototype.hint = function (e) { + var t = this, a = (t.config, lay.elem("div", {"class": h})); + t.elem && (a.innerHTML = e || "", lay(t.elem).find("." + h).remove(), t.elem.appendChild(a), clearTimeout(t.hinTimer), t.hinTimer = setTimeout(function () { + lay(t.elem).find("." + h).remove() + }, 3e3)) + }, D.prototype.getAsYM = function (e, t, a) { + return a ? t-- : t++, t < 0 && (t = 11, e--), t > 11 && (t = 0, e++), [e, t] + }, D.prototype.systemDate = function (e) { + var t = e || new Date; + return { + year: t.getFullYear(), + month: t.getMonth(), + date: t.getDate(), + hours: e ? e.getHours() : 0, + minutes: e ? e.getMinutes() : 0, + seconds: e ? e.getSeconds() : 0 + } + }, D.prototype.checkDate = function (e) { + var t, a, n = this, i = (new Date, n.config), r = n.lang(), o = i.dateTime = i.dateTime || n.systemDate(), + s = n.bindElem || i.elem[0], y = (n.isInput(s) ? "val" : "html", function () { + if (n.rangeElem) { + var e = [n.rangeElem[0].val(), n.rangeElem[1].val()]; + if (e[0] && e[1]) return e.join(" " + n.rangeStr + " ") + } + return n.isInput(s) ? s.value : "static" === i.position ? "" : lay(s).attr("lay-date") + }()), d = function (e) { + e.year > m[1] && (e.year = m[1], a = !0), e.month > 11 && (e.month = 11, a = !0), e.hours > 23 && (e.hours = 0, a = !0), e.minutes > 59 && (e.minutes = 0, e.hours++, a = !0), e.seconds > 59 && (e.seconds = 0, e.minutes++, a = !0), t = l.getEndDate(e.month + 1, e.year), e.date > t && (e.date = t, a = !0) + }, c = function (e, t, l) { + var r = ["startTime", "endTime"]; + t = (t.match(n.EXP_SPLIT) || []).slice(1), l = l || 0, i.range && (n[r[l]] = n[r[l]] || {}), lay.each(n.format, function (o, s) { + var y = parseFloat(t[o]); + t[o].length < s.length && (a = !0), /yyyy|y/.test(s) ? (y < m[0] && (y = m[0], a = !0), e.year = y) : /MM|M/.test(s) ? (y < 1 && (y = 1, a = !0), e.month = y - 1) : /dd|d/.test(s) ? (y < 1 && (y = 1, a = !0), e.date = y) : /HH|H/.test(s) ? (y < 1 && (y = 0, a = !0), e.hours = y, i.range && (n[r[l]].hours = y)) : /mm|m/.test(s) ? (y < 1 && (y = 0, a = !0), e.minutes = y, i.range && (n[r[l]].minutes = y)) : /ss|s/.test(s) && (y < 1 && (y = 0, a = !0), e.seconds = y, i.range && (n[r[l]].seconds = y)) + }), d(e) + }; + if ("limit" === e) return d(o), n; + y = y || i.value, "string" == typeof y && (y = y.replace(/\s+/g, " ").replace(/^\s|\s$/g, "")); + var u = function () { + i.range && (n.endDate = n.endDate || lay.extend({}, i.dateTime, function () { + var e = {}, t = i.dateTime, a = n.getAsYM(t.year, t.month); + return "year" === i.type ? e.year = t.year + 1 : "time" !== i.type && (e.year = a[0], e.month = a[1]), "datetime" !== i.type && "time" !== i.type || (e.hours = 23, e.minutes = e.seconds = 59), e + }())) + }; + u(), "string" == typeof y && y ? n.EXP_IF.test(y) ? i.range ? (y = y.split(" " + n.rangeStr + " "), lay.each([i.dateTime, n.endDate], function (e, t) { + c(t, y[e], e) + })) : c(o, y) : (n.hint(r.formatError[0] + (i.range ? i.format + " " + n.rangeStr + " " + i.format : i.format) + r.formatError[1]), a = !0) : y && "date" === layui._typeof(y) ? i.dateTime = n.systemDate(y) : (i.dateTime = n.systemDate(), delete n.startTime, delete n.endDate, u(), delete n.endTime), function () { + if (n.rangeElem) { + var e = [n.rangeElem[0].val(), n.rangeElem[1].val()], t = [i.dateTime, n.endDate]; + lay.each(e, function (e, a) { + n.EXP_IF_ONE.test(a) && c(t[e], a, e) + }) + } + }(), d(o), i.range && d(n.endDate), a && y && n.setValue(i.range ? n.endDate ? n.parse() : "" : n.parse()); + var h = function (e) { + return n.newDate(e).getTime() + }; + return (h(o) > h(i.max) || h(o) < h(i.min)) && (o = i.dateTime = lay.extend({}, i.min)), i.range && (h(n.endDate) < h(i.min) || h(n.endDate) > h(i.max)) && (n.endDate = lay.extend({}, i.max)), e && e(), n + }, D.prototype.mark = function (e, t) { + var a, n = this, i = n.config; + return lay.each(i.mark, function (e, n) { + var i = e.split("-"); + i[0] != t[0] && 0 != i[0] || i[1] != t[1] && 0 != i[1] || i[2] != t[2] || (a = n || t[2]) + }), a && e.html('' + a + ""), n + }, D.prototype.limit = function (e, t, a, n) { + var i, l = this, r = l.config, o = {}, s = r[a > 41 ? "endDate" : "dateTime"], y = lay.extend({}, s, t || {}); + return lay.each({now: y, min: r.min, max: r.max}, function (e, t) { + o[e] = l.newDate(lay.extend({year: t.year, month: t.month, date: t.date}, function () { + var e = {}; + return lay.each(n, function (a, n) { + e[n] = t[n] + }), e + }())).getTime() + }), i = o.now < o.min || o.now > o.max, e && e[i ? "addClass" : "removeClass"](d), i + }, D.prototype.thisDateTime = function (e) { + var t = this, a = t.config; + return e ? t.endDate : a.dateTime + }, D.prototype.calendar = function (e, t, a) { + var n, i, r, o = this, s = o.config, t = t ? 1 : 0, d = e || o.thisDateTime(t), c = new Date, u = o.lang(), + h = "date" !== s.type && "datetime" !== s.type, f = lay(o.table[t]).find("td"), + g = lay(o.elemHeader[t][2]).find("span"); + return d.year < m[0] && (d.year = m[0], o.hint(u.invalidDate)), d.year > m[1] && (d.year = m[1], o.hint(u.invalidDate)), o.firstDate || (o.firstDate = lay.extend({}, d)), c.setFullYear(d.year, d.month, 1), n = c.getDay(), i = l.getEndDate(d.month || 12, d.year), r = l.getEndDate(d.month + 1, d.year), lay.each(f, function (e, t) { + var a = [d.year, d.month], l = 0; + t = lay(t), t.removeAttr("class"), e < n ? (l = i - n + e, t.addClass("laydate-day-prev"), a = o.getAsYM(d.year, d.month, "sub")) : e >= n && e < r + n ? (l = e - n, l + 1 === d.date && t.addClass(y)) : (l = e - r - n, t.addClass("laydate-day-next"), a = o.getAsYM(d.year, d.month)), a[1]++, a[2] = l + 1, t.attr("lay-ymd", a.join("-")).html(a[2]), o.mark(t, a).limit(t, { + year: a[0], + month: a[1] - 1, + date: a[2] + }, e) + }), lay(g[0]).attr("lay-ym", d.year + "-" + (d.month + 1)), lay(g[1]).attr("lay-ym", d.year + "-" + (d.month + 1)), "cn" === s.lang ? (lay(g[0]).attr("lay-type", "year").html(d.year + " \u5e74"), lay(g[1]).attr("lay-type", "month").html(d.month + 1 + " \u6708")) : (lay(g[0]).attr("lay-type", "month").html(u.month[d.month]), lay(g[1]).attr("lay-type", "year").html(d.year)), h && (s.range ? e && (o.listYM = [[s.dateTime.year, s.dateTime.month + 1], [o.endDate.year, o.endDate.month + 1]], o.list(s.type, 0).list(s.type, 1), "time" === s.type ? o.setBtnStatus("\u65f6\u95f4", lay.extend({}, o.systemDate(), o.startTime), lay.extend({}, o.systemDate(), o.endTime)) : o.setBtnStatus(!0)) : (o.listYM = [[d.year, d.month + 1]], o.list(s.type, 0))), s.range && "init" === a && !e && o.calendar(o.endDate, 1), s.range || o.limit(lay(o.footer).find(p), null, 0, ["hours", "minutes", "seconds"]), o.setBtnStatus(), o + }, D.prototype.list = function (e, t) { + var a = this, n = a.config, i = n.dateTime, l = a.lang(), + r = n.range && "date" !== n.type && "datetime" !== n.type, o = lay.elem("ul", { + "class": u + " " + { + year: "laydate-year-list", + month: "laydate-month-list", + time: "laydate-time-list" + }[e] + }), s = a.elemHeader[t], m = lay(s[2]).find("span"), c = a.elemCont[t || 0], h = lay(c).find("." + u)[0], + f = "cn" === n.lang, T = f ? "\u5e74" : "", D = a.listYM[t] || {}, w = ["hours", "minutes", "seconds"], + x = ["startTime", "endTime"][t]; + if (D[0] < 1 && (D[0] = 1), "year" === e) { + var M, E = M = D[0] - 7; + E < 1 && (E = M = 1), lay.each(new Array(15), function (e) { + var i = lay.elem("li", {"lay-ym": M}), l = {year: M}; + M == D[0] && lay(i).addClass(y), i.innerHTML = M + T, o.appendChild(i), M < a.firstDate.year ? (l.month = n.min.month, l.date = n.min.date) : M >= a.firstDate.year && (l.month = n.max.month, l.date = n.max.date), a.limit(lay(i), l, t), M++ + }), lay(m[f ? 0 : 1]).attr("lay-ym", M - 8 + "-" + D[1]).html(E + T + " - " + (M - 1 + T)) + } else if ("month" === e) lay.each(new Array(12), function (e) { + var i = lay.elem("li", {"lay-ym": e}), r = {year: D[0], month: e}; + e + 1 == D[1] && lay(i).addClass(y), i.innerHTML = l.month[e] + (f ? "\u6708" : ""), o.appendChild(i), D[0] < a.firstDate.year ? r.date = n.min.date : D[0] >= a.firstDate.year && (r.date = n.max.date), a.limit(lay(i), r, t) + }), lay(m[f ? 0 : 1]).attr("lay-ym", D[0] + "-" + D[1]).html(D[0] + T); else if ("time" === e) { + var C = function () { + lay(o).find("ol").each(function (e, n) { + lay(n).find("li").each(function (n, i) { + a.limit(lay(i), [{hours: n}, {hours: a[x].hours, minutes: n}, { + hours: a[x].hours, + minutes: a[x].minutes, + seconds: n + }][e], t, [["hours"], ["hours", "minutes"], ["hours", "minutes", "seconds"]][e]) + }) + }), n.range || a.limit(lay(a.footer).find(p), a[x], 0, ["hours", "minutes", "seconds"]) + }; + n.range ? a[x] || (a[x] = "startTime" === x ? i : a.endDate) : a[x] = i, lay.each([24, 60, 60], function (e, t) { + var n = lay.elem("li"), i = ["

" + l.time[e] + "

    "]; + lay.each(new Array(t), function (t) { + i.push("" + lay.digit(t, 2) + "") + }), n.innerHTML = i.join("") + "
", o.appendChild(n) + }), C() + } + if (h && c.removeChild(h), c.appendChild(o), "year" === e || "month" === e) lay(a.elemMain[t]).addClass("laydate-ym-show"), lay(o).find("li").on("click", function () { + var l = 0 | lay(this).attr("lay-ym"); + if (!lay(this).hasClass(d)) { + 0 === t ? (i[e] = l, a.limit(lay(a.footer).find(p), null, 0)) : a.endDate[e] = l; + var s = "year" === n.type || "month" === n.type; + s ? (lay(o).find("." + y).removeClass(y), lay(this).addClass(y), "month" === n.type && "year" === e && (a.listYM[t][0] = l, r && ((t ? a.endDate : i).year = l), a.list("month", t))) : (a.checkDate("limit").calendar(null, t), a.closeList()), a.setBtnStatus(), n.range || ("month" === n.type && "month" === e || "year" === n.type && "year" === e) && a.setValue(a.parse()).remove().done(), a.done(null, "change"), lay(a.footer).find("." + v).removeClass(d) + } + }); else { + var I = lay.elem("span", {"class": g}), k = function () { + lay(o).find("ol").each(function (e) { + var t = this, n = lay(t).find("li"); + t.scrollTop = 30 * (a[x][w[e]] - 2), t.scrollTop <= 0 && n.each(function (e, a) { + if (!lay(this).hasClass(d)) return t.scrollTop = 30 * (e - 2), !0 + }) + }) + }, b = lay(s[2]).find("." + g); + k(), I.innerHTML = n.range ? [l.startTime, l.endTime][t] : l.timeTips, lay(a.elemMain[t]).addClass("laydate-time-show"), b[0] && b.remove(), s[2].appendChild(I), lay(o).find("ol").each(function (e) { + var t = this; + lay(t).find("li").on("click", function () { + var l = 0 | this.innerHTML; + lay(this).hasClass(d) || (n.range ? a[x][w[e]] = l : i[w[e]] = l, lay(t).find("." + y).removeClass(y), lay(this).addClass(y), C(), k(), (a.endDate || "time" === n.type) && a.done(null, "change"), a.setBtnStatus()) + }) + }) + } + return a + }, D.prototype.listYM = [], D.prototype.closeList = function () { + var e = this; + e.config; + lay.each(e.elemCont, function (t, a) { + lay(this).find("." + u).remove(), lay(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show") + }), lay(e.elem).find("." + g).remove() + }, D.prototype.setBtnStatus = function (e, t, a) { + var n, i = this, l = i.config, r = i.lang(), o = lay(i.footer).find(p); + l.range && "time" !== l.type && (t = t || l.dateTime, a = a || i.endDate, n = i.newDate(t).getTime() > i.newDate(a).getTime(), i.limit(null, t) || i.limit(null, a) ? o.addClass(d) : o[n ? "addClass" : "removeClass"](d), e && n && i.hint("string" == typeof e ? r.timeout.replace(/\u65e5\u671f/g, e) : r.timeout)) + }, D.prototype.parse = function (e, t) { + var a = this, n = a.config, + i = t || ("end" == e ? lay.extend({}, a.endDate, a.endTime) : n.range ? lay.extend({}, n.dateTime, a.startTime) : n.dateTime), + r = l.parse(i, a.format, 1); + return n.range && void 0 === e ? r + " " + a.rangeStr + " " + a.parse("end") : r + }, D.prototype.newDate = function (e) { + return e = e || {}, new Date(e.year || 1, e.month || 0, e.date || 1, e.hours || 0, e.minutes || 0, e.seconds || 0) + }, D.prototype.setValue = function (e) { + var t = this, a = t.config, n = t.bindElem || a.elem[0]; + return "static" === a.position ? t : (e = e || "", t.isInput(n) ? lay(n).val(e) : t.rangeElem ? (t.rangeElem[0].val(e ? t.parse("start") : ""), t.rangeElem[1].val(e ? t.parse("end") : "")) : (0 === lay(n).find("*").length && lay(n).html(e), lay(n).attr("lay-date", e)), t) + }, D.prototype.preview = function () { + var e = this, t = e.config; + if (t.isPreview) { + var a = lay(e.elem).find("." + T), n = t.range ? e.endDate ? e.parse() : "" : e.parse(); + a.html(n).css({color: "#5FB878"}), setTimeout(function () { + a.css({color: "#666"}) + }, 300) + } + }, D.prototype.done = function (e, t) { + var a = this, n = a.config, i = lay.extend({}, lay.extend(n.dateTime, a.startTime)), + l = lay.extend({}, lay.extend(a.endDate, a.endTime)); + return lay.each([i, l], function (e, t) { + "month" in t && lay.extend(t, {month: t.month + 1}) + }), a.preview(), e = e || [a.parse(), i, l], "function" == typeof n[t || "done"] && n[t || "done"].apply(n, e), a + }, D.prototype.choose = function (e, t) { + var a = this, n = a.config, i = a.thisDateTime(t), l = (lay(a.elem).find("td"), e.attr("lay-ymd").split("-")); + l = { + year: 0 | l[0], + month: (0 | l[1]) - 1, + date: 0 | l[2] + }, e.hasClass(d) || (lay.extend(i, l), n.range ? (lay.each(["startTime", "endTime"], function (e, t) { + a[t] = a[t] || {hours: 0, minutes: 0, seconds: 0} + }), a.calendar(null, t).done(null, "change")) : "static" === n.position ? a.calendar().done().done(null, "change") : "date" === n.type ? a.setValue(a.parse()).remove().done() : "datetime" === n.type && a.calendar().done(null, "change")) + }, D.prototype.tool = function (e, t) { + var a = this, n = a.config, i = a.lang(), l = n.dateTime, r = "static" === n.position, o = { + datetime: function () { + lay(e).hasClass(d) || (a.list("time", 0), n.range && a.list("time", 1), lay(e).attr("lay-type", "date").html(a.lang().dateTips)) + }, date: function () { + a.closeList(), lay(e).attr("lay-type", "datetime").html(a.lang().timeTips) + }, clear: function () { + r && (lay.extend(l, a.firstDate), a.calendar()), n.range && (delete n.dateTime, delete a.endDate, delete a.startTime, delete a.endTime), a.setValue("").remove(), a.done(["", {}, {}]) + }, now: function () { + var e = new Date; + lay.extend(l, a.systemDate(), { + hours: e.getHours(), + minutes: e.getMinutes(), + seconds: e.getSeconds() + }), a.setValue(a.parse()).remove(), r && a.calendar(), a.done() + }, confirm: function () { + if (n.range) { + if (lay(e).hasClass(d)) return a.hint("time" === n.type ? i.timeout.replace(/\u65e5\u671f/g, "\u65f6\u95f4") : i.timeout) + } else if (lay(e).hasClass(d)) return a.hint(i.invalidDate); + a.done(), a.setValue(a.parse()).remove() + } + }; + o[t] && o[t]() + }, D.prototype.change = function (e) { + var t = this, a = t.config, n = t.thisDateTime(e), i = a.range && ("year" === a.type || "month" === a.type), + l = t.elemCont[e || 0], r = t.listYM[e], o = function (o) { + var s = lay(l).find(".laydate-year-list")[0], y = lay(l).find(".laydate-month-list")[0]; + return s && (r[0] = o ? r[0] - 15 : r[0] + 15, t.list("year", e)), y && (o ? r[0]-- : r[0]++, t.list("month", e)), (s || y) && (lay.extend(n, {year: r[0]}), i && (n.year = r[0]), a.range || t.done(null, "change"), a.range || t.limit(lay(t.footer).find(p), {year: r[0]})), t.setBtnStatus(), s || y + }; + return { + prevYear: function () { + o("sub") || (n.year--, t.checkDate("limit").calendar(null, e), t.done(null, "change")) + }, prevMonth: function () { + var a = t.getAsYM(n.year, n.month, "sub"); + lay.extend(n, {year: a[0], month: a[1]}), t.checkDate("limit").calendar(null, e), t.done(null, "change") + }, nextMonth: function () { + var a = t.getAsYM(n.year, n.month); + lay.extend(n, {year: a[0], month: a[1]}), t.checkDate("limit").calendar(null, e), t.done(null, "change") + }, nextYear: function () { + o() || (n.year++, t.checkDate("limit").calendar(null, e), t.done(null, "change")) + } + } + }, D.prototype.changeEvent = function () { + var e = this; + e.config; + lay(e.elem).on("click", function (e) { + lay.stope(e) + }).on("mousedown", function (e) { + lay.stope(e) + }), lay.each(e.elemHeader, function (t, a) { + lay(a[0]).on("click", function (a) { + e.change(t).prevYear() + }), lay(a[1]).on("click", function (a) { + e.change(t).prevMonth() + }), lay(a[2]).find("span").on("click", function (a) { + var n = lay(this), i = n.attr("lay-ym"), l = n.attr("lay-type"); + i && (i = i.split("-"), e.listYM[t] = [0 | i[0], 0 | i[1]], e.list(l, t), lay(e.footer).find("." + v).addClass(d)) + }), lay(a[3]).on("click", function (a) { + e.change(t).nextMonth() + }), lay(a[4]).on("click", function (a) { + e.change(t).nextYear() + }) + }), lay.each(e.table, function (t, a) { + var n = lay(a).find("td"); + n.on("click", function () { + e.choose(lay(this), t) + }) + }), lay(e.footer).find("span").on("click", function () { + var t = lay(this).attr("lay-type"); + e.tool(this, t) + }) + }, D.prototype.isInput = function (e) { + return /input|textarea/.test(e.tagName.toLocaleLowerCase()) + }, D.prototype.events = function () { + var e = this, t = e.config, a = function (a, n) { + a.on(t.trigger, function () { + n && (e.bindElem = this), e.render() + }) + }; + t.elem[0] && !t.elem[0].eventHandler && (a(t.elem, "bind"), a(t.eventElem), t.elem[0].eventHandler = !0) + }, r.that = {}, r.getThis = function (e) { + var t = r.that[e]; + return !t && a && layui.hint().error(e ? o + " instance with ID '" + e + "' not found" : "ID argument required"), t + }, n.run = function (a) { + a(t).on("mousedown", function (e) { + if (l.thisId) { + var t = r.getThis(l.thisId); + if (t) { + var n = t.config; + e.target !== n.elem[0] && e.target !== n.eventElem[0] && e.target !== a(n.closeStop)[0] && t.remove() + } + } + }).on("keydown", function (e) { + if (l.thisId) { + var t = r.getThis(l.thisId); + t && 13 === e.keyCode && a("#" + t.elemID)[0] && t.elemID === D.thisElemDate && (e.preventDefault(), a(t.footer).find(p)[0].click()) + } + }), a(e).on("resize", function () { + if (l.thisId) { + var e = r.getThis(l.thisId); + if (e) return !(!e.elem || !a(s)[0]) && void e.position() + } + }) + }, l.render = function (e) { + var t = new D(e); + return r.call(t) + }, l.parse = function (e, t, a) { + return e = e || {}, "string" == typeof t && (t = r.formatArr(t)), t = (t || []).concat(), lay.each(t, function (n, i) { + /yyyy|y/.test(i) ? t[n] = lay.digit(e.year, i.length) : /MM|M/.test(i) ? t[n] = lay.digit(e.month + (a || 0), i.length) : /dd|d/.test(i) ? t[n] = lay.digit(e.date, i.length) : /HH|H/.test(i) ? t[n] = lay.digit(e.hours, i.length) : /mm|m/.test(i) ? t[n] = lay.digit(e.minutes, i.length) : /ss|s/.test(i) && (t[n] = lay.digit(e.seconds, i.length)) + }), t.join("") + }, l.getEndDate = function (e, t) { + var a = new Date; + return a.setFullYear(t || a.getFullYear(), e || a.getMonth() + 1, 1), new Date(a.getTime() - 864e5).getDate() + }, a ? (l.ready(), layui.define("lay", function (e) { + l.path = layui.cache.dir, n.run(lay), e(o, l) + })) : "function" == typeof define && define.amd ? define(function () { + return n.run(lay), l + }) : function () { + l.ready(), n.run(e.lay), e.laydate = l + }() +}(window, window.document); +!function (e, t) { + "object" == typeof module && "object" == typeof module.exports ? module.exports = e.document ? t(e, !0) : function (e) { + if (!e.document) throw new Error("jQuery requires a window with a document"); + return t(e) + } : t(e) +}("undefined" != typeof window ? window : this, function (e, t) { + function n(e) { + var t = !!e && "length" in e && e.length, n = pe.type(e); + return "function" !== n && !pe.isWindow(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e) + } + + function r(e, t, n) { + if (pe.isFunction(t)) return pe.grep(e, function (e, r) { + return !!t.call(e, r, e) !== n + }); + if (t.nodeType) return pe.grep(e, function (e) { + return e === t !== n + }); + if ("string" == typeof t) { + if (Ce.test(t)) return pe.filter(t, e, n); + t = pe.filter(t, e) + } + return pe.grep(e, function (e) { + return pe.inArray(e, t) > -1 !== n + }) + } + + function i(e, t) { + do e = e[t]; while (e && 1 !== e.nodeType); + return e + } + + function o(e) { + var t = {}; + return pe.each(e.match(De) || [], function (e, n) { + t[n] = !0 + }), t + } + + function a() { + re.addEventListener ? (re.removeEventListener("DOMContentLoaded", s), e.removeEventListener("load", s)) : (re.detachEvent("onreadystatechange", s), e.detachEvent("onload", s)) + } + + function s() { + (re.addEventListener || "load" === e.event.type || "complete" === re.readyState) && (a(), pe.ready()) + } + + function u(e, t, n) { + if (void 0 === n && 1 === e.nodeType) { + var r = "data-" + t.replace(_e, "-$1").toLowerCase(); + if (n = e.getAttribute(r), "string" == typeof n) { + try { + n = "true" === n || "false" !== n && ("null" === n ? null : +n + "" === n ? +n : qe.test(n) ? pe.parseJSON(n) : n) + } catch (i) { + } + pe.data(e, t, n) + } else n = void 0 + } + return n + } + + function l(e) { + var t; + for (t in e) if (("data" !== t || !pe.isEmptyObject(e[t])) && "toJSON" !== t) return !1; + return !0 + } + + function c(e, t, n, r) { + if (He(e)) { + var i, o, a = pe.expando, s = e.nodeType, u = s ? pe.cache : e, l = s ? e[a] : e[a] && a; + if (l && u[l] && (r || u[l].data) || void 0 !== n || "string" != typeof t) return l || (l = s ? e[a] = ne.pop() || pe.guid++ : a), u[l] || (u[l] = s ? {} : {toJSON: pe.noop}), "object" != typeof t && "function" != typeof t || (r ? u[l] = pe.extend(u[l], t) : u[l].data = pe.extend(u[l].data, t)), o = u[l], r || (o.data || (o.data = {}), o = o.data), void 0 !== n && (o[pe.camelCase(t)] = n), "string" == typeof t ? (i = o[t], null == i && (i = o[pe.camelCase(t)])) : i = o, i + } + } + + function f(e, t, n) { + if (He(e)) { + var r, i, o = e.nodeType, a = o ? pe.cache : e, s = o ? e[pe.expando] : pe.expando; + if (a[s]) { + if (t && (r = n ? a[s] : a[s].data)) { + pe.isArray(t) ? t = t.concat(pe.map(t, pe.camelCase)) : t in r ? t = [t] : (t = pe.camelCase(t), t = t in r ? [t] : t.split(" ")), i = t.length; + for (; i--;) delete r[t[i]]; + if (n ? !l(r) : !pe.isEmptyObject(r)) return + } + (n || (delete a[s].data, l(a[s]))) && (o ? pe.cleanData([e], !0) : fe.deleteExpando || a != a.window ? delete a[s] : a[s] = void 0) + } + } + } + + function d(e, t, n, r) { + var i, o = 1, a = 20, s = r ? function () { + return r.cur() + } : function () { + return pe.css(e, t, "") + }, u = s(), l = n && n[3] || (pe.cssNumber[t] ? "" : "px"), + c = (pe.cssNumber[t] || "px" !== l && +u) && Me.exec(pe.css(e, t)); + if (c && c[3] !== l) { + l = l || c[3], n = n || [], c = +u || 1; + do o = o || ".5", c /= o, pe.style(e, t, c + l); while (o !== (o = s() / u) && 1 !== o && --a) + } + return n && (c = +c || +u || 0, i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], r && (r.unit = l, r.start = c, r.end = i)), i + } + + function p(e) { + var t = ze.split("|"), n = e.createDocumentFragment(); + if (n.createElement) for (; t.length;) n.createElement(t.pop()); + return n + } + + function h(e, t) { + var n, r, i = 0, + o = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : void 0; + if (!o) for (o = [], n = e.childNodes || e; null != (r = n[i]); i++) !t || pe.nodeName(r, t) ? o.push(r) : pe.merge(o, h(r, t)); + return void 0 === t || t && pe.nodeName(e, t) ? pe.merge([e], o) : o + } + + function g(e, t) { + for (var n, r = 0; null != (n = e[r]); r++) pe._data(n, "globalEval", !t || pe._data(t[r], "globalEval")) + } + + function m(e) { + Be.test(e.type) && (e.defaultChecked = e.checked) + } + + function y(e, t, n, r, i) { + for (var o, a, s, u, l, c, f, d = e.length, y = p(t), v = [], x = 0; x < d; x++) if (a = e[x], a || 0 === a) if ("object" === pe.type(a)) pe.merge(v, a.nodeType ? [a] : a); else if (Ue.test(a)) { + for (u = u || y.appendChild(t.createElement("div")), l = (We.exec(a) || ["", ""])[1].toLowerCase(), f = Xe[l] || Xe._default, u.innerHTML = f[1] + pe.htmlPrefilter(a) + f[2], o = f[0]; o--;) u = u.lastChild; + if (!fe.leadingWhitespace && $e.test(a) && v.push(t.createTextNode($e.exec(a)[0])), !fe.tbody) for (a = "table" !== l || Ve.test(a) ? "" !== f[1] || Ve.test(a) ? 0 : u : u.firstChild, o = a && a.childNodes.length; o--;) pe.nodeName(c = a.childNodes[o], "tbody") && !c.childNodes.length && a.removeChild(c); + for (pe.merge(v, u.childNodes), u.textContent = ""; u.firstChild;) u.removeChild(u.firstChild); + u = y.lastChild + } else v.push(t.createTextNode(a)); + for (u && y.removeChild(u), fe.appendChecked || pe.grep(h(v, "input"), m), x = 0; a = v[x++];) if (r && pe.inArray(a, r) > -1) i && i.push(a); else if (s = pe.contains(a.ownerDocument, a), u = h(y.appendChild(a), "script"), s && g(u), n) for (o = 0; a = u[o++];) Ie.test(a.type || "") && n.push(a); + return u = null, y + } + + function v() { + return !0 + } + + function x() { + return !1 + } + + function b() { + try { + return re.activeElement + } catch (e) { + } + } + + function w(e, t, n, r, i, o) { + var a, s; + if ("object" == typeof t) { + "string" != typeof n && (r = r || n, n = void 0); + for (s in t) w(e, s, n, r, t[s], o); + return e + } + if (null == r && null == i ? (i = n, r = n = void 0) : null == i && ("string" == typeof n ? (i = r, r = void 0) : (i = r, r = n, n = void 0)), i === !1) i = x; else if (!i) return e; + return 1 === o && (a = i, i = function (e) { + return pe().off(e), a.apply(this, arguments) + }, i.guid = a.guid || (a.guid = pe.guid++)), e.each(function () { + pe.event.add(this, t, i, r, n) + }) + } + + function T(e, t) { + return pe.nodeName(e, "table") && pe.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e + } + + function C(e) { + return e.type = (null !== pe.find.attr(e, "type")) + "/" + e.type, e + } + + function E(e) { + var t = it.exec(e.type); + return t ? e.type = t[1] : e.removeAttribute("type"), e + } + + function N(e, t) { + if (1 === t.nodeType && pe.hasData(e)) { + var n, r, i, o = pe._data(e), a = pe._data(t, o), s = o.events; + if (s) { + delete a.handle, a.events = {}; + for (n in s) for (r = 0, i = s[n].length; r < i; r++) pe.event.add(t, n, s[n][r]) + } + a.data && (a.data = pe.extend({}, a.data)) + } + } + + function k(e, t) { + var n, r, i; + if (1 === t.nodeType) { + if (n = t.nodeName.toLowerCase(), !fe.noCloneEvent && t[pe.expando]) { + i = pe._data(t); + for (r in i.events) pe.removeEvent(t, r, i.handle); + t.removeAttribute(pe.expando) + } + "script" === n && t.text !== e.text ? (C(t).text = e.text, E(t)) : "object" === n ? (t.parentNode && (t.outerHTML = e.outerHTML), fe.html5Clone && e.innerHTML && !pe.trim(t.innerHTML) && (t.innerHTML = e.innerHTML)) : "input" === n && Be.test(e.type) ? (t.defaultChecked = t.checked = e.checked, t.value !== e.value && (t.value = e.value)) : "option" === n ? t.defaultSelected = t.selected = e.defaultSelected : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue) + } + } + + function S(e, t, n, r) { + t = oe.apply([], t); + var i, o, a, s, u, l, c = 0, f = e.length, d = f - 1, p = t[0], g = pe.isFunction(p); + if (g || f > 1 && "string" == typeof p && !fe.checkClone && rt.test(p)) return e.each(function (i) { + var o = e.eq(i); + g && (t[0] = p.call(this, i, o.html())), S(o, t, n, r) + }); + if (f && (l = y(t, e[0].ownerDocument, !1, e, r), i = l.firstChild, 1 === l.childNodes.length && (l = i), i || r)) { + for (s = pe.map(h(l, "script"), C), a = s.length; c < f; c++) o = l, c !== d && (o = pe.clone(o, !0, !0), a && pe.merge(s, h(o, "script"))), n.call(e[c], o, c); + if (a) for (u = s[s.length - 1].ownerDocument, pe.map(s, E), c = 0; c < a; c++) o = s[c], Ie.test(o.type || "") && !pe._data(o, "globalEval") && pe.contains(u, o) && (o.src ? pe._evalUrl && pe._evalUrl(o.src) : pe.globalEval((o.text || o.textContent || o.innerHTML || "").replace(ot, ""))); + l = i = null + } + return e + } + + function A(e, t, n) { + for (var r, i = t ? pe.filter(t, e) : e, o = 0; null != (r = i[o]); o++) n || 1 !== r.nodeType || pe.cleanData(h(r)), r.parentNode && (n && pe.contains(r.ownerDocument, r) && g(h(r, "script")), r.parentNode.removeChild(r)); + return e + } + + function D(e, t) { + var n = pe(t.createElement(e)).appendTo(t.body), r = pe.css(n[0], "display"); + return n.detach(), r + } + + function j(e) { + var t = re, n = lt[e]; + return n || (n = D(e, t), "none" !== n && n || (ut = (ut || pe("'; + break; + case 3: + delete t.title, delete t.closeBtn, t.icon === -1 && 0 === t.icon, r.closeAll("loading"); + break; + case 4: + f || (t.content = [t.content, "body"]), t.follow = t.content[1], t.content = t.content[0] + '', delete t.title, t.tips = "object" == typeof t.tips ? t.tips : [t.tips, !0], t.tipsMore || r.closeAll("tips") + } + if (e.vessel(f, function (n, r, u) { + c.append(n[0]), f ? function () { + 2 == t.type || 4 == t.type ? function () { + i("body").append(n[1]) + }() : function () { + s.parents("." + l[0])[0] || (s.data("display", s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]), i("#" + l[0] + a).find("." + l[5]).before(r)) + }() + }() : c.append(n[1]), i("#" + l.MOVE)[0] || c.append(o.moveElem = u), e.layero = i("#" + l[0] + a), e.shadeo = i("#" + l.SHADE + a), t.scrollbar || l.html.css("overflow", "hidden").attr("layer-full", a) + }).auto(a), e.shadeo.css({ + "background-color": t.shade[1] || "#000", + opacity: t.shade[0] || t.shade + }), 2 == t.type && 6 == r.ie && e.layero.find("iframe").attr("src", s[0]), 4 == t.type ? e.tips() : function () { + e.offset(), parseInt(o.getStyle(document.getElementById(l.MOVE), "z-index")) || function () { + e.layero.css("visibility", "hidden"), r.ready(function () { + e.offset(), e.layero.css("visibility", "visible") + }) + }() + }(), t.fixed && n.on("resize", function () { + e.offset(), (/^\d+%$/.test(t.area[0]) || /^\d+%$/.test(t.area[1])) && e.auto(a), 4 == t.type && e.tips() + }), t.time <= 0 || setTimeout(function () { + r.close(e.index) + }, t.time), e.move().callback(), l.anim[t.anim]) { + var u = "layer-anim " + l.anim[t.anim]; + e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend", function () { + i(this).removeClass(u) + }) + } + t.isOutAnim && e.layero.data("isOutAnim", !0) + } + }, s.pt.auto = function (e) { + var t = this, a = t.config, o = i("#" + l[0] + e); + "" === a.area[0] && a.maxWidth > 0 && (r.ie && r.ie < 8 && a.btn && o.width(o.innerWidth()), o.outerWidth() > a.maxWidth && o.width(a.maxWidth)); + var s = [o.innerWidth(), o.innerHeight()], f = o.find(l[1]).outerHeight() || 0, + c = o.find("." + l[6]).outerHeight() || 0, u = function (e) { + e = o.find(e), e.height(s[1] - f - c - 2 * (0 | parseFloat(e.css("padding-top")))) + }; + switch (a.type) { + case 2: + u("iframe"); + break; + default: + "" === a.area[1] ? a.maxHeight > 0 && o.outerHeight() > a.maxHeight ? (s[1] = a.maxHeight, u("." + l[5])) : a.fixed && s[1] >= n.height() && (s[1] = n.height(), u("." + l[5])) : u("." + l[5]) + } + return t + }, s.pt.offset = function () { + var e = this, t = e.config, i = e.layero, a = [i.outerWidth(), i.outerHeight()], + o = "object" == typeof t.offset; + e.offsetTop = (n.height() - a[1]) / 2, e.offsetLeft = (n.width() - a[0]) / 2, o ? (e.offsetTop = t.offset[0], e.offsetLeft = t.offset[1] || e.offsetLeft) : "auto" !== t.offset && ("t" === t.offset ? e.offsetTop = 0 : "r" === t.offset ? e.offsetLeft = n.width() - a[0] : "b" === t.offset ? e.offsetTop = n.height() - a[1] : "l" === t.offset ? e.offsetLeft = 0 : "lt" === t.offset ? (e.offsetTop = 0, e.offsetLeft = 0) : "lb" === t.offset ? (e.offsetTop = n.height() - a[1], e.offsetLeft = 0) : "rt" === t.offset ? (e.offsetTop = 0, e.offsetLeft = n.width() - a[0]) : "rb" === t.offset ? (e.offsetTop = n.height() - a[1], e.offsetLeft = n.width() - a[0]) : e.offsetTop = t.offset), t.fixed || (e.offsetTop = /%$/.test(e.offsetTop) ? n.height() * parseFloat(e.offsetTop) / 100 : parseFloat(e.offsetTop), e.offsetLeft = /%$/.test(e.offsetLeft) ? n.width() * parseFloat(e.offsetLeft) / 100 : parseFloat(e.offsetLeft), e.offsetTop += n.scrollTop(), e.offsetLeft += n.scrollLeft()), i.attr("minLeft") && (e.offsetTop = n.height() - (i.find(l[1]).outerHeight() || 0), e.offsetLeft = i.css("left")), i.css({ + top: e.offsetTop, + left: e.offsetLeft + }) + }, s.pt.tips = function () { + var e = this, t = e.config, a = e.layero, o = [a.outerWidth(), a.outerHeight()], r = i(t.follow); + r[0] || (r = i("body")); + var s = {width: r.outerWidth(), height: r.outerHeight(), top: r.offset().top, left: r.offset().left}, + f = a.find(".layui-layer-TipsG"), c = t.tips[0]; + t.tips[1] || f.remove(), s.autoLeft = function () { + s.left + o[0] - n.width() > 0 ? (s.tipLeft = s.left + s.width - o[0], f.css({ + right: 12, + left: "auto" + })) : s.tipLeft = s.left + }, s.where = [function () { + s.autoLeft(), s.tipTop = s.top - o[1] - 10, f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color", t.tips[1]) + }, function () { + s.tipLeft = s.left + s.width + 10, s.tipTop = s.top, f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color", t.tips[1]) + }, function () { + s.autoLeft(), s.tipTop = s.top + s.height + 10, f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color", t.tips[1]) + }, function () { + s.tipLeft = s.left - o[0] - 10, s.tipTop = s.top, f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color", t.tips[1]) + }], s.where[c - 1](), 1 === c ? s.top - (n.scrollTop() + o[1] + 16) < 0 && s.where[2]() : 2 === c ? n.width() - (s.left + s.width + o[0] + 16) > 0 || s.where[3]() : 3 === c ? s.top - n.scrollTop() + s.height + o[1] + 16 - n.height() > 0 && s.where[0]() : 4 === c && o[0] + 16 - s.left > 0 && s.where[1](), a.find("." + l[5]).css({ + "background-color": t.tips[1], + "padding-right": t.closeBtn ? "30px" : "" + }), a.css({left: s.tipLeft - (t.fixed ? n.scrollLeft() : 0), top: s.tipTop - (t.fixed ? n.scrollTop() : 0)}) + }, s.pt.move = function () { + var e = this, t = e.config, a = i(document), s = e.layero, l = s.find(t.move), + f = s.find(".layui-layer-resize"), c = {}; + return t.move && l.css("cursor", "move"), l.on("mousedown", function (e) { + e.preventDefault(), t.move && (c.moveStart = !0, c.offset = [e.clientX - parseFloat(s.css("left")), e.clientY - parseFloat(s.css("top"))], o.moveElem.css("cursor", "move").show()) + }), f.on("mousedown", function (e) { + e.preventDefault(), c.resizeStart = !0, c.offset = [e.clientX, e.clientY], c.area = [s.outerWidth(), s.outerHeight()], o.moveElem.css("cursor", "se-resize").show() + }), a.on("mousemove", function (i) { + if (c.moveStart) { + var a = i.clientX - c.offset[0], o = i.clientY - c.offset[1], l = "fixed" === s.css("position"); + if (i.preventDefault(), c.stX = l ? 0 : n.scrollLeft(), c.stY = l ? 0 : n.scrollTop(), !t.moveOut) { + var f = n.width() - s.outerWidth() + c.stX, u = n.height() - s.outerHeight() + c.stY; + a < c.stX && (a = c.stX), a > f && (a = f), o < c.stY && (o = c.stY), o > u && (o = u) + } + s.css({left: a, top: o}) + } + if (t.resize && c.resizeStart) { + var a = i.clientX - c.offset[0], o = i.clientY - c.offset[1]; + i.preventDefault(), r.style(e.index, { + width: c.area[0] + a, + height: c.area[1] + o + }), c.isResize = !0, t.resizing && t.resizing(s) + } + }).on("mouseup", function (e) { + c.moveStart && (delete c.moveStart, o.moveElem.hide(), t.moveEnd && t.moveEnd(s)), c.resizeStart && (delete c.resizeStart, o.moveElem.hide()) + }), e + }, s.pt.callback = function () { + function e() { + var e = a.cancel && a.cancel(t.index, n); + e === !1 || r.close(t.index) + } + + var t = this, n = t.layero, a = t.config; + t.openLayer(), a.success && (2 == a.type ? n.find("iframe").on("load", function () { + a.success(n, t.index, t) + }) : a.success(n, t.index, t)), 6 == r.ie && t.IE6(n), n.find("." + l[6]).children("a").on("click", function () { + var e = i(this).index(); + if (0 === e) a.yes ? a.yes(t.index, n) : a.btn1 ? a.btn1(t.index, n) : r.close(t.index); else { + var o = a["btn" + (e + 1)] && a["btn" + (e + 1)](t.index, n); + o === !1 || r.close(t.index) + } + }), n.find("." + l[7]).on("click", e), a.shadeClose && t.shadeo.on("click", function () { + r.close(t.index) + }), n.find(".layui-layer-min").on("click", function () { + var e = a.min && a.min(n, t.index); + e === !1 || r.min(t.index, a) + }), n.find(".layui-layer-max").on("click", function () { + i(this).hasClass("layui-layer-maxmin") ? (r.restore(t.index), a.restore && a.restore(n, t.index)) : (r.full(t.index, a), setTimeout(function () { + a.full && a.full(n, t.index) + }, 100)) + }), a.end && (o.end[t.index] = a.end) + }, o.reselect = function () { + i.each(i("select"), function (e, t) { + var n = i(this); + n.parents("." + l[0])[0] || 1 == n.attr("layer") && i("." + l[0]).length < 1 && n.removeAttr("layer").show(), n = null + }) + }, s.pt.IE6 = function (e) { + i("select").each(function (e, t) { + var n = i(this); + n.parents("." + l[0])[0] || "none" === n.css("display") || n.attr({layer: "1"}).hide(), n = null + }) + }, s.pt.openLayer = function () { + var e = this; + r.zIndex = e.config.zIndex, r.setTop = function (e) { + var t = function () { + r.zIndex++, e.css("z-index", r.zIndex + 1) + }; + return r.zIndex = parseInt(e[0].style.zIndex), e.on("mousedown", t), r.zIndex + } + }, o.record = function (e) { + var t = [e.width(), e.height(), e.position().top, e.position().left + parseFloat(e.css("margin-left"))]; + e.find(".layui-layer-max").addClass("layui-layer-maxmin"), e.attr({area: t}) + }, o.rescollbar = function (e) { + l.html.attr("layer-full") == e && (l.html[0].style.removeProperty ? l.html[0].style.removeProperty("overflow") : l.html[0].style.removeAttribute("overflow"), l.html.removeAttr("layer-full")) + }, e.layer = r, r.getChildFrame = function (e, t) { + return t = t || i("." + l[4]).attr("times"), i("#" + l[0] + t).find("iframe").contents().find(e) + }, r.getFrameIndex = function (e) { + return i("#" + e).parents("." + l[4]).attr("times") + }, r.iframeAuto = function (e) { + if (e) { + var t = r.getChildFrame("html", e).outerHeight(), n = i("#" + l[0] + e), + a = n.find(l[1]).outerHeight() || 0, o = n.find("." + l[6]).outerHeight() || 0; + n.css({height: t + a + o}), n.find("iframe").css({height: t}) + } + }, r.iframeSrc = function (e, t) { + i("#" + l[0] + e).find("iframe").attr("src", t) + }, r.style = function (e, t, n) { + var a = i("#" + l[0] + e), r = a.find(".layui-layer-content"), s = a.attr("type"), + f = a.find(l[1]).outerHeight() || 0, c = a.find("." + l[6]).outerHeight() || 0; + a.attr("minLeft"); + s !== o.type[3] && s !== o.type[4] && (n || (parseFloat(t.width) <= 260 && (t.width = 260), parseFloat(t.height) - f - c <= 64 && (t.height = 64 + f + c)), a.css(t), c = a.find("." + l[6]).outerHeight(), s === o.type[2] ? a.find("iframe").css({height: parseFloat(t.height) - f - c}) : r.css({height: parseFloat(t.height) - f - c - parseFloat(r.css("padding-top")) - parseFloat(r.css("padding-bottom"))})) + }, r.min = function (e, t) { + t = t || {}; + var a = i("#" + l[0] + e), s = i("#" + l.SHADE + e), f = a.find(l[1]).outerHeight() || 0, + c = a.attr("minLeft") || 181 * o.minIndex + "px", u = a.css("position"), + d = {width: 180, height: f, position: "fixed", overflow: "hidden"}; + o.record(a), o.minLeft[0] && (c = o.minLeft[0], o.minLeft.shift()), t.minStack && (d.left = c, d.top = n.height() - f, a.attr("minLeft") || o.minIndex++, a.attr("minLeft", c)), a.attr("position", u), r.style(e, d, !0), a.find(".layui-layer-min").hide(), "page" === a.attr("type") && a.find(l[4]).hide(), o.rescollbar(e), s.hide() + }, r.restore = function (e) { + var t = i("#" + l[0] + e), n = i("#" + l.SHADE + e), a = t.attr("area").split(","); + t.attr("type"); + r.style(e, { + width: parseFloat(a[0]), + height: parseFloat(a[1]), + top: parseFloat(a[2]), + left: parseFloat(a[3]), + position: t.attr("position"), + overflow: "visible" + }, !0), t.find(".layui-layer-max").removeClass("layui-layer-maxmin"), t.find(".layui-layer-min").show(), "page" === t.attr("type") && t.find(l[4]).show(), o.rescollbar(e), n.show() + }, r.full = function (e) { + var t, a = i("#" + l[0] + e); + o.record(a), l.html.attr("layer-full") || l.html.css("overflow", "hidden").attr("layer-full", e), clearTimeout(t), t = setTimeout(function () { + var t = "fixed" === a.css("position"); + r.style(e, { + top: t ? 0 : n.scrollTop(), + left: t ? 0 : n.scrollLeft(), + width: n.width(), + height: n.height() + }, !0), a.find(".layui-layer-min").hide() + }, 100) + }, r.title = function (e, t) { + var n = i("#" + l[0] + (t || r.index)).find(l[1]); + n.html(e) + }, r.close = function (e, t) { + var n = i("#" + l[0] + e), a = n.attr("type"), s = "layer-anim-close"; + if (n[0]) { + var f = "layui-layer-wrap", c = function () { + if (a === o.type[1] && "object" === n.attr("conType")) { + n.children(":not(." + l[5] + ")").remove(); + for (var r = n.find("." + f), s = 0; s < 2; s++) r.unwrap(); + r.css("display", r.data("display")).removeClass(f) + } else { + if (a === o.type[2]) try { + var c = i("#" + l[4] + e)[0]; + c.contentWindow.document.write(""), c.contentWindow.close(), n.find("." + l[5])[0].removeChild(c) + } catch (u) { + } + n[0].innerHTML = "", n.remove() + } + "function" == typeof o.end[e] && o.end[e](), delete o.end[e], "function" == typeof t && t() + }; + n.data("isOutAnim") && n.addClass("layer-anim " + s), i("#layui-layer-moves, #" + l.SHADE + e).remove(), 6 == r.ie && o.reselect(), o.rescollbar(e), n.attr("minLeft") && (o.minIndex--, o.minLeft.push(n.attr("minLeft"))), r.ie && r.ie < 10 || !n.data("isOutAnim") ? c() : setTimeout(function () { + c() + }, 200) + } + }, r.closeAll = function (e, t) { + "function" == typeof e && (t = e, e = null); + var n = i("." + l[0]); + i.each(n, function (a) { + var o = i(this), s = e ? o.attr("type") === e : 1; + s && r.close(o.attr("times"), a === n.length - 1 ? t : null), s = null + }), 0 === n.length && "function" == typeof t && t() + }; + var f = r.cache || {}, c = function (e) { + return f.skin ? " " + f.skin + " " + f.skin + "-" + e : "" + }; + r.prompt = function (e, t) { + var a = ""; + if (e = e || {}, "function" == typeof e && (t = e), e.area) { + var o = e.area; + a = 'style="width: ' + o[0] + "; height: " + o[1] + ';"', delete e.area + } + var s, l = 2 == e.formType ? '" : function () { + return '' + }(), f = e.success; + return delete e.success, r.open(i.extend({ + type: 1, + btn: ["确定", "取消"], + content: l, + skin: "layui-layer-prompt" + c("prompt"), + maxWidth: n.width(), + success: function (t) { + s = t.find(".layui-layer-input"), s.val(e.value || "").focus(), "function" == typeof f && f(t) + }, + resize: !1, + yes: function (i) { + var n = s.val(); + "" === n ? s.focus() : n.length > (e.maxlength || 500) ? r.tips("最多输入" + (e.maxlength || 500) + "个字数", s, {tips: 1}) : t && t(n, i, s) + } + }, e)) + }, r.tab = function (e) { + e = e || {}; + var t = e.tab || {}, n = "layui-this", a = e.success; + return delete e.success, r.open(i.extend({ + type: 1, + skin: "layui-layer-tab" + c("tab"), + resize: !1, + title: function () { + var e = t.length, i = 1, a = ""; + if (e > 0) for (a = '' + t[0].title + ""; i < e; i++) a += "" + t[i].title + ""; + return a + }(), + content: '
    ' + function () { + var e = t.length, i = 1, a = ""; + if (e > 0) for (a = '
  • ' + (t[0].content || "no content") + "
  • "; i < e; i++) a += '
  • ' + (t[i].content || "no content") + "
  • "; + return a + }() + "
", + success: function (t) { + var o = t.find(".layui-layer-title").children(), r = t.find(".layui-layer-tabmain").children(); + o.on("mousedown", function (t) { + t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0; + var a = i(this), o = a.index(); + a.addClass(n).siblings().removeClass(n), r.eq(o).show().siblings().hide(), "function" == typeof e.change && e.change(o) + }), "function" == typeof a && a(t) + } + }, e)) + }, r.photos = function (t, n, a) { + function o(e, t, i) { + var n = new Image; + return n.src = e, n.complete ? t(n) : (n.onload = function () { + n.onload = null, t(n) + }, void (n.onerror = function (e) { + n.onerror = null, i(e) + })) + } + + var s = {}; + if (t = t || {}, t.photos) { + var l = !("string" == typeof t.photos || t.photos instanceof i), f = l ? t.photos : {}, u = f.data || [], + d = f.start || 0; + s.imgIndex = (0 | d) + 1, t.img = t.img || "img"; + var y = t.success; + if (delete t.success, l) { + if (0 === u.length) return r.msg("没有图片") + } else { + var p = i(t.photos), h = function () { + u = [], p.find(t.img).each(function (e) { + var t = i(this); + t.attr("layer-index", e), u.push({ + alt: t.attr("alt"), + pid: t.attr("layer-pid"), + src: t.attr("layer-src") || t.attr("src"), + thumb: t.attr("src") + }) + }) + }; + if (h(), 0 === u.length) return; + if (n || p.on("click", t.img, function () { + h(); + var e = i(this), n = e.attr("layer-index"); + r.photos(i.extend(t, {photos: {start: n, data: u, tab: t.tab}, full: t.full}), !0) + }), !n) return + } + s.imgprev = function (e) { + s.imgIndex--, s.imgIndex < 1 && (s.imgIndex = u.length), s.tabimg(e) + }, s.imgnext = function (e, t) { + s.imgIndex++, s.imgIndex > u.length && (s.imgIndex = 1, t) || s.tabimg(e) + }, s.keyup = function (e) { + if (!s.end) { + var t = e.keyCode; + e.preventDefault(), 37 === t ? s.imgprev(!0) : 39 === t ? s.imgnext(!0) : 27 === t && r.close(s.index) + } + }, s.tabimg = function (e) { + if (!(u.length <= 1)) return f.start = s.imgIndex - 1, r.close(s.index), r.photos(t, !0, e) + }, s.event = function () { + s.bigimg.find(".layui-layer-imgprev").on("click", function (e) { + e.preventDefault(), s.imgprev(!0) + }), s.bigimg.find(".layui-layer-imgnext").on("click", function (e) { + e.preventDefault(), s.imgnext(!0) + }), i(document).on("keyup", s.keyup) + }, s.loadi = r.load(1, {shade: !("shade" in t) && .9, scrollbar: !1}), o(u[d].src, function (n) { + r.close(s.loadi), a && (t.anim = -1), s.index = r.open(i.extend({ + type: 1, + id: "layui-layer-photos", + area: function () { + var a = [n.width, n.height], o = [i(e).width() - 100, i(e).height() - 100]; + if (!t.full && (a[0] > o[0] || a[1] > o[1])) { + var r = [a[0] / o[0], a[1] / o[1]]; + r[0] > r[1] ? (a[0] = a[0] / r[0], a[1] = a[1] / r[0]) : r[0] < r[1] && (a[0] = a[0] / r[1], a[1] = a[1] / r[1]) + } + return [a[0] + "px", a[1] + "px"] + }(), + title: !1, + shade: .9, + shadeClose: !0, + closeBtn: !1, + move: ".layui-layer-phimg img", + moveType: 1, + scrollbar: !1, + moveOut: !0, + anim: 5, + isOutAnim: !1, + skin: "layui-layer-photos" + c("photos"), + content: '
' + (u[d].alt || ' + function () { + return u.length > 1 ? '
' + (u[d].alt || "") + "" + s.imgIndex + " / " + u.length + "
" : "" + }() + "
", + success: function (e, i) { + s.bigimg = e.find(".layui-layer-phimg"), s.imgsee = e.find(".layui-layer-imgbar"), s.event(e), t.tab && t.tab(u[d], e), "function" == typeof y && y(e) + }, + end: function () { + s.end = !0, i(document).off("keyup", s.keyup) + } + }, t)) + }, function () { + r.close(s.loadi), r.msg("当前图片地址异常
是否继续查看下一张?", { + time: 3e4, + btn: ["下一张", "不看了"], + yes: function () { + u.length > 1 && s.imgnext(!0, !0) + } + }) + }) + } + }, o.run = function (t) { + i = t, n = i(e), l.html = i("html"), r.open = function (e) { + var t = new s(e); + return t.index + } + }, e.layui && layui.define ? (r.ready(), layui.define("jquery", function (t) { + r.path = layui.cache.dir, o.run(layui.$), e.layer = r, t("layer", r) + })) : "function" == typeof define && define.amd ? define(["jquery"], function () { + return o.run(e.jQuery), r + }) : function () { + r.ready(), o.run(e.jQuery) + }() +}(window); +layui.define("jquery", function (e) { + "use strict"; + var t = layui.$, i = layui.hint(), n = { + fixbar: function (e) { + var i, n, r = "layui-fixbar", a = "layui-fixbar-top", o = t(document), l = t("body"); + e = t.extend({showHeight: 200}, e), e.bar1 = e.bar1 === !0 ? "" : e.bar1, e.bar2 = e.bar2 === !0 ? "" : e.bar2, e.bgcolor = e.bgcolor ? "background-color:" + e.bgcolor : ""; + var c = [e.bar1, e.bar2, ""], + g = t(['
    ', e.bar1 ? '
  • ' + c[0] + "
  • " : "", e.bar2 ? '
  • ' + c[1] + "
  • " : "", '
  • ' + c[2] + "
  • ", "
"].join("")), + u = g.find("." + a), s = function () { + var t = o.scrollTop(); + t >= e.showHeight ? i || (u.show(), i = 1) : i && (u.hide(), i = 0) + }; + t("." + r)[0] || ("object" == typeof e.css && g.css(e.css), l.append(g), s(), g.find("li").on("click", function () { + var i = t(this), n = i.attr("lay-type"); + "top" === n && t("html,body").animate({scrollTop: 0}, 200), e.click && e.click.call(this, n) + }), o.on("scroll", function () { + clearTimeout(n), n = setTimeout(function () { + s() + }, 100) + })) + }, countdown: function (e, t, i) { + var n = this, r = "function" == typeof t, a = new Date(e).getTime(), + o = new Date(!t || r ? (new Date).getTime() : t).getTime(), l = a - o, + c = [Math.floor(l / 864e5), Math.floor(l / 36e5) % 24, Math.floor(l / 6e4) % 60, Math.floor(l / 1e3) % 60]; + r && (i = t); + var g = setTimeout(function () { + n.countdown(e, o + 1e3, i) + }, 1e3); + return i && i(l > 0 ? c : [0, 0, 0, 0], t, g), l <= 0 && clearTimeout(g), g + }, timeAgo: function (e, t) { + var i = this, n = [[], []], r = (new Date).getTime() - new Date(e).getTime(); + return r > 26784e5 ? (r = new Date(e), n[0][0] = i.digit(r.getFullYear(), 4), n[0][1] = i.digit(r.getMonth() + 1), n[0][2] = i.digit(r.getDate()), t || (n[1][0] = i.digit(r.getHours()), n[1][1] = i.digit(r.getMinutes()), n[1][2] = i.digit(r.getSeconds())), n[0].join("-") + " " + n[1].join(":")) : r >= 864e5 ? (r / 1e3 / 60 / 60 / 24 | 0) + "\u5929\u524d" : r >= 36e5 ? (r / 1e3 / 60 / 60 | 0) + "\u5c0f\u65f6\u524d" : r >= 18e4 ? (r / 1e3 / 60 | 0) + "\u5206\u949f\u524d" : r < 0 ? "\u672a\u6765" : "\u521a\u521a" + }, digit: function (e, t) { + var i = ""; + e = String(e), t = t || 2; + for (var n = e.length; n < t; n++) i += "0"; + return e < Math.pow(10, t) ? i + (0 | e) : e + }, toDateString: function (e, t) { + if (null === e || "" === e) return ""; + var n = this, r = new Date(function () { + if (e) return isNaN(e) ? e : "string" == typeof e ? parseInt(e) : e + }() || new Date), a = [n.digit(r.getFullYear(), 4), n.digit(r.getMonth() + 1), n.digit(r.getDate())], + o = [n.digit(r.getHours()), n.digit(r.getMinutes()), n.digit(r.getSeconds())]; + return r.getDate() ? (t = t || "yyyy-MM-dd HH:mm:ss", t.replace(/yyyy/g, a[0]).replace(/MM/g, a[1]).replace(/dd/g, a[2]).replace(/HH/g, o[0]).replace(/mm/g, o[1]).replace(/ss/g, o[2])) : (i.error('Invalid Msec for "util.toDateString(Msec)"'), "") + }, escape: function (e) { + return String(e || "").replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&").replace(//g, ">").replace(/'/g, "'").replace(/"/g, """) + }, unescape: function (e) { + return String(e || "").replace(/\&/g, "&").replace(/\</g, "<").replace(/\>/g, ">").replace(/\'/, "'").replace(/\"/, '"') + }, toVisibleArea: function (e) { + if (e = t.extend({margin: 160, duration: 200, type: "y"}, e), e.scrollElem[0] && e.thisElem[0]) { + var i = e.scrollElem, n = e.thisElem, r = "y" === e.type, a = r ? "scrollTop" : "scrollLeft", + o = r ? "top" : "left", l = i[a](), c = i[r ? "height" : "width"](), g = i.offset()[o], + u = n.offset()[o] - g, s = {}; + (u > c - e.margin || u < e.margin) && (s[a] = u - c / 2 + l, i.animate(s, e.duration)) + } + }, event: function (e, i, r) { + var a = t("body"); + return r = r || "click", i = n.event[e] = t.extend(!0, n.event[e], i) || {}, n.event.UTIL_EVENT_CALLBACK = n.event.UTIL_EVENT_CALLBACK || {}, a.off(r, "*[" + e + "]", n.event.UTIL_EVENT_CALLBACK[e]), n.event.UTIL_EVENT_CALLBACK[e] = function () { + var n = t(this), r = n.attr(e); + "function" == typeof i[r] && i[r].call(this, n) + }, a.on(r, "*[" + e + "]", n.event.UTIL_EVENT_CALLBACK[e]), i + } + }; + e("util", n) +}); +layui.define("jquery", function (t) { + "use strict"; + var i = layui.$, a = (layui.hint(), layui.device()), e = "element", l = "layui-this", n = "layui-show", + s = function () { + this.config = {} + }; + s.prototype.set = function (t) { + var a = this; + return i.extend(!0, a.config, t), a + }, s.prototype.on = function (t, i) { + return layui.onevent.call(this, e, t, i) + }, s.prototype.tabAdd = function (t, a) { + var e = ".layui-tab-title", l = i(".layui-tab[lay-filter=" + t + "]"), n = l.children(e), + s = n.children(".layui-tab-bar"), o = l.children(".layui-tab-content"), r = " 0 && t.unshift(""), t.join(" ") + }() + ">" + (a.title || "unnaming") + ""; + return s[0] ? s.before(r) : n.append(r), o.append('
' + (a.content || "") + "
"), b.hideTabMore(!0), b.tabAuto(), this + }, s.prototype.tabDelete = function (t, a) { + var e = ".layui-tab-title", l = i(".layui-tab[lay-filter=" + t + "]"), n = l.children(e), + s = n.find('>li[lay-id="' + a + '"]'); + return b.tabDelete(null, s), this + }, s.prototype.tabChange = function (t, a) { + var e = ".layui-tab-title", l = i(".layui-tab[lay-filter=" + t + "]"), n = l.children(e), + s = n.find('>li[lay-id="' + a + '"]'); + return b.tabClick.call(s[0], null, null, s), this + }, s.prototype.tab = function (t) { + t = t || {}, m.on("click", t.headerElem, function (a) { + var e = i(this).index(); + b.tabClick.call(this, a, e, null, t) + }) + }, s.prototype.progress = function (t, a) { + var e = "layui-progress", l = i("." + e + "[lay-filter=" + t + "]"), n = l.find("." + e + "-bar"), + s = n.find("." + e + "-text"); + return n.css("width", a).attr("lay-percent", a), s.text(a), this + }; + var o = ".layui-nav", r = "layui-nav-item", c = "layui-nav-bar", u = "layui-nav-tree", y = "layui-nav-child", + d = "layui-nav-child-c", f = "layui-nav-more", h = "layui-icon-down", p = "layui-anim layui-anim-upbit", b = { + tabClick: function (t, a, s, o) { + o = o || {}; + var r = s || i(this), a = a || r.parent().children("li").index(r), + c = o.headerElem ? r.parent() : r.parents(".layui-tab").eq(0), + u = o.bodyElem ? i(o.bodyElem) : c.children(".layui-tab-content").children(".layui-tab-item"), + y = r.find("a"), d = "javascript:;" !== y.attr("href") && "_blank" === y.attr("target"), + f = "string" == typeof r.attr("lay-unselect"), h = c.attr("lay-filter"); + d || f || (r.addClass(l).siblings().removeClass(l), u.eq(a).addClass(n).siblings().removeClass(n)), layui.event.call(this, e, "tab(" + h + ")", { + elem: c, + index: a + }) + }, tabDelete: function (t, a) { + var n = a || i(this).parent(), s = n.index(), o = n.parents(".layui-tab").eq(0), + r = o.children(".layui-tab-content").children(".layui-tab-item"), c = o.attr("lay-filter"); + n.hasClass(l) && (n.next()[0] ? b.tabClick.call(n.next()[0], null, s + 1) : n.prev()[0] && b.tabClick.call(n.prev()[0], null, s - 1)), n.remove(), r.eq(s).remove(), setTimeout(function () { + b.tabAuto() + }, 50), layui.event.call(this, e, "tabDelete(" + c + ")", {elem: o, index: s}) + }, tabAuto: function () { + var t = "layui-tab-more", e = "layui-tab-bar", l = "layui-tab-close", n = this; + i(".layui-tab").each(function () { + var s = i(this), o = s.children(".layui-tab-title"), + r = (s.children(".layui-tab-content").children(".layui-tab-item"), 'lay-stope="tabmore"'), + c = i(''); + if (n === window && 8 != a.ie && b.hideTabMore(!0), s.attr("lay-allowClose") && o.find("li").each(function () { + var t = i(this); + if (!t.find("." + l)[0]) { + var a = i(''); + a.on("click", b.tabDelete), t.append(a) + } + }), "string" != typeof s.attr("lay-unauto")) if (o.prop("scrollWidth") > o.outerWidth() + 1) { + if (o.find("." + e)[0]) return; + o.append(c), s.attr("overflow", ""), c.on("click", function (i) { + o[this.title ? "removeClass" : "addClass"](t), this.title = this.title ? "" : "\u6536\u7f29" + }) + } else o.find("." + e).remove(), s.removeAttr("overflow") + }) + }, hideTabMore: function (t) { + var a = i(".layui-tab-title"); + t !== !0 && "tabmore" === i(t.target).attr("lay-stope") || (a.removeClass("layui-tab-more"), a.find(".layui-tab-bar").attr("title", "")) + }, clickThis: function () { + var t = i(this), a = t.parents(o), n = a.attr("lay-filter"), s = t.parent(), c = t.siblings("." + y), + d = "string" == typeof s.attr("lay-unselect"); + "javascript:;" !== t.attr("href") && "_blank" === t.attr("target") || d || c[0] || (a.find("." + l).removeClass(l), s.addClass(l)), a.hasClass(u) && (c.removeClass(p), c[0] && (s["none" === c.css("display") ? "addClass" : "removeClass"](r + "ed"), "all" === a.attr("lay-shrink") && s.siblings().removeClass(r + "ed"))), layui.event.call(this, e, "nav(" + n + ")", t) + }, collapse: function () { + var t = i(this), a = t.find(".layui-colla-icon"), l = t.siblings(".layui-colla-content"), + s = t.parents(".layui-collapse").eq(0), o = s.attr("lay-filter"), r = "none" === l.css("display"); + if ("string" == typeof s.attr("lay-accordion")) { + var c = s.children(".layui-colla-item").children("." + n); + c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""), c.removeClass(n) + } + l[r ? "addClass" : "removeClass"](n), a.html(r ? "" : ""), layui.event.call(this, e, "collapse(" + o + ")", { + title: t, + content: l, + show: r + }) + } + }; + s.prototype.init = function (t, e) { + var l = function () { + return e ? '[lay-filter="' + e + '"]' : "" + }(), s = { + tab: function () { + b.tabAuto.call({}) + }, nav: function () { + var t = 200, e = {}, s = {}, v = {}, m = "layui-nav-title", C = function (l, o, r) { + var c = i(this), h = c.find("." + y); + if (o.hasClass(u)) { + if (!h[0]) { + var b = c.children("." + m); + l.css({ + top: c.offset().top - o.offset().top, + height: (b[0] ? b : c).outerHeight(), + opacity: 1 + }) + } + } else h.addClass(p), h.hasClass(d) && h.css({left: -(h.outerWidth() - c.width()) / 2}), h[0] ? l.css({ + left: l.position().left + l.width() / 2, + width: 0, + opacity: 0 + }) : l.css({ + left: c.position().left + parseFloat(c.css("marginLeft")), + top: c.position().top + c.height() - l.height() + }), e[r] = setTimeout(function () { + l.css({width: h[0] ? 0 : c.width(), opacity: h[0] ? 0 : 1}) + }, a.ie && a.ie < 10 ? 0 : t), clearTimeout(v[r]), "block" === h.css("display") && clearTimeout(s[r]), s[r] = setTimeout(function () { + h.addClass(n), c.find("." + f).addClass(f + "d") + }, 300) + }; + i(o + l).each(function (a) { + var l = i(this), o = i(''), d = l.find("." + r); + l.find("." + c)[0] || (l.append(o), (l.hasClass(u) ? d.find("dd,>." + m) : d).on("mouseenter", function () { + C.call(this, o, l, a) + }).on("mouseleave", function () { + l.hasClass(u) ? o.css({ + height: 0, + opacity: 0 + }) : (clearTimeout(s[a]), s[a] = setTimeout(function () { + l.find("." + y).removeClass(n), l.find("." + f).removeClass(f + "d") + }, 300)) + }), l.on("mouseleave", function () { + clearTimeout(e[a]), v[a] = setTimeout(function () { + l.hasClass(u) || o.css({width: 0, left: o.position().left + o.width() / 2, opacity: 0}) + }, t) + })), d.find("a").each(function () { + var t = i(this), a = (t.parent(), t.siblings("." + y)); + a[0] && !t.children("." + f)[0] && t.append(''), t.off("click", b.clickThis).on("click", b.clickThis) + }) + }) + }, breadcrumb: function () { + var t = ".layui-breadcrumb"; + i(t + l).each(function () { + var t = i(this), a = "lay-separator", e = t.attr(a) || "/", l = t.find("a"); + l.next("span[" + a + "]")[0] || (l.each(function (t) { + t !== l.length - 1 && i(this).after("" + e + "") + }), t.css("visibility", "visible")) + }) + }, progress: function () { + var t = "layui-progress"; + i("." + t + l).each(function () { + var a = i(this), e = a.find(".layui-progress-bar"), l = e.attr("lay-percent"); + e.css("width", function () { + return /^.+\/.+$/.test(l) ? 100 * new Function("return " + l)() + "%" : l + }()), a.attr("lay-showPercent") && setTimeout(function () { + e.html('' + l + "") + }, 350) + }) + }, collapse: function () { + var t = "layui-collapse"; + i("." + t + l).each(function () { + var t = i(this).find(".layui-colla-item"); + t.each(function () { + var t = i(this), a = t.find(".layui-colla-title"), e = t.find(".layui-colla-content"), + l = "none" === e.css("display"); + a.find(".layui-colla-icon").remove(), a.append('' + (l ? "" : "") + ""), a.off("click", b.collapse).on("click", b.collapse) + }) + }) + } + }; + return s[t] ? s[t]() : layui.each(s, function (t, i) { + i() + }) + }, s.prototype.render = s.prototype.init; + var v = new s, m = i(document); + i(function () { + v.render() + }); + var C = ".layui-tab-title li"; + m.on("click", C, b.tabClick), m.on("click", b.hideTabMore), i(window).on("resize", b.tabAuto), t(e, v) +}); +layui.define("layer", function (e) { + "use strict"; + var t = layui.$, i = layui.layer, n = layui.hint(), o = layui.device(), a = { + config: {}, set: function (e) { + var i = this; + return i.config = t.extend({}, i.config, e), i + }, on: function (e, t) { + return layui.onevent.call(this, r, e, t) + } + }, l = function () { + var e = this; + return { + upload: function (t) { + e.upload.call(e, t) + }, reload: function (t) { + e.reload.call(e, t) + }, config: e.config + } + }, r = "upload", u = "layui-upload-file", c = "layui-upload-form", f = "layui-upload-iframe", + s = "layui-upload-choose", p = function (e) { + var i = this; + i.config = t.extend({}, i.config, a.config, e), i.render() + }; + p.prototype.config = { + accept: "images", + exts: "", + auto: !0, + bindAction: "", + url: "", + field: "file", + acceptMime: "", + method: "post", + data: {}, + drag: !0, + size: 0, + number: 0, + multiple: !1 + }, p.prototype.render = function (e) { + var i = this, e = i.config; + e.elem = t(e.elem), e.bindAction = t(e.bindAction), i.file(), i.events() + }, p.prototype.file = function () { + var e = this, i = e.config, + n = e.elemFile = t(['"].join("")), + a = i.elem.next(); + (a.hasClass(u) || a.hasClass(c)) && a.remove(), o.ie && o.ie < 10 && i.elem.wrap('
'), e.isFile() ? (e.elemFile = i.elem, i.field = i.elem[0].name) : i.elem.after(n), o.ie && o.ie < 10 && e.initIE() + }, p.prototype.initIE = function () { + var e = this, i = e.config, + n = t(''), + o = t(['
', ""].join("")); + t("#" + f)[0] || t("body").append(n), i.elem.next().hasClass(c) || (e.elemFile.wrap(o), i.elem.next("." + c).append(function () { + var e = []; + return layui.each(i.data, function (t, i) { + i = "function" == typeof i ? i() : i, e.push('') + }), e.join("") + }())) + }, p.prototype.msg = function (e) { + return i.msg(e, {icon: 2, shift: 6}) + }, p.prototype.isFile = function () { + var e = this.config.elem[0]; + if (e) return "input" === e.tagName.toLocaleLowerCase() && "file" === e.type + }, p.prototype.preview = function (e) { + var t = this; + window.FileReader && layui.each(t.chooseFiles, function (t, i) { + var n = new FileReader; + n.readAsDataURL(i), n.onload = function () { + e && e(t, i, this.result) + } + }) + }, p.prototype.upload = function (e, i) { + var n, a = this, l = a.config, r = a.elemFile[0], u = function () { + var i = 0, n = 0, o = e || a.files || a.chooseFiles || r.files, u = function () { + l.multiple && i + n === a.fileLength && "function" == typeof l.allDone && l.allDone({ + total: a.fileLength, + successful: i, + aborted: n + }) + }; + layui.each(o, function (e, o) { + var r = new FormData; + r.append(l.field, o), layui.each(l.data, function (e, t) { + t = "function" == typeof t ? t() : t, r.append(e, t) + }); + var c = { + url: l.url, + type: "post", + data: r, + contentType: !1, + processData: !1, + dataType: "json", + headers: l.headers || {}, + success: function (t) { + i++, d(e, t), u() + }, + error: function () { + n++, a.msg("\u8bf7\u6c42\u4e0a\u4f20\u63a5\u53e3\u51fa\u73b0\u5f02\u5e38"), m(e), u() + } + }; + "function" == typeof l.progress && (c.xhr = function () { + var i = t.ajaxSettings.xhr(); + return i.upload.addEventListener("progress", function (t) { + if (t.lengthComputable) { + var i = Math.floor(t.loaded / t.total * 100); + l.progress(i, l.item ? l.item[0] : l.elem[0], t, e) + } + }), i + }), t.ajax(c) + }) + }, c = function () { + var e = t("#" + f); + a.elemFile.parent().submit(), clearInterval(p.timer), p.timer = setInterval(function () { + var t, i = e.contents().find("body"); + try { + t = i.text() + } catch (n) { + a.msg("\u83b7\u53d6\u4e0a\u4f20\u540e\u7684\u54cd\u5e94\u4fe1\u606f\u51fa\u73b0\u5f02\u5e38"), clearInterval(p.timer), m() + } + t && (clearInterval(p.timer), i.html(""), d(0, t)) + }, 30) + }, d = function (e, t) { + if (a.elemFile.next("." + s).remove(), r.value = "", "object" != typeof t) try { + t = JSON.parse(t) + } catch (i) { + return t = {}, a.msg("\u8bf7\u5bf9\u4e0a\u4f20\u63a5\u53e3\u8fd4\u56de\u6709\u6548JSON") + } + "function" == typeof l.done && l.done(t, e || 0, function (e) { + a.upload(e) + }) + }, m = function (e) { + l.auto && (r.value = ""), "function" == typeof l.error && l.error(e || 0, function (e) { + a.upload(e) + }) + }, h = l.exts, v = function () { + var t = []; + return layui.each(e || a.chooseFiles, function (e, i) { + t.push(i.name) + }), t + }(), g = { + preview: function (e) { + a.preview(e) + }, upload: function (e, t) { + var i = {}; + i[e] = t, a.upload(i) + }, pushFile: function () { + return a.files = a.files || {}, layui.each(a.chooseFiles, function (e, t) { + a.files[e] = t + }), a.files + }, resetFile: function (e, t, i) { + var n = new File([t], i); + a.files = a.files || {}, a.files[e] = n + } + }, y = function () { + if (!(("choose" === i || l.auto) && (l.choose && l.choose(g), "choose" === i) || l.before && l.before(g) === !1)) return o.ie ? o.ie > 9 ? u() : c() : void u() + }; + if (v = 0 === v.length ? r.value.match(/[^\/\\]+\..+/g) || [] || "" : v, 0 !== v.length) { + switch (l.accept) { + case"file": + if (h && !RegExp("\\w\\.(" + h + ")$", "i").test(escape(v))) return a.msg("\u9009\u62e9\u7684\u6587\u4ef6\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"), r.value = ""; + break; + case"video": + if (!RegExp("\\w\\.(" + (h || "avi|mp4|wma|rmvb|rm|flash|3gp|flv") + ")$", "i").test(escape(v))) return a.msg("\u9009\u62e9\u7684\u89c6\u9891\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"), r.value = ""; + break; + case"audio": + if (!RegExp("\\w\\.(" + (h || "mp3|wav|mid") + ")$", "i").test(escape(v))) return a.msg("\u9009\u62e9\u7684\u97f3\u9891\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"), r.value = ""; + break; + default: + if (layui.each(v, function (e, t) { + RegExp("\\w\\.(" + (h || "jpg|png|gif|bmp|jpeg$") + ")", "i").test(escape(t)) || (n = !0) + }), n) return a.msg("\u9009\u62e9\u7684\u56fe\u7247\u4e2d\u5305\u542b\u4e0d\u652f\u6301\u7684\u683c\u5f0f"), r.value = "" + } + if (a.fileLength = function () { + var t = 0, i = e || a.files || a.chooseFiles || r.files; + return layui.each(i, function () { + t++ + }), t + }(), l.number && a.fileLength > l.number) return a.msg("\u540c\u65f6\u6700\u591a\u53ea\u80fd\u4e0a\u4f20\u7684\u6570\u91cf\u4e3a\uff1a" + l.number); + if (l.size > 0 && !(o.ie && o.ie < 10)) { + var F; + if (layui.each(a.chooseFiles, function (e, t) { + if (t.size > 1024 * l.size) { + var i = l.size / 1024; + i = i >= 1 ? i.toFixed(2) + "MB" : l.size + "KB", r.value = "", F = i + } + }), F) return a.msg("\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7" + F) + } + y() + } + }, p.prototype.reload = function (e) { + e = e || {}, delete e.elem, delete e.bindAction; + var i = this, e = i.config = t.extend({}, i.config, a.config, e), n = e.elem.next(); + n.attr({name: e.name, accept: e.acceptMime, multiple: e.multiple}) + }, p.prototype.events = function () { + var e = this, i = e.config, a = function (t) { + e.chooseFiles = {}, layui.each(t, function (t, i) { + var n = (new Date).getTime(); + e.chooseFiles[n + "-" + t] = i + }) + }, l = function (t, n) { + var o = e.elemFile, + a = (i.item ? i.item : i.elem, t.length > 1 ? t.length + "\u4e2a\u6587\u4ef6" : (t[0] || {}).name || o[0].value.match(/[^\/\\]+\..+/g) || [] || ""); + o.next().hasClass(s) && o.next().remove(), e.upload(null, "choose"), e.isFile() || i.choose || o.after('' + a + "") + }; + i.elem.off("upload.start").on("upload.start", function () { + var o = t(this), a = o.attr("lay-data"); + if (a) try { + a = new Function("return " + a)(), e.config = t.extend({}, i, a) + } catch (l) { + n.error("Upload element property lay-data configuration item has a syntax error: " + a) + } + e.config.item = o, e.elemFile[0].click() + }), o.ie && o.ie < 10 || i.elem.off("upload.over").on("upload.over", function () { + var e = t(this); + e.attr("lay-over", "") + }).off("upload.leave").on("upload.leave", function () { + var e = t(this); + e.removeAttr("lay-over") + }).off("upload.drop").on("upload.drop", function (n, o) { + var r = t(this), u = o.originalEvent.dataTransfer.files || []; + r.removeAttr("lay-over"), a(u), i.auto ? e.upload(u) : l(u) + }), e.elemFile.off("upload.change").on("upload.change", function () { + var t = this.files || []; + a(t), i.auto ? e.upload() : l(t) + }), i.bindAction.off("upload.action").on("upload.action", function () { + e.upload() + }), i.elem.data("haveEvents") || (e.elemFile.on("change", function () { + t(this).trigger("upload.change") + }), i.elem.on("click", function () { + e.isFile() || t(this).trigger("upload.start") + }), i.drag && i.elem.on("dragover", function (e) { + e.preventDefault(), t(this).trigger("upload.over") + }).on("dragleave", function (e) { + t(this).trigger("upload.leave") + }).on("drop", function (e) { + e.preventDefault(), t(this).trigger("upload.drop", e) + }), i.bindAction.on("click", function () { + t(this).trigger("upload.action") + }), i.elem.data("haveEvents", !0)) + }, a.render = function (e) { + var t = new p(e); + return l.call(t) + }, e(r, a) +}); +layui.define(["jquery", "laytpl", "lay"], function (e) { + "use strict"; + var i = layui.$, n = layui.laytpl, t = layui.hint(), a = layui.device(), l = a.mobile ? "click" : "mousedown", + r = "dropdown", o = "layui_" + r + "_index", u = { + config: {}, index: layui[r] ? layui[r].index + 1e4 : 0, set: function (e) { + var n = this; + return n.config = i.extend({}, n.config, e), n + }, on: function (e, i) { + return layui.onevent.call(this, r, e, i) + } + }, d = function () { + var e = this, i = e.config, n = i.id; + return d.that[n] = e, { + config: i, reload: function (i) { + e.reload.call(e, i) + } + } + }, s = "layui-dropdown", m = "layui-menu-item-up", c = "layui-menu-item-down", p = "layui-menu-body-title", + y = "layui-menu-item-group", f = "layui-menu-item-parent", v = "layui-menu-item-divider", + g = "layui-menu-item-checked", h = "layui-menu-item-checked2", w = "layui-menu-body-panel", + C = "layui-menu-body-panel-left", V = "." + y + ">." + p, k = function (e) { + var n = this; + n.index = ++u.index, n.config = i.extend({}, n.config, u.config, e), n.init() + }; + k.prototype.config = { + trigger: "click", + content: "", + className: "", + style: "", + show: !1, + isAllowSpread: !0, + isSpreadItem: !0, + data: [], + delay: 300 + }, k.prototype.reload = function (e) { + var n = this; + n.config = i.extend({}, n.config, e), n.init(!0) + }, k.prototype.init = function (e) { + var n = this, t = n.config, a = t.elem = i(t.elem); + if (a.length > 1) return layui.each(a, function () { + u.render(i.extend({}, t, {elem: this})) + }), n; + if (!e && a[0] && a.data(o)) { + var l = d.getThis(a.data(o)); + if (!l) return; + return l.reload(t) + } + t.id = "id" in t ? t.id : n.index, t.show && n.render(e), n.events() + }, k.prototype.render = function (e) { + var t = this, a = t.config, r = i("body"), s = function () { + var e = i('
    '); + return a.data.length > 0 ? m(e, a.data) : e.html('
  • no menu
  • '), e + }, m = function (e, t) { + return layui.each(t, function (t, l) { + var r = l.child && l.child.length > 0, o = "isSpreadItem" in l ? l.isSpreadItem : a.isSpreadItem, + u = l.templet ? n(l.templet).render(l) : a.templet ? n(a.templet).render(l) : l.title, + d = function () { + return r && (l.type = l.type || "parent"), l.type ? { + group: "group", + parent: "parent", + "-": "-" + }[l.type] || "parent" : "" + }(); + if ("-" === d || l.title || l.id || r) { + var s = i(["", function () { + var e = "href" in l ? '' + u + "" : u; + return r ? '
    ' + e + function () { + return "parent" === d ? '' : "group" === d && a.isAllowSpread ? '' : "" + }() + "
    " : '
    ' + e + "
    " + }(), ""].join("")); + if (s.data("item", l), r) { + var c = i('
    '), y = i("
      "); + "parent" === d ? (c.append(m(y, l.child)), s.append(c)) : s.append(m(y, l.child)) + } + e.append(s) + } + }), e + }, + c = ['
      ', "
      "].join(""); + ("contextmenu" === a.trigger || lay.isTopElem(a.elem[0])) && (e = !0), !e && a.elem.data(o + "_opened") || (t.elemView = i(c), t.elemView.append(a.content || s()), a.className && t.elemView.addClass(a.className), a.style && t.elemView.attr("style", a.style), u.thisId = a.id, t.remove(), r.append(t.elemView), a.elem.data(o + "_opened", !0), t.position(), d.prevElem = t.elemView, d.prevElem.data("prevElem", a.elem), t.elemView.find(".layui-menu").on(l, function (e) { + layui.stope(e) + }), t.elemView.find(".layui-menu li").on("click", function (e) { + var n = i(this), l = n.data("item") || {}, r = l.child && l.child.length > 0; + r || "-" === l.type || (t.remove(), "function" == typeof a.click && a.click(l, n)) + }), t.elemView.find(V).on("click", function (e) { + var n = i(this), t = n.parent(), l = t.data("item") || {}; + "group" === l.type && a.isAllowSpread && d.spread(t) + }), "mouseenter" === a.trigger && t.elemView.on("mouseenter", function () { + clearTimeout(d.timer) + }).on("mouseleave", function () { + t.delayRemove() + })) + }, k.prototype.position = function (e) { + var i = this, n = i.config; + lay.position(n.elem[0], i.elemView[0], { + position: n.position, + e: i.e, + clickType: "contextmenu" === n.trigger ? "right" : null, + align: n.align || null + }) + }, k.prototype.remove = function () { + var e = this, i = (e.config, d.prevElem); + i && (i.data("prevElem") && i.data("prevElem").data(o + "_opened", !1), i.remove()) + }, k.prototype.delayRemove = function () { + var e = this, i = e.config; + clearTimeout(d.timer), d.timer = setTimeout(function () { + e.remove() + }, i.delay) + }, k.prototype.events = function () { + var e = this, i = e.config; + "hover" === i.trigger && (i.trigger = "mouseenter"), e.prevElem && e.prevElem.off(i.trigger, e.prevElemCallback), e.prevElem = i.elem, e.prevElemCallback = function (n) { + clearTimeout(d.timer), e.e = n, e.render(), n.preventDefault(), "function" == typeof i.ready && i.ready(e.elemView, i.elem, e.e.target) + }, i.elem.on(i.trigger, e.prevElemCallback), "mouseenter" === i.trigger && i.elem.on("mouseleave", function () { + e.delayRemove() + }) + }, d.that = {}, d.getThis = function (e) { + var i = d.that[e]; + return i || t.error(e ? r + " instance with ID '" + e + "' not found" : "ID argument required"), i + }, d.spread = function (e) { + var i = e.children("." + p).find(".layui-icon"); + e.hasClass(m) ? (e.removeClass(m).addClass(c), i.removeClass("layui-icon-down").addClass("layui-icon-up")) : (e.removeClass(c).addClass(m), i.removeClass("layui-icon-up").addClass("layui-icon-down")) + }, !function () { + var e = i(window), n = i(document); + e.on("resize", function () { + if (u.thisId) { + var e = d.getThis(u.thisId); + if (e) { + if (!e.elemView[0] || !i("." + s)[0]) return !1; + var n = e.config; + "contextmenu" === n.trigger ? e.remove() : e.position() + } + } + }), n.on(l, function (e) { + if (u.thisId) { + var i = d.getThis(u.thisId); + if (i) { + var n = i.config; + !lay.isTopElem(n.elem[0]) && "contextmenu" !== n.trigger && (e.target === n.elem[0] || n.elem.find(e.target)[0] || e.target === i.elemView[0] || i.elemView && i.elemView.find(e.target)[0]) || i.remove() + } + } + }); + var t = ".layui-menu:not(.layui-dropdown-menu) li"; + n.on("click", t, function (e) { + var n = i(this), t = n.parents(".layui-menu").eq(0), a = n.hasClass(y) || n.hasClass(f), + l = t.attr("lay-filter") || t.attr("id"), o = lay.options(this); + n.hasClass(v) || a || (t.find("." + g).removeClass(g), t.find("." + h).removeClass(h), n.addClass(g), n.parents("." + f).addClass(h), layui.event.call(this, r, "click(" + l + ")", o)) + }), n.on("click", t + V, function (e) { + var n = i(this), t = n.parents("." + y + ":eq(0)"), a = lay.options(t[0]); + "isAllowSpread" in a && !a.isAllowSpread || d.spread(t) + }); + var a = ".layui-menu ." + f; + n.on("mouseenter", a, function (n) { + var t = i(this), a = t.find("." + w); + if (a[0]) { + var l = a[0].getBoundingClientRect(); + l.right > e.width() && (a.addClass(C), l = a[0].getBoundingClientRect(), l.left < 0 && a.removeClass(C)), l.bottom > e.height() && a.eq(0).css("margin-top", -(l.bottom - e.height())) + } + }).on("mouseleave", a, function (e) { + var n = i(this), t = n.children("." + w); + t.removeClass(C), t.css("margin-top", 0) + }) + }(), u.reload = function (e, i) { + var n = d.getThis(e); + return n ? (n.reload(i), d.call(n)) : this + }, u.render = function (e) { + var i = new k(e); + return d.call(i) + }, e(r, u) +}); +layui.define("jquery", function (e) { + "use strict"; + var i = layui.jquery, t = { + config: {}, index: layui.slider ? layui.slider.index + 1e4 : 0, set: function (e) { + var t = this; + return t.config = i.extend({}, t.config, e), t + }, on: function (e, i) { + return layui.onevent.call(this, n, e, i) + } + }, a = function () { + var e = this, i = e.config; + return { + setValue: function (t, a) { + return i.value = t, e.slide("set", t, a || 0) + }, config: i + } + }, n = "slider", l = "layui-disabled", s = "layui-slider", r = "layui-slider-bar", o = "layui-slider-wrap", + u = "layui-slider-wrap-btn", d = "layui-slider-tips", v = "layui-slider-input", c = "layui-slider-input-txt", + p = "layui-slider-input-btn", m = "layui-slider-hover", f = function (e) { + var a = this; + a.index = ++t.index, a.config = i.extend({}, a.config, t.config, e), a.render() + }; + f.prototype.config = { + type: "default", + min: 0, + max: 100, + value: 0, + step: 1, + showstep: !1, + tips: !0, + input: !1, + range: !1, + height: 200, + disabled: !1, + theme: "#009688" + }, f.prototype.render = function () { + var e = this, t = e.config; + if (t.step < 1 && (t.step = 1), t.max < t.min && (t.max = t.min + t.step), t.range) { + t.value = "object" == typeof t.value ? t.value : [t.min, t.value]; + var a = Math.min(t.value[0], t.value[1]), n = Math.max(t.value[0], t.value[1]); + t.value[0] = a > t.min ? a : t.min, t.value[1] = n > t.min ? n : t.min, t.value[0] = t.value[0] > t.max ? t.max : t.value[0], t.value[1] = t.value[1] > t.max ? t.max : t.value[1]; + var r = Math.floor((t.value[0] - t.min) / (t.max - t.min) * 100), + v = Math.floor((t.value[1] - t.min) / (t.max - t.min) * 100), p = v - r + "%"; + r += "%", v += "%" + } else { + "object" == typeof t.value && (t.value = Math.min.apply(null, t.value)), t.value < t.min && (t.value = t.min), t.value > t.max && (t.value = t.max); + var p = Math.floor((t.value - t.min) / (t.max - t.min) * 100) + "%" + } + var m = t.disabled ? "#c2c2c2" : t.theme, + f = '
      ' + (t.tips ? '
      ' : "") + '
      ' + (t.range ? '
      ' : "") + "
      ", + h = i(t.elem), y = h.next("." + s); + if (y[0] && y.remove(), e.elemTemp = i(f), t.range ? (e.elemTemp.find("." + o).eq(0).data("value", t.value[0]), e.elemTemp.find("." + o).eq(1).data("value", t.value[1])) : e.elemTemp.find("." + o).data("value", t.value), h.html(e.elemTemp), "vertical" === t.type && e.elemTemp.height(t.height + "px"), t.showstep) { + for (var g = (t.max - t.min) / t.step, b = "", x = 1; x < g + 1; x++) { + var T = 100 * x / g; + T < 100 && (b += '
      ') + } + e.elemTemp.append(b) + } + if (t.input && !t.range) { + var w = i('
      '); + h.css("position", "relative"), h.append(w), h.find("." + c).children("input").val(t.value), "vertical" === t.type ? w.css({ + left: 0, + top: -48 + }) : e.elemTemp.css("margin-right", w.outerWidth() + 15) + } + t.disabled ? (e.elemTemp.addClass(l), e.elemTemp.find("." + u).addClass(l)) : e.slide(), e.elemTemp.find("." + u).on("mouseover", function () { + var a = "vertical" === t.type ? t.height : e.elemTemp[0].offsetWidth, n = e.elemTemp.find("." + o), + l = "vertical" === t.type ? a - i(this).parent()[0].offsetTop - n.height() : i(this).parent()[0].offsetLeft, + s = l / a * 100, r = i(this).parent().data("value"), u = t.setTips ? t.setTips(r) : r; + e.elemTemp.find("." + d).html(u), "vertical" === t.type ? e.elemTemp.find("." + d).css({ + bottom: s + "%", + "margin-bottom": "20px", + display: "inline-block" + }) : e.elemTemp.find("." + d).css({left: s + "%", display: "inline-block"}) + }).on("mouseout", function () { + e.elemTemp.find("." + d).css("display", "none") + }) + }, f.prototype.slide = function (e, t, a) { + var n = this, l = n.config, s = n.elemTemp, f = function () { + return "vertical" === l.type ? l.height : s[0].offsetWidth + }, h = s.find("." + o), y = s.next("." + v), g = y.children("." + c).children("input").val(), + b = 100 / ((l.max - l.min) / Math.ceil(l.step)), x = function (e, i) { + e = Math.ceil(e) * b > 100 ? Math.ceil(e) * b : Math.round(e) * b, e = e > 100 ? 100 : e, h.eq(i).css("vertical" === l.type ? "bottom" : "left", e + "%"); + var t = T(h[0].offsetLeft), a = l.range ? T(h[1].offsetLeft) : 0; + "vertical" === l.type ? (s.find("." + d).css({ + bottom: e + "%", + "margin-bottom": "20px" + }), t = T(f() - h[0].offsetTop - h.height()), a = l.range ? T(f() - h[1].offsetTop - h.height()) : 0) : s.find("." + d).css("left", e + "%"), t = t > 100 ? 100 : t, a = a > 100 ? 100 : a; + var n = Math.min(t, a), o = Math.abs(t - a); + "vertical" === l.type ? s.find("." + r).css({ + height: o + "%", + bottom: n + "%" + }) : s.find("." + r).css({width: o + "%", left: n + "%"}); + var u = l.min + Math.round((l.max - l.min) * e / 100); + if (g = u, y.children("." + c).children("input").val(g), h.eq(i).data("value", u), s.find("." + d).html(l.setTips ? l.setTips(u) : u), l.range) { + var v = [h.eq(0).data("value"), h.eq(1).data("value")]; + v[0] > v[1] && v.reverse() + } + l.change && l.change(l.range ? v : u) + }, T = function (e) { + var i = e / f() * 100 / b, t = Math.round(i) * b; + return e == f() && (t = Math.ceil(i) * b), t + }, w = i(['
      f() && (r = f()); + var o = r / f() * 100 / b; + x(o, e), t.addClass(m), s.find("." + d).show(), i.preventDefault() + }, o = function () { + t.removeClass(m), s.find("." + d).hide() + }; + M(r, o) + }) + }), s.on("click", function (e) { + var t = i("." + u); + if (!t.is(event.target) && 0 === t.has(event.target).length && t.length) { + var a, + n = "vertical" === l.type ? f() - e.clientY + i(this).offset().top : e.clientX - i(this).offset().left; + n < 0 && (n = 0), n > f() && (n = f()); + var s = n / f() * 100 / b; + a = l.range ? "vertical" === l.type ? Math.abs(n - parseInt(i(h[0]).css("bottom"))) > Math.abs(n - parseInt(i(h[1]).css("bottom"))) ? 1 : 0 : Math.abs(n - h[0].offsetLeft) > Math.abs(n - h[1].offsetLeft) ? 1 : 0 : 0, x(s, a), e.preventDefault() + } + }), y.children("." + p).children("i").each(function (e) { + i(this).on("click", function () { + g = y.children("." + c).children("input").val(), g = 1 == e ? g - l.step < l.min ? l.min : Number(g) - l.step : Number(g) + l.step > l.max ? l.max : Number(g) + l.step; + var i = (g - l.min) / (l.max - l.min) * 100 / b; + x(i, 0) + }) + }); + var q = function () { + var e = this.value; + e = isNaN(e) ? 0 : e, e = e < l.min ? l.min : e, e = e > l.max ? l.max : e, this.value = e; + var i = (e - l.min) / (l.max - l.min) * 100 / b; + x(i, 0) + }; + y.children("." + c).children("input").on("keydown", function (e) { + 13 === e.keyCode && (e.preventDefault(), q.call(this)) + }).on("change", q) + }, f.prototype.events = function () { + var e = this; + e.config + }, t.render = function (e) { + var i = new f(e); + return a.call(i) + }, e(n, t) +}); +layui.define(["jquery", "lay"], function (e) { + "use strict"; + var i = layui.jquery, r = layui.lay, o = layui.device(), n = o.mobile ? "click" : "mousedown", l = { + config: {}, index: layui.colorpicker ? layui.colorpicker.index + 1e4 : 0, set: function (e) { + var r = this; + return r.config = i.extend({}, r.config, e), r + }, on: function (e, i) { + return layui.onevent.call(this, "colorpicker", e, i) + } + }, t = function () { + var e = this, i = e.config; + return {config: i} + }, c = "colorpicker", a = "layui-show", s = "layui-colorpicker", f = ".layui-colorpicker-main", + d = "layui-icon-down", u = "layui-icon-close", p = "layui-colorpicker-trigger-span", + g = "layui-colorpicker-trigger-i", v = "layui-colorpicker-side", h = "layui-colorpicker-side-slider", + b = "layui-colorpicker-basis", k = "layui-colorpicker-alpha-bgcolor", y = "layui-colorpicker-alpha-slider", + m = "layui-colorpicker-basis-cursor", x = "layui-colorpicker-main-input", P = function (e) { + var i = {h: 0, s: 0, b: 0}, r = Math.min(e.r, e.g, e.b), o = Math.max(e.r, e.g, e.b), n = o - r; + return i.b = o, i.s = 0 != o ? 255 * n / o : 0, 0 != i.s ? e.r == o ? i.h = (e.g - e.b) / n : e.g == o ? i.h = 2 + (e.b - e.r) / n : i.h = 4 + (e.r - e.g) / n : i.h = -1, o == r && (i.h = 0), i.h *= 60, i.h < 0 && (i.h += 360), i.s *= 100 / 255, i.b *= 100 / 255, i + }, C = function (e) { + var e = e.indexOf("#") > -1 ? e.substring(1) : e; + if (3 == e.length) { + var i = e.split(""); + e = i[0] + i[0] + i[1] + i[1] + i[2] + i[2] + } + e = parseInt(e, 16); + var r = {r: e >> 16, g: (65280 & e) >> 8, b: 255 & e}; + return P(r) + }, B = function (e) { + var i = {}, r = e.h, o = 255 * e.s / 100, n = 255 * e.b / 100; + if (0 == o) i.r = i.g = i.b = n; else { + var l = n, t = (255 - o) * n / 255, c = (l - t) * (r % 60) / 60; + 360 == r && (r = 0), r < 60 ? (i.r = l, i.b = t, i.g = t + c) : r < 120 ? (i.g = l, i.b = t, i.r = l - c) : r < 180 ? (i.g = l, i.r = t, i.b = t + c) : r < 240 ? (i.b = l, i.r = t, i.g = l - c) : r < 300 ? (i.b = l, i.g = t, i.r = t + c) : r < 360 ? (i.r = l, i.g = t, i.b = l - c) : (i.r = 0, i.g = 0, i.b = 0) + } + return {r: Math.round(i.r), g: Math.round(i.g), b: Math.round(i.b)} + }, w = function (e) { + var r = B(e), o = [r.r.toString(16), r.g.toString(16), r.b.toString(16)]; + return i.each(o, function (e, i) { + 1 == i.length && (o[e] = "0" + i) + }), o.join("") + }, D = function (e) { + var i = /[0-9]{1,3}/g, r = e.match(i) || []; + return {r: r[0], g: r[1], b: r[2]} + }, j = i(window), E = i(document), F = function (e) { + var r = this; + r.index = ++l.index, r.config = i.extend({}, r.config, l.config, e), r.render() + }; + F.prototype.config = { + color: "", + size: null, + alpha: !1, + format: "hex", + predefine: !1, + colors: ["#009688", "#5FB878", "#1E9FFF", "#FF5722", "#FFB800", "#01AAED", "#999", "#c00", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "rgb(0, 186, 189)", "rgb(255, 120, 0)", "rgb(250, 212, 0)", "#393D49", "rgba(0,0,0,.5)", "rgba(255, 69, 0, 0.68)", "rgba(144, 240, 144, 0.5)", "rgba(31, 147, 255, 0.73)"] + }, F.prototype.render = function () { + var e = this, r = e.config, + o = i(['
      ', "", ' 3 && (r.alpha && "rgb" == r.format || (e = "#" + w(P(D(r.color))))), "background: " + e) : e + }() + '">', '', "", "", "
      "].join("")), + n = i(r.elem); + r.size && o.addClass("layui-colorpicker-" + r.size), n.addClass("layui-inline").html(e.elemColorBox = o), e.color = e.elemColorBox.find("." + p)[0].style.background, e.events() + }, F.prototype.renderPicker = function () { + var e = this, r = e.config, o = e.elemColorBox[0], + n = e.elemPicker = i(['
      ', '
      ', '
      ', '
      ', '
      ', '
      ', "
      ", '
      ', '
      ', "
      ", "
      ", '
      ', '
      ', '
      ', "
      ", "
      ", function () { + if (r.predefine) { + var e = ['
      ']; + return layui.each(r.colors, function (i, r) { + e.push(['
      ', '
      ', "
      "].join("")) + }), e.push("
      "), e.join("") + } + return "" + }(), '
      ', '
      ', '', "
      ", '
      ', '', '', "", "
      "].join("")); + e.elemColorBox.find("." + p)[0]; + i(f)[0] && i(f).data("index") == e.index ? e.removePicker(F.thisElemInd) : (e.removePicker(F.thisElemInd), i("body").append(n)), F.thisElemInd = e.index, F.thisColor = o.style.background, e.position(), e.pickerEvents() + }, F.prototype.removePicker = function (e) { + var r = this; + r.config; + return i("#layui-colorpicker" + (e || r.index)).remove(), r + }, F.prototype.position = function () { + var e = this, i = e.config; + return r.position(e.bindElem || e.elemColorBox[0], e.elemPicker[0], {position: i.position, align: "center"}), e + }, F.prototype.val = function () { + var e = this, i = (e.config, e.elemColorBox.find("." + p)), r = e.elemPicker.find("." + x), o = i[0], + n = o.style.backgroundColor; + if (n) { + var l = P(D(n)), t = i.attr("lay-type"); + if (e.select(l.h, l.s, l.b), "torgb" === t && r.find("input").val(n), "rgba" === t) { + var c = D(n); + if (3 == (n.match(/[0-9]{1,3}/g) || []).length) r.find("input").val("rgba(" + c.r + ", " + c.g + ", " + c.b + ", 1)"), e.elemPicker.find("." + y).css("left", 280); else { + r.find("input").val(n); + var a = 280 * n.slice(n.lastIndexOf(",") + 1, n.length - 1); + e.elemPicker.find("." + y).css("left", a) + } + e.elemPicker.find("." + k)[0].style.background = "linear-gradient(to right, rgba(" + c.r + ", " + c.g + ", " + c.b + ", 0), rgb(" + c.r + ", " + c.g + ", " + c.b + "))" + } + } else e.select(0, 100, 100), r.find("input").val(""), e.elemPicker.find("." + k)[0].style.background = "", e.elemPicker.find("." + y).css("left", 280) + }, F.prototype.side = function () { + var e = this, r = e.config, o = e.elemColorBox.find("." + p), n = o.attr("lay-type"), + l = e.elemPicker.find("." + v), t = e.elemPicker.find("." + h), c = e.elemPicker.find("." + b), + a = e.elemPicker.find("." + m), s = e.elemPicker.find("." + k), f = e.elemPicker.find("." + y), + C = t[0].offsetTop / 180 * 360, w = 100 - (a[0].offsetTop + 3) / 180 * 100, + E = (a[0].offsetLeft + 3) / 260 * 100, F = Math.round(f[0].offsetLeft / 280 * 100) / 100, + H = e.elemColorBox.find("." + g), M = e.elemPicker.find(".layui-colorpicker-pre").children("div"), + Y = function (i, l, t, c) { + e.select(i, l, t); + var a = B({h: i, s: l, b: t}); + if (H.addClass(d).removeClass(u), o[0].style.background = "rgb(" + a.r + ", " + a.g + ", " + a.b + ")", "torgb" === n && e.elemPicker.find("." + x).find("input").val("rgb(" + a.r + ", " + a.g + ", " + a.b + ")"), "rgba" === n) { + var p = 0; + p = 280 * c, f.css("left", p), e.elemPicker.find("." + x).find("input").val("rgba(" + a.r + ", " + a.g + ", " + a.b + ", " + c + ")"), o[0].style.background = "rgba(" + a.r + ", " + a.g + ", " + a.b + ", " + c + ")", s[0].style.background = "linear-gradient(to right, rgba(" + a.r + ", " + a.g + ", " + a.b + ", 0), rgb(" + a.r + ", " + a.g + ", " + a.b + "))" + } + r.change && r.change(e.elemPicker.find("." + x).find("input").val()) + }, I = i(['
      '].join("")), + L = function (e) { + i("#LAY-colorpicker-moving")[0] || i("body").append(I), I.on("mousemove", e), I.on("mouseup", function () { + I.remove() + }).on("mouseleave", function () { + I.remove() + }) + }; + t.on("mousedown", function (e) { + var i = this.offsetTop, r = e.clientY, o = function (e) { + var o = i + (e.clientY - r), n = l[0].offsetHeight; + o < 0 && (o = 0), o > n && (o = n); + var t = o / 180 * 360; + C = t, Y(t, E, w, F), e.preventDefault() + }; + L(o), e.preventDefault() + }), l.on("click", function (e) { + var r = e.clientY - i(this).offset().top; + r < 0 && (r = 0), r > this.offsetHeight && (r = this.offsetHeight); + var o = r / 180 * 360; + C = o, Y(o, E, w, F), e.preventDefault() + }), a.on("mousedown", function (e) { + var i = this.offsetTop, r = this.offsetLeft, o = e.clientY, n = e.clientX, l = function (e) { + var l = i + (e.clientY - o), t = r + (e.clientX - n), a = c[0].offsetHeight - 3, + s = c[0].offsetWidth - 3; + l < -3 && (l = -3), l > a && (l = a), t < -3 && (t = -3), t > s && (t = s); + var f = (t + 3) / 260 * 100, d = 100 - (l + 3) / 180 * 100; + w = d, E = f, Y(C, f, d, F), e.preventDefault() + }; + layui.stope(e), L(l), e.preventDefault() + }), c.on("mousedown", function (e) { + var r = e.clientY - i(this).offset().top - 3 + j.scrollTop(), + o = e.clientX - i(this).offset().left - 3 + j.scrollLeft(); + r < -3 && (r = -3), r > this.offsetHeight - 3 && (r = this.offsetHeight - 3), o < -3 && (o = -3), o > this.offsetWidth - 3 && (o = this.offsetWidth - 3); + var n = (o + 3) / 260 * 100, l = 100 - (r + 3) / 180 * 100; + w = l, E = n, Y(C, n, l, F), layui.stope(e), e.preventDefault(), a.trigger(e, "mousedown") + }), f.on("mousedown", function (e) { + var i = this.offsetLeft, r = e.clientX, o = function (e) { + var o = i + (e.clientX - r), n = s[0].offsetWidth; + o < 0 && (o = 0), o > n && (o = n); + var l = Math.round(o / 280 * 100) / 100; + F = l, Y(C, E, w, l), e.preventDefault() + }; + L(o), e.preventDefault() + }), s.on("click", function (e) { + var r = e.clientX - i(this).offset().left; + r < 0 && (r = 0), r > this.offsetWidth && (r = this.offsetWidth); + var o = Math.round(r / 280 * 100) / 100; + F = o, Y(C, E, w, o), e.preventDefault() + }), M.each(function () { + i(this).on("click", function () { + i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected"); + var e, r = this.style.backgroundColor, o = P(D(r)), n = r.slice(r.lastIndexOf(",") + 1, r.length - 1); + C = o.h, E = o.s, w = o.b, 3 == (r.match(/[0-9]{1,3}/g) || []).length && (n = 1), F = n, e = 280 * n, Y(o.h, o.s, o.b, n) + }) + }) + }, F.prototype.select = function (e, i, r, o) { + var n = this, l = (n.config, w({h: e, s: 100, b: 100})), t = w({h: e, s: i, b: r}), c = e / 360 * 180, + a = 180 - r / 100 * 180 - 3, s = i / 100 * 260 - 3; + n.elemPicker.find("." + h).css("top", c), n.elemPicker.find("." + b)[0].style.background = "#" + l, n.elemPicker.find("." + m).css({ + top: a, + left: s + }), "change" !== o && n.elemPicker.find("." + x).find("input").val("#" + t) + }, F.prototype.pickerEvents = function () { + var e = this, r = e.config, o = e.elemColorBox.find("." + p), n = e.elemPicker.find("." + x + " input"), l = { + clear: function (i) { + o[0].style.background = "", e.elemColorBox.find("." + g).removeClass(d).addClass(u), e.color = "", r.done && r.done(""), e.removePicker() + }, confirm: function (i, l) { + var t = n.val(), c = t, a = {}; + if (t.indexOf(",") > -1) { + if (a = P(D(t)), e.select(a.h, a.s, a.b), o[0].style.background = c = "#" + w(a), (t.match(/[0-9]{1,3}/g) || []).length > 3 && "rgba" === o.attr("lay-type")) { + var s = 280 * t.slice(t.lastIndexOf(",") + 1, t.length - 1); + e.elemPicker.find("." + y).css("left", s), o[0].style.background = t, c = t + } + } else a = C(t), o[0].style.background = c = "#" + w(a), e.elemColorBox.find("." + g).removeClass(u).addClass(d); + return "change" === l ? (e.select(a.h, a.s, a.b, l), void (r.change && r.change(c))) : (e.color = t, r.done && r.done(t), void e.removePicker()) + } + }; + e.elemPicker.on("click", "*[colorpicker-events]", function () { + var e = i(this), r = e.attr("colorpicker-events"); + l[r] && l[r].call(this, e) + }), n.on("keyup", function (e) { + var r = i(this); + l.confirm.call(this, r, 13 === e.keyCode ? null : "change") + }) + }, F.prototype.events = function () { + var e = this, r = e.config, o = e.elemColorBox.find("." + p); + e.elemColorBox.on("click", function () { + e.renderPicker(), i(f)[0] && (e.val(), e.side()) + }), r.elem[0] && !e.elemColorBox[0].eventHandler && (E.on(n, function (r) { + if (!i(r.target).hasClass(s) && !i(r.target).parents("." + s)[0] && !i(r.target).hasClass(f.replace(/\./g, "")) && !i(r.target).parents(f)[0] && e.elemPicker) { + if (e.color) { + var n = P(D(e.color)); + e.select(n.h, n.s, n.b) + } else e.elemColorBox.find("." + g).removeClass(d).addClass(u); + o[0].style.background = e.color || "", e.removePicker() + } + }), j.on("resize", function () { + return !(!e.elemPicker || !i(f)[0]) && void e.position() + }), e.elemColorBox[0].eventHandler = !0) + }, l.render = function (e) { + var i = new F(e); + return t.call(i) + }, e(c, l) +}); +layui.define("layer", function (e) { + "use strict"; + var t = layui.$, i = layui.layer, a = layui.hint(), n = layui.device(), l = "form", r = ".layui-form", + o = "layui-this", s = "layui-hide", c = "layui-disabled", u = function () { + this.config = { + verify: { + required: [/[\S]+/, "\u5fc5\u586b\u9879\u4e0d\u80fd\u4e3a\u7a7a"], + phone: [/^1\d{10}$/, "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"], + email: [/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/, "\u90ae\u7bb1\u683c\u5f0f\u4e0d\u6b63\u786e"], + url: [/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/, "\u94fe\u63a5\u683c\u5f0f\u4e0d\u6b63\u786e"], + number: function (e) { + if (!e || isNaN(e)) return "\u53ea\u80fd\u586b\u5199\u6570\u5b57" + }, + date: [/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/, "\u65e5\u671f\u683c\u5f0f\u4e0d\u6b63\u786e"], + identity: [/(^\d{15}$)|(^\d{17}(x|X|\d)$)/, "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7"] + }, autocomplete: null + } + }; + u.prototype.set = function (e) { + var i = this; + return t.extend(!0, i.config, e), i + }, u.prototype.verify = function (e) { + var i = this; + return t.extend(!0, i.config.verify, e), i + }, u.prototype.on = function (e, t) { + return layui.onevent.call(this, l, e, t) + }, u.prototype.val = function (e, i) { + var a = this, n = t(r + '[lay-filter="' + e + '"]'); + return n.each(function (e, a) { + var n = t(this); + layui.each(i, function (e, t) { + var i, a = n.find('[name="' + e + '"]'); + a[0] && (i = a[0].type, "checkbox" === i ? a[0].checked = t : "radio" === i ? a.each(function () { + this.value == t && (this.checked = !0) + }) : a.val(t)) + }) + }), f.render(null, e), a.getValue(e) + }, u.prototype.getValue = function (e, i) { + i = i || t(r + '[lay-filter="' + e + '"]').eq(0); + var a = {}, n = {}, l = i.find("input,select,textarea"); + return layui.each(l, function (e, i) { + var l; + t(this); + if (i.name = (i.name || "").replace(/^\s*|\s*&/, ""), i.name) { + if (/^.*\[\]$/.test(i.name)) { + var r = i.name.match(/^(.*)\[\]$/g)[0]; + a[r] = 0 | a[r], l = i.name.replace(/^(.*)\[\]$/, "$1[" + a[r]++ + "]") + } + /^checkbox|radio$/.test(i.type) && !i.checked || (n[l || i.name] = i.value) + } + }), n + }, u.prototype.render = function (e, i) { + var n = this, u = n.config, d = t(r + function () { + return i ? '[lay-filter="' + i + '"]' : "" + }()), f = { + input: function () { + var e = d.find("input,textarea"); + u.autocomplete && e.attr("autocomplete", u.autocomplete) + }, select: function () { + var e, i = "\u8bf7\u9009\u62e9", a = "layui-form-select", n = "layui-select-title", + r = "layui-select-none", u = "", f = d.find("select"), v = function (i, l) { + t(i.target).parent().hasClass(n) && !l || (t("." + a).removeClass(a + "ed " + a + "up"), e && u && e.val(u)), e = null + }, y = function (i, d, f) { + var y, p = t(this), m = i.find("." + n), g = m.find("input"), k = i.find("dl"), + x = k.children("dd"), b = this.selectedIndex; + if (!d) { + var C = function () { + var e = i.offset().top + i.outerHeight() + 5 - h.scrollTop(), t = k.outerHeight(); + b = p[0].selectedIndex, i.addClass(a + "ed"), x.removeClass(s), y = null, x.eq(b).addClass(o).siblings().removeClass(o), e + t > h.height() && e >= t && i.addClass(a + "up"), T() + }, w = function (e) { + i.removeClass(a + "ed " + a + "up"), g.blur(), y = null, e || $(g.val(), function (e) { + var i = p[0].selectedIndex; + e && (u = t(p[0].options[i]).html(), 0 === i && u === g.attr("placeholder") && (u = ""), g.val(u || "")) + }) + }, T = function () { + var e = k.children("dd." + o); + if (e[0]) { + var t = e.position().top, i = k.height(), a = e.height(); + t > i && k.scrollTop(t + k.scrollTop() - i + a - 5), t < 0 && k.scrollTop(t + k.scrollTop() - 5) + } + }; + m.on("click", function (e) { + i.hasClass(a + "ed") ? w() : (v(e, !0), C()), k.find("." + r).remove() + }), m.find(".layui-edge").on("click", function () { + g.focus() + }), g.on("keyup", function (e) { + var t = e.keyCode; + 9 === t && C() + }).on("keydown", function (e) { + var t = e.keyCode; + 9 === t && w(); + var i = function (t, a) { + var n, l; + e.preventDefault(); + var r = function () { + var e = k.children("dd." + o); + if (k.children("dd." + s)[0] && "next" === t) { + var i = k.children("dd:not(." + s + ",." + c + ")"), n = i.eq(0).index(); + if (n >= 0 && n < e.index() && !i.hasClass(o)) return i.eq(0).prev()[0] ? i.eq(0).prev() : k.children(":last") + } + return a && a[0] ? a : y && y[0] ? y : e + }(); + return l = r[t](), n = r[t]("dd:not(." + s + ")"), l[0] ? (y = r[t](), n[0] && !n.hasClass(c) || !y[0] ? (n.addClass(o).siblings().removeClass(o), void T()) : i(t, y)) : y = null + }; + 38 === t && i("prev"), 40 === t && i("next"), 13 === t && (e.preventDefault(), k.children("dd." + o).trigger("click")) + }); + var $ = function (e, i, a) { + var n = 0; + layui.each(x, function () { + var i = t(this), l = i.text(), r = l.indexOf(e) === -1; + ("" === e || "blur" === a ? e !== l : r) && n++, "keyup" === a && i[r ? "addClass" : "removeClass"](s) + }); + var l = n === x.length; + return i(l), l + }, q = function (e) { + var t = this.value, i = e.keyCode; + return 9 !== i && 13 !== i && 37 !== i && 38 !== i && 39 !== i && 40 !== i && ($(t, function (e) { + e ? k.find("." + r)[0] || k.append('

      \u65e0\u5339\u914d\u9879

      ') : k.find("." + r).remove() + }, "keyup"), "" === t && k.find("." + r).remove(), void T()) + }; + f && g.on("keyup", q).on("blur", function (i) { + var a = p[0].selectedIndex; + e = g, u = t(p[0].options[a]).html(), 0 === a && u === g.attr("placeholder") && (u = ""), setTimeout(function () { + $(g.val(), function (e) { + u || g.val("") + }, "blur") + }, 200) + }), x.on("click", function () { + var e = t(this), a = e.attr("lay-value"), n = p.attr("lay-filter"); + return !e.hasClass(c) && (e.hasClass("layui-select-tips") ? g.val("") : (g.val(e.text()), e.addClass(o)), e.siblings().removeClass(o), p.val(a).removeClass("layui-form-danger"), layui.event.call(this, l, "select(" + n + ")", { + elem: p[0], + value: a, + othis: i + }), w(!0), !1) + }), i.find("dl>dt").on("click", function (e) { + return !1 + }), t(document).off("click", v).on("click", v) + } + }; + f.each(function (e, l) { + var r = t(this), s = r.next("." + a), u = this.disabled, d = l.value, + f = t(l.options[l.selectedIndex]), v = l.options[0]; + if ("string" == typeof r.attr("lay-ignore")) return r.show(); + var h = "string" == typeof r.attr("lay-search"), p = v ? v.value ? i : v.innerHTML || i : i, + m = t(['
      ', '
      ', '', '
      ', '
      ', function (e) { + var a = []; + return layui.each(e, function (e, n) { + 0 !== e || n.value ? "optgroup" === n.tagName.toLowerCase() ? a.push("
      " + n.label + "
      ") : a.push('
      ' + t.trim(n.innerHTML) + "
      ") : a.push('
      ' + t.trim(n.innerHTML || i) + "
      ") + }), 0 === a.length && a.push('
      \u6ca1\u6709\u9009\u9879
      '), a.join("") + }(r.find("*")) + "
      ", "
      "].join("")); + s[0] && s.remove(), r.after(m), y.call(this, m, u, h) + }) + }, checkbox: function () { + var e = { + checkbox: ["layui-form-checkbox", "layui-form-checked", "checkbox"], + _switch: ["layui-form-switch", "layui-form-onswitch", "switch"] + }, i = d.find("input[type=checkbox]"), a = function (e, i) { + var a = t(this); + e.on("click", function () { + var t = a.attr("lay-filter"), n = (a.attr("lay-text") || "").split("|"); + a[0].disabled || (a[0].checked ? (a[0].checked = !1, e.removeClass(i[1]).find("em").text(n[1])) : (a[0].checked = !0, e.addClass(i[1]).find("em").text(n[0])), layui.event.call(a[0], l, i[2] + "(" + t + ")", { + elem: a[0], + value: a[0].value, + othis: e + })) + }) + }; + i.each(function (i, n) { + var l = t(this), r = l.attr("lay-skin"), o = (l.attr("lay-text") || "").split("|"), + s = this.disabled; + "switch" === r && (r = "_" + r); + var u = e[r] || e.checkbox; + if ("string" == typeof l.attr("lay-ignore")) return l.show(); + var d = l.next("." + u[0]), + f = t(['
      ", function () { + var e = n.title.replace(/\s/g, ""), t = { + checkbox: [e ? "" + n.title + "" : "", ''].join(""), + _switch: "" + ((n.checked ? o[0] : o[1]) || "") + "" + }; + return t[r] || t.checkbox + }(), "
      "].join("")); + d[0] && d.remove(), l.after(f), a.call(this, f, u) + }) + }, radio: function () { + var e = "layui-form-radio", i = ["", ""], a = d.find("input[type=radio]"), + n = function (a) { + var n = t(this), o = "layui-anim-scaleSpring"; + a.on("click", function () { + var s = n[0].name, c = n.parents(r), u = n.attr("lay-filter"), + d = c.find("input[name=" + s.replace(/(\.|#|\[|\])/g, "\\$1") + "]"); + n[0].disabled || (layui.each(d, function () { + var a = t(this).next("." + e); + this.checked = !1, a.removeClass(e + "ed"), a.find(".layui-icon").removeClass(o).html(i[1]) + }), n[0].checked = !0, a.addClass(e + "ed"), a.find(".layui-icon").addClass(o).html(i[0]), layui.event.call(n[0], l, "radio(" + u + ")", { + elem: n[0], + value: n[0].value, + othis: a + })) + }) + }; + a.each(function (a, l) { + var r = t(this), o = r.next("." + e), s = this.disabled; + if ("string" == typeof r.attr("lay-ignore")) return r.show(); + o[0] && o.remove(); + var u = t(['
      ', '' + i[l.checked ? 0 : 1] + "", "
      " + function () { + var e = l.title || ""; + return "string" == typeof r.next().attr("lay-radio") && (e = r.next().html()), e + }() + "
      ", "
      "].join("")); + r.after(u), n.call(this, u) + }) + } + }; + return e ? f[e] ? f[e]() : a.error('\u4e0d\u652f\u6301\u7684 "' + e + '" \u8868\u5355\u6e32\u67d3') : layui.each(f, function (e, t) { + t() + }), n + }; + var d = function () { + var e = null, a = f.config.verify, o = "layui-form-danger", s = {}, c = t(this), u = c.parents(r).eq(0), + d = u.find("*[lay-verify]"), h = c.parents("form")[0], y = c.attr("lay-filter"); + return layui.each(d, function (l, r) { + var s = t(this), c = s.attr("lay-verify").split("|"), u = s.attr("lay-verType"), d = s.val(); + if (s.removeClass(o), layui.each(c, function (t, l) { + var c, f = "", h = "function" == typeof a[l]; + if (a[l]) { + var c = h ? f = a[l](d, r) : !a[l][0].test(d), + y = "select" === r.tagName.toLowerCase() || /^checkbox|radio$/.test(r.type); + if (f = f || a[l][1], "required" === l && (f = s.attr("lay-reqText") || f), c) return "tips" === u ? i.tips(f, function () { + return "string" != typeof s.attr("lay-ignore") && y ? s.next() : s + }(), {tips: 1}) : "alert" === u ? i.alert(f, { + title: "\u63d0\u793a", + shadeClose: !0 + }) : /\bstring|number\b/.test(typeof f) && i.msg(f, { + icon: 5, + shift: 6 + }), n.mobile ? v.scrollTop(function () { + try { + return (y ? s.next() : s).offset().top - 15 + } catch (e) { + return 0 + } + }()) : setTimeout(function () { + (y ? s.next().find("input") : r).focus() + }, 7), s.addClass(o), e = !0 + } + }), e) return e + }), !e && (s = f.getValue(null, u), layui.event.call(this, l, "submit(" + y + ")", { + elem: this, + form: h, + field: s + })) + }, f = new u, v = t(document), h = t(window); + t(function () { + f.render() + }), v.on("reset", r, function () { + var e = t(this).attr("lay-filter"); + setTimeout(function () { + f.render(null, e) + }, 50) + }), v.on("submit", r, d).on("click", "*[lay-submit]", d), e(l, f) +}); +layui.define("form", function (e) { + "use strict"; + var i = layui.$, a = layui.form, n = layui.layer, t = "tree", r = { + config: {}, index: layui[t] ? layui[t].index + 1e4 : 0, set: function (e) { + var a = this; + return a.config = i.extend({}, a.config, e), a + }, on: function (e, i) { + return layui.onevent.call(this, t, e, i) + } + }, l = function () { + var e = this, i = e.config, a = i.id || e.index; + return l.that[a] = e, l.config[a] = i, { + config: i, reload: function (i) { + e.reload.call(e, i) + }, getChecked: function () { + return e.getChecked.call(e) + }, setChecked: function (i) { + return e.setChecked.call(e, i) + } + } + }, c = "layui-hide", d = "layui-disabled", s = "layui-tree-set", o = "layui-tree-iconClick", + h = "layui-icon-addition", u = "layui-icon-subtraction", p = "layui-tree-entry", f = "layui-tree-main", + y = "layui-tree-txt", v = "layui-tree-pack", C = "layui-tree-spread", k = "layui-tree-setLineShort", + m = "layui-tree-showLine", x = "layui-tree-lineExtend", b = function (e) { + var a = this; + a.index = ++r.index, a.config = i.extend({}, a.config, r.config, e), a.render() + }; + b.prototype.config = { + data: [], + showCheckbox: !1, + showLine: !0, + accordion: !1, + onlyIconControl: !1, + isJump: !1, + edit: !1, + text: {defaultNodeName: "\u672a\u547d\u540d", none: "\u65e0\u6570\u636e"} + }, b.prototype.reload = function (e) { + var a = this; + layui.each(e, function (e, i) { + "array" === layui._typeof(i) && delete a.config[e] + }), a.config = i.extend(!0, {}, a.config, e), a.render() + }, b.prototype.render = function () { + var e = this, a = e.config; + e.checkids = []; + var n = i('
      '); + e.tree(n); + var t = a.elem = i(a.elem); + if (t[0]) { + if (e.key = a.id || e.index, e.elem = n, e.elemNone = i('
      ' + a.text.none + "
      "), t.html(e.elem), 0 == e.elem.find(".layui-tree-set").length) return e.elem.append(e.elemNone); + a.showCheckbox && e.renderForm("checkbox"), e.elem.find(".layui-tree-set").each(function () { + var e = i(this); + e.parent(".layui-tree-pack")[0] || e.addClass("layui-tree-setHide"), !e.next()[0] && e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend") && e.addClass(k), e.next()[0] || e.parents(".layui-tree-set").eq(0).next()[0] || e.addClass(k) + }), e.events() + } + }, b.prototype.renderForm = function (e) { + a.render(e, "LAY-tree-" + this.index) + }, b.prototype.tree = function (e, a) { + var n = this, t = n.config, r = a || t.data; + layui.each(r, function (a, r) { + var l = r.children && r.children.length > 0, + o = i('
      "), + h = i(['
      ', '
      ', '
      ', function () { + return t.showLine ? l ? '' : '' : '' + }(), function () { + return t.showCheckbox ? '' : "" + }(), function () { + return t.isJump && r.href ? '' + (r.title || r.label || t.text.defaultNodeName) + "" : '' + (r.title || r.label || t.text.defaultNodeName) + "" + }(), "
      ", function () { + if (!t.edit) return ""; + var e = { + add: '', + update: '', + del: '' + }, i = ['
      ']; + return t.edit === !0 && (t.edit = ["update", "del"]), "object" == typeof t.edit ? (layui.each(t.edit, function (a, n) { + i.push(e[n] || "") + }), i.join("") + "
      ") : void 0 + }(), "
      "].join("")); + l && (h.append(o), n.tree(o, r.children)), e.append(h), h.prev("." + s)[0] && h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"), l || h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"), n.spread(h, r), t.showCheckbox && (r.checked && n.checkids.push(r.id), n.checkClick(h, r)), t.edit && n.operate(h, r) + }) + }, b.prototype.spread = function (e, a) { + var n = this, t = n.config, r = e.children("." + p), l = r.children("." + f), c = r.find("." + o), + k = r.find("." + y), m = t.onlyIconControl ? c : l, x = ""; + m.on("click", function (i) { + var a = e.children("." + v), + n = m.children(".layui-icon")[0] ? m.children(".layui-icon") : m.find(".layui-tree-icon").children(".layui-icon"); + if (a[0]) { + if (e.hasClass(C)) e.removeClass(C), a.slideUp(200), n.removeClass(u).addClass(h); else if (e.addClass(C), a.slideDown(200), n.addClass(u).removeClass(h), t.accordion) { + var r = e.siblings("." + s); + r.removeClass(C), r.children("." + v).slideUp(200), r.find(".layui-tree-icon").children(".layui-icon").removeClass(u).addClass(h) + } + } else x = "normal" + }), k.on("click", function () { + var n = i(this); + n.hasClass(d) || (x = e.hasClass(C) ? t.onlyIconControl ? "open" : "close" : t.onlyIconControl ? "close" : "open", t.click && t.click({ + elem: e, + state: x, + data: a + })) + }) + }, b.prototype.setCheckbox = function (e, i, a) { + var n = this, t = (n.config, a.prop("checked")); + if (!a.prop("disabled")) { + if ("object" == typeof i.children || e.find("." + v)[0]) { + var r = e.find("." + v).find('input[same="layuiTreeCheck"]'); + r.each(function () { + this.disabled || (this.checked = t) + }) + } + var l = function (e) { + if (e.parents("." + s)[0]) { + var i, a = e.parent("." + v), n = a.parent(), r = a.prev().find('input[same="layuiTreeCheck"]'); + t ? r.prop("checked", t) : (a.find('input[same="layuiTreeCheck"]').each(function () { + this.checked && (i = !0) + }), i || r.prop("checked", !1)), l(n) + } + }; + l(e), n.renderForm("checkbox") + } + }, b.prototype.checkClick = function (e, a) { + var n = this, t = n.config, r = e.children("." + p), l = r.children("." + f); + l.on("click", 'input[same="layuiTreeCheck"]+', function (r) { + layui.stope(r); + var l = i(this).prev(), c = l.prop("checked"); + l.prop("disabled") || (n.setCheckbox(e, a, l), t.oncheck && t.oncheck({elem: e, checked: c, data: a})) + }) + }, b.prototype.operate = function (e, a) { + var t = this, r = t.config, l = e.children("." + p), d = l.children("." + f); + l.children(".layui-tree-btnGroup").on("click", ".layui-icon", function (l) { + layui.stope(l); + var f = i(this).data("type"), b = e.children("." + v), g = {data: a, type: f, elem: e}; + if ("add" == f) { + b[0] || (r.showLine ? (d.find("." + o).addClass("layui-tree-icon"), d.find("." + o).children(".layui-icon").addClass(h).removeClass("layui-icon-file")) : d.find(".layui-tree-iconArrow").removeClass(c), e.append('
      ')); + var w = r.operate && r.operate(g), N = {}; + if (N.title = r.text.defaultNodeName, N.id = w, t.tree(e.children("." + v), [N]), r.showLine) if (b[0]) b.hasClass(x) || b.addClass(x), e.find("." + v).each(function () { + i(this).children("." + s).last().addClass(k) + }), b.children("." + s).last().prev().hasClass(k) ? b.children("." + s).last().prev().removeClass(k) : b.children("." + s).last().removeClass(k), !e.parent("." + v)[0] && e.next()[0] && b.children("." + s).last().removeClass(k); else { + var T = e.siblings("." + s), L = 1, I = e.parent("." + v); + layui.each(T, function (e, a) { + i(a).children("." + v)[0] || (L = 0) + }), 1 == L ? (T.children("." + v).addClass(m), T.children("." + v).children("." + s).removeClass(k), e.children("." + v).addClass(m), I.removeClass(x), I.children("." + s).last().children("." + v).children("." + s).last().addClass(k)) : e.children("." + v).children("." + s).addClass(k) + } + if (!r.showCheckbox) return; + if (d.find('input[same="layuiTreeCheck"]')[0].checked) { + var A = e.children("." + v).children("." + s).last(); + A.find('input[same="layuiTreeCheck"]')[0].checked = !0 + } + t.renderForm("checkbox") + } else if ("update" == f) { + var F = d.children("." + y).html(); + d.children("." + y).html(""), d.append(''), d.children(".layui-tree-editInput").val(F).focus(); + var j = function (e) { + var i = e.val().trim(); + i = i ? i : r.text.defaultNodeName, e.remove(), d.children("." + y).html(i), g.data.title = i, r.operate && r.operate(g) + }; + d.children(".layui-tree-editInput").blur(function () { + j(i(this)) + }), d.children(".layui-tree-editInput").on("keydown", function (e) { + 13 === e.keyCode && (e.preventDefault(), j(i(this))) + }) + } else n.confirm('\u786e\u8ba4\u5220\u9664\u8be5\u8282\u70b9 "' + (a.title || "") + '" \u5417\uff1f', function (a) { + if (r.operate && r.operate(g), g.status = "remove", n.close(a), !e.prev("." + s)[0] && !e.next("." + s)[0] && !e.parent("." + v)[0]) return e.remove(), void t.elem.append(t.elemNone); + if (e.siblings("." + s).children("." + p)[0]) { + if (r.showCheckbox) { + var l = function (e) { + if (e.parents("." + s)[0]) { + var a = e.siblings("." + s).children("." + p), n = e.parent("." + v).prev(), + r = n.find('input[same="layuiTreeCheck"]')[0], c = 1, d = 0; + 0 == r.checked && (a.each(function (e, a) { + var n = i(a).find('input[same="layuiTreeCheck"]')[0]; + 0 != n.checked || n.disabled || (c = 0), n.disabled || (d = 1) + }), 1 == c && 1 == d && (r.checked = !0, t.renderForm("checkbox"), l(n.parent("." + s)))) + } + }; + l(e) + } + if (r.showLine) { + var d = e.siblings("." + s), h = 1, f = e.parent("." + v); + layui.each(d, function (e, a) { + i(a).children("." + v)[0] || (h = 0) + }), 1 == h ? (b[0] || (f.removeClass(x), d.children("." + v).addClass(m), d.children("." + v).children("." + s).removeClass(k)), e.next()[0] ? f.children("." + s).last().children("." + v).children("." + s).last().addClass(k) : e.prev().children("." + v).children("." + s).last().addClass(k), e.next()[0] || e.parents("." + s)[1] || e.parents("." + s).eq(0).next()[0] || e.prev("." + s).addClass(k)) : !e.next()[0] && e.hasClass(k) && e.prev().addClass(k) + } + } else { + var y = e.parent("." + v).prev(); + if (r.showLine) { + y.find("." + o).removeClass("layui-tree-icon"), y.find("." + o).children(".layui-icon").removeClass(u).addClass("layui-icon-file"); + var w = y.parents("." + v).eq(0); + w.addClass(x), w.children("." + s).each(function () { + i(this).children("." + v).children("." + s).last().addClass(k) + }) + } else y.find(".layui-tree-iconArrow").addClass(c); + e.parents("." + s).eq(0).removeClass(C), e.parent("." + v).remove() + } + e.remove() + }) + }) + }, b.prototype.events = function () { + var e = this, a = e.config; + e.elem.find(".layui-tree-checkedFirst"); + e.setChecked(e.checkids), e.elem.find(".layui-tree-search").on("keyup", function () { + var n = i(this), t = n.val(), r = n.nextAll(), l = []; + r.find("." + y).each(function () { + var e = i(this).parents("." + p); + if (i(this).html().indexOf(t) != -1) { + l.push(i(this).parent()); + var a = function (e) { + e.addClass("layui-tree-searchShow"), e.parent("." + v)[0] && a(e.parent("." + v).parent("." + s)) + }; + a(e.parent("." + s)) + } + }), r.find("." + p).each(function () { + var e = i(this).parent("." + s); + e.hasClass("layui-tree-searchShow") || e.addClass(c) + }), 0 == r.find(".layui-tree-searchShow").length && e.elem.append(e.elemNone), a.onsearch && a.onsearch({elem: l}) + }), e.elem.find(".layui-tree-search").on("keydown", function () { + i(this).nextAll().find("." + p).each(function () { + var e = i(this).parent("." + s); + e.removeClass("layui-tree-searchShow " + c) + }), i(".layui-tree-emptyText")[0] && i(".layui-tree-emptyText").remove() + }) + }, b.prototype.getChecked = function () { + var e = this, a = e.config, n = [], t = []; + e.elem.find(".layui-form-checked").each(function () { + n.push(i(this).prev()[0].value) + }); + var r = function (e, a) { + layui.each(e, function (e, t) { + layui.each(n, function (e, n) { + if (t.id == n) { + var l = i.extend({}, t); + return delete l.children, a.push(l), t.children && (l.children = [], r(t.children, l.children)), !0 + } + }) + }) + }; + return r(i.extend({}, a.data), t), t + }, b.prototype.setChecked = function (e) { + var a = this; + a.config; + a.elem.find("." + s).each(function (a, n) { + var t = i(this).data("id"), r = i(n).children("." + p).find('input[same="layuiTreeCheck"]'), l = r.next(); + if ("number" == typeof e) { + if (t == e) return r[0].checked || l.click(), !1 + } else "object" == typeof e && layui.each(e, function (e, i) { + if (i == t && !r[0].checked) return l.click(), !0 + }) + }) + }, l.that = {}, l.config = {}, r.reload = function (e, i) { + var a = l.that[e]; + return a.reload(i), l.call(a) + }, r.getChecked = function (e) { + var i = l.that[e]; + return i.getChecked() + }, r.setChecked = function (e, i) { + var a = l.that[e]; + return a.setChecked(i) + }, r.render = function (e) { + var i = new b(e); + return l.call(i) + }, e(t, r) +}); +layui.define(["laytpl", "form"], function (e) { + "use strict"; + var a = layui.$, t = layui.laytpl, i = layui.form, n = "transfer", l = { + config: {}, index: layui[n] ? layui[n].index + 1e4 : 0, set: function (e) { + var t = this; + return t.config = a.extend({}, t.config, e), t + }, on: function (e, a) { + return layui.onevent.call(this, n, e, a) + } + }, r = function () { + var e = this, a = e.config, t = a.id || e.index; + return r.that[t] = e, r.config[t] = a, { + config: a, reload: function (a) { + e.reload.call(e, a) + }, getData: function () { + return e.getData.call(e) + } + } + }, c = "layui-hide", o = "layui-btn-disabled", d = "layui-none", s = "layui-transfer-box", + u = "layui-transfer-header", h = "layui-transfer-search", f = "layui-transfer-active", + y = "layui-transfer-data", p = function (e) { + return e = e || {}, ['
      ', '
      ', '", "
      ", "{{# if(d.data.showSearch){ }}", '", "{{# } }}", '
        ', "
        "].join("") + }, v = ['
        ', p({ + index: 0, + checkAllName: "layTransferLeftCheckAll" + }), '
        ', '", '", "
        ", p({ + index: 1, + checkAllName: "layTransferRightCheckAll" + }), "
        "].join(""), x = function (e) { + var t = this; + t.index = ++l.index, t.config = a.extend({}, t.config, l.config, e), t.render() + }; + x.prototype.config = { + title: ["\u5217\u8868\u4e00", "\u5217\u8868\u4e8c"], + width: 200, + height: 360, + data: [], + value: [], + showSearch: !1, + id: "", + text: {none: "\u65e0\u6570\u636e", searchNone: "\u65e0\u5339\u914d\u6570\u636e"} + }, x.prototype.reload = function (e) { + var t = this; + t.config = a.extend({}, t.config, e), t.render() + }, x.prototype.render = function () { + var e = this, i = e.config, n = e.elem = a(t(v).render({data: i, index: e.index})), l = i.elem = a(i.elem); + l[0] && (i.data = i.data || [], i.value = i.value || [], e.key = i.id || e.index, l.html(e.elem), e.layBox = e.elem.find("." + s), e.layHeader = e.elem.find("." + u), e.laySearch = e.elem.find("." + h), e.layData = n.find("." + y), e.layBtn = n.find("." + f + " .layui-btn"), e.layBox.css({ + width: i.width, + height: i.height + }), e.layData.css({ + height: function () { + return i.height - e.layHeader.outerHeight() - e.laySearch.outerHeight() - 2 + }() + }), e.renderData(), e.events()) + }, x.prototype.renderData = function () { + var e = this, a = (e.config, [{checkName: "layTransferLeftCheck", views: []}, { + checkName: "layTransferRightCheck", + views: [] + }]); + e.parseData(function (e) { + var t = e.selected ? 1 : 0, + i = ["
      • ", '', "
      • "].join(""); + a[t].views.push(i), delete e.selected + }), e.layData.eq(0).html(a[0].views.join("")), e.layData.eq(1).html(a[1].views.join("")), e.renderCheckBtn() + }, x.prototype.renderForm = function (e) { + i.render(e, "LAY-transfer-" + this.index) + }, x.prototype.renderCheckBtn = function (e) { + var t = this, i = t.config; + e = e || {}, t.layBox.each(function (n) { + var l = a(this), r = l.find("." + y), d = l.find("." + u).find('input[type="checkbox"]'), + s = r.find('input[type="checkbox"]'), h = 0, f = !1; + if (s.each(function () { + var e = a(this).data("hide"); + (this.checked || this.disabled || e) && h++, this.checked && !e && (f = !0) + }), d.prop("checked", f && h === s.length), t.layBtn.eq(n)[f ? "removeClass" : "addClass"](o), !e.stopNone) { + var p = r.children("li:not(." + c + ")").length; + t.noneView(r, p ? "" : i.text.none) + } + }), t.renderForm("checkbox") + }, x.prototype.noneView = function (e, t) { + var i = a('

        ' + (t || "") + "

        "); + e.find("." + d)[0] && e.find("." + d).remove(), t.replace(/\s/g, "") && e.append(i) + }, x.prototype.setValue = function () { + var e = this, t = e.config, i = []; + return e.layBox.eq(1).find("." + y + ' input[type="checkbox"]').each(function () { + var e = a(this).data("hide"); + e || i.push(this.value) + }), t.value = i, e + }, x.prototype.parseData = function (e) { + var t = this, i = t.config, n = []; + return layui.each(i.data, function (t, l) { + l = ("function" == typeof i.parseData ? i.parseData(l) : l) || l, n.push(l = a.extend({}, l)), layui.each(i.value, function (e, a) { + a == l.value && (l.selected = !0) + }), e && e(l) + }), i.data = n, t + }, x.prototype.getData = function (e) { + var a = this, t = a.config, i = []; + return a.setValue(), layui.each(e || t.value, function (e, a) { + layui.each(t.data, function (e, t) { + delete t.selected, a == t.value && i.push(t) + }) + }), i + }, x.prototype.events = function () { + var e = this, t = e.config; + e.elem.on("click", 'input[lay-filter="layTransferCheckbox"]+', function () { + var t = a(this).prev(), i = t[0].checked, n = t.parents("." + s).eq(0).find("." + y); + t[0].disabled || ("all" === t.attr("lay-type") && n.find('input[type="checkbox"]').each(function () { + this.disabled || (this.checked = i) + }), e.renderCheckBtn({stopNone: !0})) + }), e.layBtn.on("click", function () { + var i = a(this), n = i.data("index"), l = e.layBox.eq(n), r = []; + if (!i.hasClass(o)) { + e.layBox.eq(n).each(function (t) { + var i = a(this), n = i.find("." + y); + n.children("li").each(function () { + var t = a(this), i = t.find('input[type="checkbox"]'), n = i.data("hide"); + i[0].checked && !n && (i[0].checked = !1, l.siblings("." + s).find("." + y).append(t.clone()), t.remove(), r.push(i[0].value)), e.setValue() + }) + }), e.renderCheckBtn(); + var c = l.siblings("." + s).find("." + h + " input"); + "" === c.val() || c.trigger("keyup"), t.onchange && t.onchange(e.getData(r), n) + } + }), e.laySearch.find("input").on("keyup", function () { + var i = this.value, n = a(this).parents("." + h).eq(0).siblings("." + y), l = n.children("li"); + l.each(function () { + var e = a(this), t = e.find('input[type="checkbox"]'), n = t[0].title.indexOf(i) !== -1; + e[n ? "removeClass" : "addClass"](c), t.data("hide", !n) + }), e.renderCheckBtn(); + var r = l.length === n.children("li." + c).length; + e.noneView(n, r ? t.text.searchNone : "") + }) + }, r.that = {}, r.config = {}, l.reload = function (e, a) { + var t = r.that[e]; + return t.reload(a), r.call(t) + }, l.getData = function (e) { + var a = r.that[e]; + return a.getData() + }, l.render = function (e) { + var a = new x(e); + return r.call(a) + }, e(n, l) +}); +layui.define(["laytpl", "laypage", "layer", "form", "util"], function (e) { + "use strict"; + var t = layui.$, i = layui.laytpl, a = layui.laypage, l = layui.layer, n = layui.form, o = layui.util, + r = layui.hint(), c = layui.device(), d = { + config: {checkName: "LAY_CHECKED", indexName: "LAY_TABLE_INDEX"}, + cache: {}, + index: layui.table ? layui.table.index + 1e4 : 0, + set: function (e) { + var i = this; + return i.config = t.extend({}, i.config, e), i + }, + on: function (e, t) { + return layui.onevent.call(this, h, e, t) + } + }, s = function () { + var e = this, t = e.config, i = t.id || t.index; + return i && (s.that[i] = e, s.config[i] = t), { + config: t, reload: function (t, i) { + e.reload.call(e, t, i) + }, setColsWidth: function () { + e.setColsWidth.call(e) + }, resize: function () { + e.resize.call(e) + } + } + }, u = function (e) { + var t = s.config[e]; + return t || r.error(e ? "The table instance with ID '" + e + "' not found" : "ID argument required"), t || null + }, y = function (e, a, l, n) { + var r = this.config || {}; + r.escape && (a = o.escape(a)); + var c = e.templet ? function () { + return "function" == typeof e.templet ? e.templet(l) : i(t(e.templet).html() || String(a)).render(l) + }() : a; + return n ? t("
        " + c + "
        ").text() : c + }, h = "table", f = ".layui-table", p = "layui-hide", v = "layui-none", m = "layui-table-view", + g = ".layui-table-tool", b = ".layui-table-box", x = ".layui-table-init", k = ".layui-table-header", + C = ".layui-table-body", w = ".layui-table-main", T = ".layui-table-fixed", N = ".layui-table-fixed-l", + L = ".layui-table-fixed-r", _ = ".layui-table-total", S = ".layui-table-page", A = ".layui-table-sort", + R = "layui-table-edit", W = "layui-table-hover", z = function (e) { + var t = '{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}'; + return e = e || {}, ['
        ', "", "{{# layui.each(d.data.cols, function(i1, item1){ }}", "", "{{# layui.each(item1, function(i2, item2){ }}", '{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}', '{{# if(item2.fixed === "right"){ right = true; } }}', function () { + return e.fixed && "right" !== e.fixed ? '{{# if(item2.fixed && item2.fixed !== "right"){ }}' : "right" === e.fixed ? '{{# if(item2.fixed === "right"){ }}' : "" + }(), "{{# var isSort = !(item2.colGroup) && item2.sort; }}", '", e.fixed ? "{{# }; }}" : "", "{{# }); }}", "", "{{# }); }}", "", "
        ', '
        ', '{{# if(item2.type === "checkbox"){ }}', '', "{{# } else { }}", '{{item2.title||""}}', "{{# if(isSort){ }}", '', "{{# } }}", "{{# } }}", "
        ", "
        "].join("") + }, + E = ['', "", "
        "].join(""), + j = ['
        ', "{{# if(d.data.toolbar){ }}", '
        ', '
        ', '
        ', "
        ", "{{# } }}", '
        ', "{{# if(d.data.loading){ }}", '
        ', '', "
        ", "{{# } }}", "{{# var left, right; }}", '
        ', z(), "
        ", '
        ', E, "
        ", "{{# if(left){ }}", '
        ', '
        ', z({fixed: !0}), "
        ", '
        ', E, "
        ", "
        ", "{{# }; }}", "{{# if(right){ }}", '
        ', '
        ', z({fixed: "right"}), '
        ', "
        ", '
        ', E, "
        ", "
        ", "{{# }; }}", "
        ", "{{# if(d.data.totalRow){ }}", '
        ', '', '', "
        ", "
        ", "{{# } }}", "{{# if(d.data.page){ }}", '
        ', '
        ', "
        ", "{{# } }}", "", "
        "].join(""), + F = t(window), I = t(document), H = function (e) { + var i = this; + i.index = ++d.index, i.config = t.extend({}, i.config, d.config, e), i.render() + }; + H.prototype.config = { + limit: 10, + loading: !0, + cellMinWidth: 60, + defaultToolbar: ["filter", "exports", "print"], + autoSort: !0, + text: {none: "\u65e0\u6570\u636e"} + }, H.prototype.render = function () { + var e = this, a = e.config; + if (a.elem = t(a.elem), a.where = a.where || {}, a.id = a.id || a.elem.attr("id") || e.index, a.request = t.extend({ + pageName: "page", + limitName: "limit" + }, a.request), a.response = t.extend({ + statusName: "code", + statusCode: 0, + msgName: "msg", + dataName: "data", + totalRowName: "totalRow", + countName: "count" + }, a.response), "object" == typeof a.page && (a.limit = a.page.limit || a.limit, a.limits = a.page.limits || a.limits, e.page = a.page.curr = a.page.curr || 1, delete a.page.elem, delete a.page.jump), !a.elem[0]) return e; + a.height && /^full-\d+$/.test(a.height) && (e.fullHeightGap = a.height.split("-")[1], a.height = F.height() - e.fullHeightGap), e.setInit(); + var l = a.elem, n = l.next("." + m), o = e.elem = t(i(j).render({VIEW_CLASS: m, data: a, index: e.index})); + if (a.index = e.index, e.key = a.id || a.index, n[0] && n.remove(), l.after(o), e.layTool = o.find(g), e.layBox = o.find(b), e.layHeader = o.find(k), e.layMain = o.find(w), e.layBody = o.find(C), e.layFixed = o.find(T), e.layFixLeft = o.find(N), e.layFixRight = o.find(L), e.layTotal = o.find(_), e.layPage = o.find(S), e.renderToolbar(), e.fullSize(), a.cols.length > 1) { + var r = e.layFixed.find(k).find("th"); + r.height(e.layHeader.height() - 1 - parseFloat(r.css("padding-top")) - parseFloat(r.css("padding-bottom"))) + } + e.pullData(e.page), e.events() + }, H.prototype.initOpts = function (e) { + var t = this, i = (t.config, {checkbox: 48, radio: 48, space: 15, numbers: 40}); + e.checkbox && (e.type = "checkbox"), e.space && (e.type = "space"), e.type || (e.type = "normal"), "normal" !== e.type && (e.unresize = !0, e.width = e.width || i[e.type]) + }, H.prototype.setInit = function (e) { + var t = this, i = t.config; + return i.clientWidth = i.width || function () { + var e = function (t) { + var a, l; + t = t || i.elem.parent(), a = t.width(); + try { + l = "none" === t.css("display") + } catch (n) { + } + return !t[0] || a && !l ? a : e(t.parent()) + }; + return e() + }(), "width" === e ? i.clientWidth : void layui.each(i.cols, function (e, a) { + layui.each(a, function (l, n) { + if (!n) return void a.splice(l, 1); + if (n.key = e + "-" + l, n.hide = n.hide || !1, n.colGroup || n.colspan > 1) { + var o = 0; + layui.each(i.cols[e + 1], function (t, i) { + i.HAS_PARENT || o > 1 && o == n.colspan || (i.HAS_PARENT = !0, i.parentKey = e + "-" + l, o += parseInt(i.colspan > 1 ? i.colspan : 1)) + }), n.colGroup = !0 + } + t.initOpts(n) + }) + }) + }, H.prototype.renderToolbar = function () { + var e = this, a = e.config, + l = ['
        ', '
        ', '
        '].join(""), + n = e.layTool.find(".layui-table-tool-temp"); + if ("default" === a.toolbar) n.html(l); else if ("string" == typeof a.toolbar) { + var o = t(a.toolbar).html() || ""; + o && n.html(i(o).render(a)) + } + var r = { + filter: {title: "\u7b5b\u9009\u5217", layEvent: "LAYTABLE_COLS", icon: "layui-icon-cols"}, + exports: {title: "\u5bfc\u51fa", layEvent: "LAYTABLE_EXPORT", icon: "layui-icon-export"}, + print: {title: "\u6253\u5370", layEvent: "LAYTABLE_PRINT", icon: "layui-icon-print"} + }, c = []; + "object" == typeof a.defaultToolbar && layui.each(a.defaultToolbar, function (e, t) { + var i = "string" == typeof t ? r[t] : t; + i && c.push('
        ') + }), e.layTool.find(".layui-table-tool-self").html(c.join("")) + }, H.prototype.setParentCol = function (e, t) { + var i = this, a = i.config, l = i.layHeader.find('th[data-key="' + a.index + "-" + t + '"]'), + n = parseInt(l.attr("colspan")) || 0; + if (l[0]) { + var o = t.split("-"), r = a.cols[o[0]][o[1]]; + e ? n-- : n++, l.attr("colspan", n), l[n < 1 ? "addClass" : "removeClass"](p), r.colspan = n, r.hide = n < 1; + var c = l.data("parentkey"); + c && i.setParentCol(e, c) + } + }, H.prototype.setColsPatch = function () { + var e = this, t = e.config; + layui.each(t.cols, function (t, i) { + layui.each(i, function (t, i) { + i.hide && e.setParentCol(i.hide, i.parentKey) + }) + }) + }, H.prototype.setColsWidth = function () { + var e = this, t = e.config, i = 0, a = 0, l = 0, n = 0, o = e.setInit("width"); + e.eachCols(function (e, t) { + t.hide || i++ + }), o = o - function () { + return "line" === t.skin || "nob" === t.skin ? 2 : i + 1 + }() - e.getScrollWidth(e.layMain[0]) - 1; + var r = function (e) { + layui.each(t.cols, function (i, r) { + layui.each(r, function (i, c) { + var d = 0, s = c.minWidth || t.cellMinWidth; + return c ? void (c.colGroup || c.hide || (e ? l && l < s && (a--, d = s) : (d = c.width || 0, /\d+%$/.test(d) ? (d = Math.floor(parseFloat(d) / 100 * o), d < s && (d = s)) : d || (c.width = d = 0, a++)), c.hide && (d = 0), n += d)) : void r.splice(i, 1) + }) + }), o > n && a && (l = (o - n) / a) + }; + r(), r(!0), e.autoColNums = a, e.eachCols(function (i, a) { + var n = a.minWidth || t.cellMinWidth; + a.colGroup || a.hide || (0 === a.width ? e.getCssRule(t.index + "-" + a.key, function (e) { + e.style.width = Math.floor(l >= n ? l : n) + "px" + }) : /\d+%$/.test(a.width) && e.getCssRule(t.index + "-" + a.key, function (e) { + e.style.width = Math.floor(parseFloat(a.width) / 100 * o) + "px" + })) + }); + var c = e.layMain.width() - e.getScrollWidth(e.layMain[0]) - e.layMain.children("table").outerWidth(); + if (e.autoColNums && c >= -i && c <= i) { + var d = function (t) { + var i; + return t = t || e.layHeader.eq(0).find("thead th:last-child"), i = t.data("field"), !i && t.prev()[0] ? d(t.prev()) : t + }, s = d(), u = s.data("key"); + e.getCssRule(u, function (t) { + var i = t.style.width || s.outerWidth(); + t.style.width = parseFloat(i) + c + "px", e.layMain.height() - e.layMain.prop("clientHeight") > 0 && (t.style.width = parseFloat(t.style.width) - 1 + "px") + }) + } + e.loading(!0) + }, H.prototype.resize = function () { + var e = this; + e.fullSize(), e.setColsWidth(), e.scrollPatch() + }, H.prototype.reload = function (e, i) { + var a = this; + e = e || {}, delete a.haveInit, layui.each(e, function (e, t) { + "array" === layui._typeof(t) && delete a.config[e] + }), a.config = t.extend(i, {}, a.config, e), a.render() + }, H.prototype.errorView = function (e) { + var i = this, a = i.layMain.find("." + v), l = t('
        ' + (e || "Error") + "
        "); + a[0] && (i.layNone.remove(), a.remove()), i.layFixed.addClass(p), i.layMain.find("tbody").html(""), i.layMain.append(i.layNone = l), d.cache[i.key] = [] + }, H.prototype.page = 1, H.prototype.pullData = function (e) { + var i = this, a = i.config, l = a.request, n = a.response, o = function () { + "object" == typeof a.initSort && i.sort(a.initSort.field, a.initSort.type) + }; + if (i.startTime = (new Date).getTime(), a.url) { + var r = {}; + r[l.pageName] = e, r[l.limitName] = a.limit; + var c = t.extend(r, a.where); + a.contentType && 0 == a.contentType.indexOf("application/json") && (c = JSON.stringify(c)), i.loading(), t.ajax({ + type: a.method || "get", + url: a.url, + contentType: a.contentType, + data: c, + dataType: "json", + headers: a.headers || {}, + success: function (t) { + "function" == typeof a.parseData && (t = a.parseData(t) || t), t[n.statusName] != n.statusCode ? (i.renderForm(), i.errorView(t[n.msgName] || '\u8fd4\u56de\u7684\u6570\u636e\u4e0d\u7b26\u5408\u89c4\u8303\uff0c\u6b63\u786e\u7684\u6210\u529f\u72b6\u6001\u7801\u5e94\u4e3a\uff1a"' + n.statusName + '": ' + n.statusCode)) : (i.renderData(t, e, t[n.countName]), o(), a.time = (new Date).getTime() - i.startTime + " ms"), i.setColsWidth(), "function" == typeof a.done && a.done(t, e, t[n.countName]) + }, + error: function (e, t) { + i.errorView("\u8bf7\u6c42\u5f02\u5e38\uff0c\u9519\u8bef\u63d0\u793a\uff1a" + t), i.renderForm(), i.setColsWidth(), "function" == typeof a.error && a.error(e, t) + } + }) + } else if ("array" === layui._typeof(a.data)) { + var d = {}, s = e * a.limit - a.limit; + d[n.dataName] = a.data.concat().splice(s, a.limit), d[n.countName] = a.data.length, "object" == typeof a.totalRow && (d[n.totalRowName] = t.extend({}, a.totalRow)), i.renderData(d, e, d[n.countName]), o(), i.setColsWidth(), "function" == typeof a.done && a.done(d, e, d[n.countName]) + } + }, H.prototype.eachCols = function (e) { + var t = this; + return d.eachCols(null, e, t.config.cols), t + }, H.prototype.renderData = function (e, n, o, r) { + var c = this, s = c.config, u = e[s.response.dataName] || [], h = e[s.response.totalRowName], f = [], m = [], + g = [], b = function () { + var e; + return !r && c.sortKey ? c.sort(c.sortKey.field, c.sortKey.sort, !0) : (layui.each(u, function (a, l) { + var o = [], u = [], h = [], v = a + s.limit * (n - 1) + 1; + "array" === layui._typeof(l) && 0 === l.length || (r || (l[d.config.indexName] = a), c.eachCols(function (n, r) { + var f = r.field || n, m = s.index + "-" + r.key, g = l[f]; + if (void 0 !== g && null !== g || (g = ""), !r.colGroup) { + var b = ['', '
        ' + function () { + var n = t.extend(!0, {LAY_INDEX: v, LAY_COL: r}, l), o = d.config.checkName; + switch (r.type) { + case"checkbox": + return '"; + case"radio": + return n[o] && (e = a), ''; + case"numbers": + return v + } + return r.toolbar ? i(t(r.toolbar).html() || "").render(n) : y.call(c, r, g, n) + }(), "
        "].join(""); + o.push(b), r.fixed && "right" !== r.fixed && u.push(b), "right" === r.fixed && h.push(b) + } + }), f.push('' + o.join("") + ""), m.push('' + u.join("") + ""), g.push('' + h.join("") + "")) + }), c.layBody.scrollTop(0), c.layMain.find("." + v).remove(), c.layMain.find("tbody").html(f.join("")), c.layFixLeft.find("tbody").html(m.join("")), c.layFixRight.find("tbody").html(g.join("")), c.renderForm(), "number" == typeof e && c.setThisRowChecked(e), c.syncCheckAll(), c.haveInit ? c.scrollPatch() : setTimeout(function () { + c.scrollPatch() + }, 50), c.haveInit = !0, l.close(c.tipsIndex), s.HAS_SET_COLS_PATCH || c.setColsPatch(), void (s.HAS_SET_COLS_PATCH = !0)) + }; + return d.cache[c.key] = u, c.layPage[0 == o || 0 === u.length && 1 == n ? "addClass" : "removeClass"](p), 0 === u.length ? (c.renderForm(), c.errorView(s.text.none)) : (c.layFixed.removeClass(p), r ? b() : (b(), c.renderTotal(u, h), void (s.page && (s.page = t.extend({ + elem: "layui-table-page" + s.index, + count: o, + limit: s.limit, + limits: s.limits || [10, 20, 30, 40, 50, 60, 70, 80, 90], + groups: 3, + layout: ["prev", "page", "next", "skip", "count", "limit"], + prev: '', + next: '', + jump: function (e, t) { + t || (c.page = e.curr, s.limit = e.limit, c.pullData(e.curr)) + } + }, s.page), s.page.count = o, a.render(s.page))))) + }, H.prototype.renderTotal = function (e, a) { + var l = this, n = l.config, o = {}; + if (n.totalRow) { + layui.each(e, function (e, t) { + "array" === layui._typeof(t) && 0 === t.length || l.eachCols(function (e, i) { + var a = i.field || e, l = t[a]; + i.totalRow && (o[a] = (o[a] || 0) + (parseFloat(l) || 0)) + }) + }), l.dataTotal = {}; + var r = []; + l.eachCols(function (e, c) { + var d = c.field || e, s = function () { + var e, t = c.totalRowText || "", i = parseFloat(o[d]).toFixed(2), n = {}; + return n[d] = i, e = c.totalRow ? y.call(l, c, i, n) || t : t, a ? a[c.field] || e : e + }(), u = ['', '
        ' + function () { + var e = c.totalRow || n.totalRow; + return "string" == typeof e ? i(e).render(t.extend({TOTAL_NUMS: s}, c)) : s + }(), "
        "].join(""); + c.field && (l.dataTotal[d] = s), r.push(u) + }), l.layTotal.find("tbody").html("" + r.join("") + "") + } + }, H.prototype.getColElem = function (e, t) { + var i = this, a = i.config; + return e.eq(0).find(".laytable-cell-" + (a.index + "-" + t) + ":eq(0)") + }, H.prototype.renderForm = function (e) { + n.render(e, "LAY-table-" + this.index) + }, H.prototype.setThisRowChecked = function (e) { + var t = this, i = (t.config, "layui-table-click"), a = t.layBody.find('tr[data-index="' + e + '"]'); + a.addClass(i).siblings("tr").removeClass(i) + }, H.prototype.sort = function (e, i, a, l) { + var n, o, c = this, s = {}, u = c.config, y = u.elem.attr("lay-filter"), f = d.cache[c.key]; + "string" == typeof e && (n = e, c.layHeader.find("th").each(function (i, a) { + var l = t(this), o = l.data("field"); + if (o === e) return e = l, n = o, !1 + })); + try { + var n = n || e.data("field"), p = e.data("key"); + if (c.sortKey && !a && n === c.sortKey.field && i === c.sortKey.sort) return; + var v = c.layHeader.find("th .laytable-cell-" + p).find(A); + c.layHeader.find("th").find(A).removeAttr("lay-sort"), v.attr("lay-sort", i || null), c.layFixed.find("th") + } catch (m) { + r.error("Table modules: sort field '" + n + "' not matched") + } + c.sortKey = { + field: n, + sort: i + }, u.autoSort && ("asc" === i ? o = layui.sort(f, n) : "desc" === i ? o = layui.sort(f, n, !0) : (o = layui.sort(f, d.config.indexName), delete c.sortKey)), s[u.response.dataName] = o || f, c.renderData(s, c.page, c.count, !0), l && layui.event.call(e, h, "sort(" + y + ")", { + field: n, + type: i + }) + }, H.prototype.loading = function (e) { + var i = this, a = i.config; + a.loading && (e ? (i.layInit && i.layInit.remove(), delete i.layInit, i.layBox.find(x).remove()) : (i.layInit = t(['
        ', '', "
        "].join("")), i.layBox.append(i.layInit))) + }, H.prototype.setCheckData = function (e, t) { + var i = this, a = i.config, l = d.cache[i.key]; + l[e] && "array" !== layui._typeof(l[e]) && (l[e][a.checkName] = t) + }, H.prototype.syncCheckAll = function () { + var e = this, t = e.config, i = e.layHeader.find('input[name="layTableCheckbox"]'), a = function (i) { + return e.eachCols(function (e, a) { + "checkbox" === a.type && (a[t.checkName] = i) + }), i + }; + i[0] && (d.checkStatus(e.key).isAll ? (i[0].checked || (i.prop("checked", !0), e.renderForm("checkbox")), a(!0)) : (i[0].checked && (i.prop("checked", !1), e.renderForm("checkbox")), a(!1))) + }, H.prototype.getCssRule = function (e, t) { + var i = this, a = i.elem.find("style")[0], l = a.sheet || a.styleSheet || {}, n = l.cssRules || l.rules; + layui.each(n, function (i, a) { + if (a.selectorText === ".laytable-cell-" + e) return t(a), !0 + }) + }, H.prototype.fullSize = function () { + var e, t = this, i = t.config, a = i.height; + t.fullHeightGap && (a = F.height() - t.fullHeightGap, a < 135 && (a = 135), t.elem.css("height", a)), a && (e = parseFloat(a) - (t.layHeader.outerHeight() || 38), i.toolbar && (e -= t.layTool.outerHeight() || 50), i.totalRow && (e -= t.layTotal.outerHeight() || 40), i.page && (e -= t.layPage.outerHeight() || 41), t.layMain.css("height", e - 2)) + }, H.prototype.getScrollWidth = function (e) { + var t = 0; + return e ? t = e.offsetWidth - e.clientWidth : (e = document.createElement("div"), e.style.width = "100px", e.style.height = "100px", e.style.overflowY = "scroll", document.body.appendChild(e), t = e.offsetWidth - e.clientWidth, document.body.removeChild(e)), t + }, H.prototype.scrollPatch = function () { + var e = this, i = e.layMain.children("table"), a = e.layMain.width() - e.layMain.prop("clientWidth"), + l = e.layMain.height() - e.layMain.prop("clientHeight"), + n = (e.getScrollWidth(e.layMain[0]), i.outerWidth() - e.layMain.width()), o = function (e) { + if (a && l) { + if (e = e.eq(0), !e.find(".layui-table-patch")[0]) { + var i = t('
        '); + i.find("div").css({width: a}), e.find("tr").append(i) + } + } else e.find(".layui-table-patch").remove() + }; + o(e.layHeader), o(e.layTotal); + var r = e.layMain.height(), c = r - l; + e.layFixed.find(C).css("height", i.height() >= c ? c : "auto"), e.layFixRight[n > 0 ? "removeClass" : "addClass"](p), e.layFixRight.css("right", a - 1) + }, H.prototype.events = function () { + var e, i = this, a = i.config, o = t("body"), r = {}, s = i.layHeader.find("th"), u = ".layui-table-cell", + f = a.elem.attr("lay-filter"); + i.layTool.on("click", "*[lay-event]", function (e) { + var o = t(this), r = o.attr("lay-event"), s = function (e) { + var l = t(e.list), n = t('
          '); + n.html(l), a.height && n.css("max-height", a.height - (i.layTool.outerHeight() || 50)), o.find(".layui-table-tool-panel")[0] || o.append(n), i.renderForm(), n.on("click", function (e) { + layui.stope(e) + }), e.done && e.done(n, l) + }; + switch (layui.stope(e), I.trigger("table.tool.panel.remove"), l.close(i.tipsIndex), r) { + case"LAYTABLE_COLS": + s({ + list: function () { + var e = []; + return i.eachCols(function (t, i) { + i.field && "normal" == i.type && e.push('
        • ') + }), e.join("") + }(), done: function () { + n.on("checkbox(LAY_TABLE_TOOL_COLS)", function (e) { + var l = t(e.elem), n = this.checked, o = l.data("key"), r = l.data("parentkey"); + layui.each(a.cols, function (e, t) { + layui.each(t, function (t, l) { + if (e + "-" + t === o) { + var c = l.hide; + l.hide = !n, i.elem.find('*[data-key="' + a.index + "-" + o + '"]')[n ? "removeClass" : "addClass"](p), c != l.hide && i.setParentCol(!n, r), i.resize() + } + }) + }) + }) + } + }); + break; + case"LAYTABLE_EXPORT": + c.ie ? l.tips("\u5bfc\u51fa\u529f\u80fd\u4e0d\u652f\u6301 IE\uff0c\u8bf7\u7528 Chrome \u7b49\u9ad8\u7ea7\u6d4f\u89c8\u5668\u5bfc\u51fa", this, {tips: 3}) : s({ + list: function () { + return ['
        • \u5bfc\u51fa\u5230 Csv \u6587\u4ef6
        • ', '
        • \u5bfc\u51fa\u5230 Excel \u6587\u4ef6
        • '].join("") + }(), done: function (e, l) { + l.on("click", function () { + var e = t(this).data("type"); + d.exportFile.call(i, a.id, null, e) + }) + } + }); + break; + case"LAYTABLE_PRINT": + var u = window.open("\u6253\u5370\u7a97\u53e3", "_blank"), + y = [""].join(""), + v = t(i.layHeader.html()); + v.append(i.layMain.find("table").html()), v.append(i.layTotal.find("table").html()), v.find("th.layui-table-patch").remove(), v.find(".layui-table-col-special").remove(), u.document.write(y + v.prop("outerHTML")), u.document.close(), u.print(), u.close() + } + layui.event.call(this, h, "toolbar(" + f + ")", t.extend({event: r, config: a}, {})) + }), s.on("mousemove", function (e) { + var i = t(this), a = i.offset().left, l = e.clientX - a; + i.data("unresize") || r.resizeStart || (r.allowResize = i.width() - l <= 10, o.css("cursor", r.allowResize ? "col-resize" : "")) + }).on("mouseleave", function () { + t(this); + r.resizeStart || o.css("cursor", "") + }).on("mousedown", function (e) { + var l = t(this); + if (r.allowResize) { + var n = l.data("key"); + e.preventDefault(), r.resizeStart = !0, r.offset = [e.clientX, e.clientY], i.getCssRule(n, function (e) { + var t = e.style.width || l.outerWidth(); + r.rule = e, r.ruleWidth = parseFloat(t), r.minWidth = l.data("minwidth") || a.cellMinWidth + }) + } + }), I.on("mousemove", function (t) { + if (r.resizeStart) { + if (t.preventDefault(), r.rule) { + var a = r.ruleWidth + t.clientX - r.offset[0]; + a < r.minWidth && (a = r.minWidth), r.rule.style.width = a + "px", l.close(i.tipsIndex) + } + e = 1 + } + }).on("mouseup", function (t) { + r.resizeStart && (r = {}, o.css("cursor", ""), i.scrollPatch()), 2 === e && (e = null) + }), s.on("click", function (a) { + var l, n = t(this), o = n.find(A), r = o.attr("lay-sort"); + return o[0] && 1 !== e ? (l = "asc" === r ? "desc" : "desc" === r ? null : "asc", void i.sort(n, l, null, !0)) : e = 2 + }).find(A + " .layui-edge ").on("click", function (e) { + var a = t(this), l = a.index(), n = a.parents("th").eq(0).data("field"); + layui.stope(e), 0 === l ? i.sort(n, "asc", null, !0) : i.sort(n, "desc", null, !0) + }); + var v = function (e) { + var a = t(this), l = a.parents("tr").eq(0).data("index"), n = i.layBody.find('tr[data-index="' + l + '"]'), + o = d.cache[i.key] || []; + return o = o[l] || {}, t.extend({ + tr: n, data: d.clearCacheKey(o), del: function () { + d.cache[i.key][l] = [], n.remove(), i.scrollPatch() + }, update: function (e) { + e = e || {}, layui.each(e, function (e, t) { + if (e in o) { + var a, l = n.children('td[data-field="' + e + '"]'); + o[e] = t, i.eachCols(function (t, i) { + i.field == e && i.templet && (a = i.templet) + }), l.children(u).html(y.call(i, {templet: a}, t, o)), l.data("content", t) + } + }) + } + }, e) + }; + i.elem.on("click", 'input[name="layTableCheckbox"]+', function () { + var e = t(this).prev(), a = i.layBody.find('input[name="layTableCheckbox"]'), + l = e.parents("tr").eq(0).data("index"), n = e[0].checked, + o = "layTableAllChoose" === e.attr("lay-filter"); + o ? (a.each(function (e, t) { + t.checked = n, i.setCheckData(e, n) + }), i.syncCheckAll(), i.renderForm("checkbox")) : (i.setCheckData(l, n), i.syncCheckAll()), layui.event.call(e[0], h, "checkbox(" + f + ")", v.call(e[0], { + checked: n, + type: o ? "all" : "one" + })) + }), i.elem.on("click", 'input[lay-type="layTableRadio"]+', function () { + var e = t(this).prev(), l = e[0].checked, n = d.cache[i.key], o = e.parents("tr").eq(0).data("index"); + layui.each(n, function (e, t) { + o === e ? t[a.checkName] = !0 : delete t[a.checkName] + }), i.setThisRowChecked(o), layui.event.call(this, h, "radio(" + f + ")", v.call(this, {checked: l})) + }), i.layBody.on("mouseenter", "tr", function () { + var e = t(this), a = e.index(); + e.data("off") || i.layBody.find("tr:eq(" + a + ")").addClass(W) + }).on("mouseleave", "tr", function () { + var e = t(this), a = e.index(); + e.data("off") || i.layBody.find("tr:eq(" + a + ")").removeClass(W) + }).on("click", "tr", function () { + m.call(this, "row") + }).on("dblclick", "tr", function () { + m.call(this, "rowDouble") + }); + var m = function (e) { + var i = t(this); + i.data("off") || layui.event.call(this, h, e + "(" + f + ")", v.call(i.children("td")[0])) + }; + i.layBody.on("change", "." + R, function () { + var e = t(this), a = this.value, l = e.parent().data("field"), n = e.parents("tr").eq(0).data("index"), + o = d.cache[i.key][n]; + o[l] = a, layui.event.call(this, h, "edit(" + f + ")", v.call(this, {value: a, field: l})) + }).on("blur", "." + R, function () { + var e, a = t(this), l = this, n = a.parent().data("field"), o = a.parents("tr").eq(0).data("index"), + r = d.cache[i.key][o]; + i.eachCols(function (t, i) { + i.field == n && i.templet && (e = i.templet) + }), a.siblings(u).html(function (t) { + return y.call(i, {templet: e}, t, r) + }(l.value)), a.parent().data("content", l.value), a.remove() + }), i.layBody.on("click", "td", function (e) { + var i = t(this), a = (i.data("field"), i.data("edit")), l = i.children(u); + if (!i.data("off") && a) { + var n = t(''); + return n[0].value = i.data("content") || l.text(), i.find("." + R)[0] || i.append(n), n.focus(), void layui.stope(e) + } + }).on("mouseenter", "td", function () { + b.call(this) + }).on("mouseleave", "td", function () { + b.call(this, "hide") + }); + var g = "layui-table-grid-down", b = function (e) { + var i = t(this), a = i.children(u); + if (!i.data("off")) if (e) i.find(".layui-table-grid-down").remove(); else if (a.prop("scrollWidth") > a.outerWidth()) { + if (a.find("." + g)[0]) return; + i.append('
          ') + } + }; + i.layBody.on("click", "." + g, function (e) { + var n = t(this), o = n.parent(), r = o.children(u); + i.tipsIndex = l.tips(['
          ', r.html(), "
          ", ''].join(""), r[0], { + tips: [3, ""], + time: -1, + anim: -1, + maxWidth: c.ios || c.android ? 300 : i.elem.width() / 2, + isOutAnim: !1, + skin: "layui-table-tips", + success: function (e, t) { + e.find(".layui-table-tips-c").on("click", function () { + l.close(t) + }) + } + }), layui.stope(e) + }), i.layBody.on("click", "*[lay-event]", function () { + var e = t(this), a = e.parents("tr").eq(0).data("index"); + layui.event.call(this, h, "tool(" + f + ")", v.call(this, {event: e.attr("lay-event")})), i.setThisRowChecked(a) + }), i.layMain.on("scroll", function () { + var e = t(this), a = e.scrollLeft(), n = e.scrollTop(); + i.layHeader.scrollLeft(a), i.layTotal.scrollLeft(a), i.layFixed.find(C).scrollTop(n), l.close(i.tipsIndex) + }), F.on("resize", function () { + i.resize() + }) + }, function () { + I.on("click", function () { + I.trigger("table.remove.tool.panel") + }), I.on("table.remove.tool.panel", function () { + t(".layui-table-tool-panel").remove() + }) + }(), d.init = function (e, i) { + i = i || {}; + var a = this, l = t(e ? 'table[lay-filter="' + e + '"]' : f + "[lay-data]"), + n = "Table element property lay-data configuration item has a syntax error: "; + return l.each(function () { + var a = t(this), l = a.attr("lay-data"); + try { + l = new Function("return " + l)() + } catch (o) { + r.error(n + l, "error") + } + var c = [], s = t.extend({ + elem: this, + cols: [], + data: [], + skin: a.attr("lay-skin"), + size: a.attr("lay-size"), + even: "string" == typeof a.attr("lay-even") + }, d.config, i, l); + e && a.hide(), a.find("thead>tr").each(function (e) { + s.cols[e] = [], t(this).children().each(function (i) { + var a = t(this), l = a.attr("lay-data"); + try { + l = new Function("return " + l)() + } catch (o) { + return r.error(n + l) + } + var d = t.extend({ + title: a.text(), + colspan: a.attr("colspan") || 0, + rowspan: a.attr("rowspan") || 0 + }, l); + d.colspan < 2 && c.push(d), s.cols[e].push(d) + }) + }), a.find("tbody>tr").each(function (e) { + var i = t(this), a = {}; + i.children("td").each(function (e, i) { + var l = t(this), n = l.data("field"); + if (n) return a[n] = l.html() + }), layui.each(c, function (e, t) { + var l = i.children("td").eq(e); + a[t.field] = l.html() + }), s.data[e] = a + }), d.render(s) + }), a + }, s.that = {}, s.config = {}, d.eachCols = function (e, i, a) { + var l = s.config[e] || {}, n = [], o = 0; + a = t.extend(!0, [], a || l.cols), layui.each(a, function (e, t) { + layui.each(t, function (t, i) { + if (i.colGroup) { + var l = 0; + o++, i.CHILD_COLS = [], layui.each(a[e + 1], function (e, t) { + t.PARENT_COL_INDEX || l > 1 && l == i.colspan || (t.PARENT_COL_INDEX = o, i.CHILD_COLS.push(t), l += parseInt(t.colspan > 1 ? t.colspan : 1)) + }) + } + i.PARENT_COL_INDEX || n.push(i) + }) + }); + var r = function (e) { + layui.each(e || n, function (e, t) { + return t.CHILD_COLS ? r(t.CHILD_COLS) : void ("function" == typeof i && i(e, t)) + }) + }; + r() + }, d.checkStatus = function (e) { + var t = 0, i = 0, a = [], l = d.cache[e] || []; + return layui.each(l, function (e, l) { + return "array" === layui._typeof(l) ? void i++ : void (l[d.config.checkName] && (t++, a.push(d.clearCacheKey(l)))) + }), {data: a, isAll: !!l.length && t === l.length - i} + }, d.getData = function (e) { + var t = [], i = d.cache[e] || []; + return layui.each(i, function (e, i) { + "array" !== layui._typeof(i) && t.push(d.clearCacheKey(i)) + }), t + }, d.exportFile = function (e, t, i) { + var a = this; + t = t || d.clearCacheKey(d.cache[e]), i = i || "csv"; + var l = s.that[e], n = s.config[e] || {}, o = {csv: "text/csv", xls: "application/vnd.ms-excel"}[i], + u = document.createElement("a"); + return c.ie ? r.error("IE_NOT_SUPPORT_EXPORTS") : (u.href = "data:" + o + ";charset=utf-8,\ufeff" + encodeURIComponent(function () { + var i = [], n = [], o = []; + return layui.each(t, function (t, a) { + var o = []; + "object" == typeof e ? (layui.each(e, function (e, a) { + 0 == t && i.push(a || "") + }), layui.each(d.clearCacheKey(a), function (e, t) { + o.push('"' + (t || "") + '"') + })) : d.eachCols(e, function (e, n) { + if (n.field && "normal" == n.type && !n.hide) { + var r = a[n.field]; + void 0 !== r && null !== r || (r = ""), 0 == t && i.push(n.title || ""), o.push('"' + y.call(l, n, r, a, "text") + '"') + } + }), n.push(o.join(",")) + }), layui.each(a.dataTotal, function (e, t) { + o.push(t) + }), i.join(",") + "\r\n" + n.join("\r\n") + "\r\n" + o.join(",") + }()), u.download = (n.title || "table_" + (n.index || "")) + "." + i, document.body.appendChild(u), u.click(), void document.body.removeChild(u)) + }, d.resize = function (e) { + if (e) { + var t = u(e); + if (!t) return; + s.that[e].resize() + } else layui.each(s.that, function () { + this.resize() + }) + }, d.reload = function (e, t, i) { + var a = u(e); + if (a) { + var l = s.that[e]; + return l.reload(t, i), s.call(l) + } + }, d.render = function (e) { + var t = new H(e); + return s.call(t) + }, d.clearCacheKey = function (e) { + return e = t.extend({}, e), delete e[d.config.checkName], delete e[d.config.indexName], e + }, t(function () { + d.init() + }), e(h, d) +}); +layui.define("jquery", function (e) { + "use strict"; + var i = layui.$, n = (layui.hint(), layui.device(), { + config: {}, set: function (e) { + var n = this; + return n.config = i.extend({}, n.config, e), n + }, on: function (e, i) { + return layui.onevent.call(this, t, e, i) + } + }), t = "carousel", a = "layui-this", l = ">*[carousel-item]>*", o = "layui-carousel-left", + r = "layui-carousel-right", d = "layui-carousel-prev", s = "layui-carousel-next", u = "layui-carousel-arrow", + c = "layui-carousel-ind", m = function (e) { + var t = this; + t.config = i.extend({}, t.config, n.config, e), t.render() + }; + m.prototype.config = { + width: "600px", + height: "280px", + full: !1, + arrow: "hover", + indicator: "inside", + autoplay: !0, + interval: 3e3, + anim: "", + trigger: "click", + index: 0 + }, m.prototype.render = function () { + var e = this, n = e.config; + n.elem = i(n.elem), n.elem[0] && (e.elemItem = n.elem.find(l), n.index < 0 && (n.index = 0), n.index >= e.elemItem.length && (n.index = e.elemItem.length - 1), n.interval < 800 && (n.interval = 800), n.full ? n.elem.css({ + position: "fixed", + width: "100%", + height: "100%", + zIndex: 9999 + }) : n.elem.css({ + width: n.width, + height: n.height + }), n.elem.attr("lay-anim", n.anim), e.elemItem.eq(n.index).addClass(a), e.elemItem.length <= 1 || (e.indicator(), e.arrow(), e.autoplay(), e.events())) + }, m.prototype.reload = function (e) { + var n = this; + clearInterval(n.timer), n.config = i.extend({}, n.config, e), n.render() + }, m.prototype.prevIndex = function () { + var e = this, i = e.config, n = i.index - 1; + return n < 0 && (n = e.elemItem.length - 1), n + }, m.prototype.nextIndex = function () { + var e = this, i = e.config, n = i.index + 1; + return n >= e.elemItem.length && (n = 0), n + }, m.prototype.addIndex = function (e) { + var i = this, n = i.config; + e = e || 1, n.index = n.index + e, n.index >= i.elemItem.length && (n.index = 0) + }, m.prototype.subIndex = function (e) { + var i = this, n = i.config; + e = e || 1, n.index = n.index - e, n.index < 0 && (n.index = i.elemItem.length - 1) + }, m.prototype.autoplay = function () { + var e = this, i = e.config; + i.autoplay && (clearInterval(e.timer), e.timer = setInterval(function () { + e.slide() + }, i.interval)) + }, m.prototype.arrow = function () { + var e = this, n = e.config, + t = i(['", '"].join("")); + n.elem.attr("lay-arrow", n.arrow), n.elem.find("." + u)[0] && n.elem.find("." + u).remove(), n.elem.append(t), t.on("click", function () { + var n = i(this), t = n.attr("lay-type"); + e.slide(t) + }) + }, m.prototype.indicator = function () { + var e = this, n = e.config, t = e.elemInd = i(['
            ', function () { + var i = []; + return layui.each(e.elemItem, function (e) { + i.push("") + }), i.join("") + }(), "
          "].join("")); + n.elem.attr("lay-indicator", n.indicator), n.elem.find("." + c)[0] && n.elem.find("." + c).remove(), n.elem.append(t), "updown" === n.anim && t.css("margin-top", -(t.height() / 2)), t.find("li").on("hover" === n.trigger ? "mouseover" : n.trigger, function () { + var t = i(this), a = t.index(); + a > n.index ? e.slide("add", a - n.index) : a < n.index && e.slide("sub", n.index - a) + }) + }, m.prototype.slide = function (e, i) { + var n = this, l = n.elemItem, u = n.config, c = u.index, m = u.elem.attr("lay-filter"); + n.haveSlide || ("sub" === e ? (n.subIndex(i), l.eq(u.index).addClass(d), setTimeout(function () { + l.eq(c).addClass(r), l.eq(u.index).addClass(r) + }, 50)) : (n.addIndex(i), l.eq(u.index).addClass(s), setTimeout(function () { + l.eq(c).addClass(o), l.eq(u.index).addClass(o) + }, 50)), setTimeout(function () { + l.removeClass(a + " " + d + " " + s + " " + o + " " + r), l.eq(u.index).addClass(a), n.haveSlide = !1 + }, 300), n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a), n.haveSlide = !0, layui.event.call(this, t, "change(" + m + ")", { + index: u.index, + prevIndex: c, + item: l.eq(u.index) + })) + }, m.prototype.events = function () { + var e = this, i = e.config; + i.elem.data("haveEvents") || (i.elem.on("mouseenter", function () { + clearInterval(e.timer) + }).on("mouseleave", function () { + e.autoplay() + }), i.elem.data("haveEvents", !0)) + }, n.render = function (e) { + var i = new m(e); + return i + }, e(t, n) +}); +layui.define("jquery", function (e) { + "use strict"; + var a = layui.jquery, l = { + config: {}, index: layui.rate ? layui.rate.index + 1e4 : 0, set: function (e) { + var l = this; + return l.config = a.extend({}, l.config, e), l + }, on: function (e, a) { + return layui.onevent.call(this, n, e, a) + } + }, i = function () { + var e = this, a = e.config; + return { + setvalue: function (a) { + e.setvalue.call(e, a) + }, config: a + } + }, n = "rate", t = "layui-rate", o = "layui-icon-rate", u = "layui-icon-rate-solid", s = "layui-icon-rate-half", + r = "layui-icon-rate-solid layui-icon-rate-half", c = "layui-icon-rate-solid layui-icon-rate", + f = "layui-icon-rate layui-icon-rate-half", v = function (e) { + var i = this; + i.index = ++l.index, i.config = a.extend({}, i.config, l.config, e), i.render() + }; + v.prototype.config = { + length: 5, + text: !1, + readonly: !1, + half: !1, + value: 0, + theme: "" + }, v.prototype.render = function () { + var e = this, l = e.config, i = l.theme ? 'style="color: ' + l.theme + ';"' : ""; + l.elem = a(l.elem), l.value > l.length && (l.value = l.length), parseInt(l.value) !== l.value && (l.half || (l.value = Math.ceil(l.value) - l.value < .5 ? Math.ceil(l.value) : Math.floor(l.value))); + for (var n = '
            ", s = 1; s <= l.length; s++) { + var r = '
          • "; + l.half && parseInt(l.value) !== l.value && s == Math.ceil(l.value) ? n = n + '
          • " : n += r + } + n += "
          " + (l.text ? '' + l.value + "\u661f" : "") + ""; + var c = l.elem, f = c.next("." + t); + f[0] && f.remove(), e.elemTemp = a(n), l.span = e.elemTemp.next("span"), l.setText && l.setText(l.value), c.html(e.elemTemp), c.addClass("layui-inline"), l.readonly || e.action() + }, v.prototype.setvalue = function (e) { + var a = this, l = a.config; + l.value = e, a.render() + }, v.prototype.action = function () { + var e = this, l = e.config, i = e.elemTemp, n = i.find("i").width(); + i.children("li").each(function (e) { + var t = e + 1, v = a(this); + v.on("click", function (e) { + if (l.value = t, l.half) { + var o = e.pageX - a(this).offset().left; + o <= n / 2 && (l.value = l.value - .5) + } + l.text && i.next("span").text(l.value + "\u661f"), l.choose && l.choose(l.value), l.setText && l.setText(l.value) + }), v.on("mousemove", function (e) { + if (i.find("i").each(function () { + a(this).addClass(o).removeClass(r) + }), i.find("i:lt(" + t + ")").each(function () { + a(this).addClass(u).removeClass(f) + }), l.half) { + var c = e.pageX - a(this).offset().left; + c <= n / 2 && v.children("i").addClass(s).removeClass(u) + } + }), v.on("mouseleave", function () { + i.find("i").each(function () { + a(this).addClass(o).removeClass(r) + }), i.find("i:lt(" + Math.floor(l.value) + ")").each(function () { + a(this).addClass(u).removeClass(f) + }), l.half && parseInt(l.value) !== l.value && i.children("li:eq(" + Math.floor(l.value) + ")").children("i").addClass(s).removeClass(c) + }) + }) + }, v.prototype.events = function () { + var e = this; + e.config + }, l.render = function (e) { + var a = new v(e); + return i.call(a) + }, e(n, l) +}); +layui.define("jquery", function (e) { + "use strict"; + var l = layui.$, o = function (e) { + }, t = ''; + o.prototype.load = function (e) { + var o, i, n, r, a = this, c = 0; + e = e || {}; + var m = l(e.elem); + if (m[0]) { + var f = l(e.scrollElem || document), u = e.mb || 50, s = !("isAuto" in e) || e.isAuto, + y = e.end || "\u6ca1\u6709\u66f4\u591a\u4e86", v = e.scrollElem && e.scrollElem !== document, + d = "\u52a0\u8f7d\u66f4\u591a", + h = l('"); + m.find(".layui-flow-more")[0] || m.append(h); + var p = function (e, t) { + e = l(e), h.before(e), t = 0 == t || null, t ? h.html(y) : h.find("a").html(d), i = t, o = null, n && n() + }, g = function () { + o = !0, h.find("a").html(t), "function" == typeof e.done && e.done(++c, p) + }; + if (g(), h.find("a").on("click", function () { + l(this); + i || o || g() + }), e.isLazyimg) var n = a.lazyimg({elem: e.elem + " img", scrollElem: e.scrollElem}); + return s ? (f.on("scroll", function () { + var e = l(this), t = e.scrollTop(); + r && clearTimeout(r), !i && m.width() && (r = setTimeout(function () { + var i = v ? e.height() : l(window).height(), + n = v ? e.prop("scrollHeight") : document.documentElement.scrollHeight; + n - t - i <= u && (o || g()) + }, 100)) + }), a) : a + } + }, o.prototype.lazyimg = function (e) { + var o, t = this, i = 0; + e = e || {}; + var n = l(e.scrollElem || document), r = e.elem || "img", a = e.scrollElem && e.scrollElem !== document, + c = function (e, l) { + var o = n.scrollTop(), r = o + l, c = a ? function () { + return e.offset().top - n.offset().top + o + }() : e.offset().top; + if (c >= o && c <= r && e.attr("lay-src")) { + var f = e.attr("lay-src"); + layui.img(f, function () { + var l = t.lazyimg.elem.eq(i); + e.attr("src", f).removeAttr("lay-src"), l[0] && m(l), i++ + }, function () { + t.lazyimg.elem.eq(i); + e.removeAttr("lay-src") + }) + } + }, m = function (e, o) { + var m = a ? (o || n).height() : l(window).height(), f = n.scrollTop(), u = f + m; + if (t.lazyimg.elem = l(r), e) c(e, m); else for (var s = 0; s < t.lazyimg.elem.length; s++) { + var y = t.lazyimg.elem.eq(s), v = a ? function () { + return y.offset().top - n.offset().top + f + }() : y.offset().top; + if (c(y, m), i = s, v > u) break + } + }; + if (m(), !o) { + var f; + n.on("scroll", function () { + var e = l(this); + f && clearTimeout(f), f = setTimeout(function () { + m(null, e) + }, 50) + }), o = !0 + } + return m + }, e("flow", new o) +}); +layui.define(["layer", "form"], function (t) { + "use strict"; + var e = layui.$, i = layui.layer, a = layui.form, l = (layui.hint(), layui.device()), n = "layedit", + o = "layui-show", r = "layui-disabled", c = function () { + var t = this; + t.index = 0, t.config = { + tool: ["strong", "italic", "underline", "del", "|", "left", "center", "right", "|", "link", "unlink", "face", "image"], + hideTool: [], + height: 280 + } + }; + c.prototype.set = function (t) { + var i = this; + return e.extend(!0, i.config, t), i + }, c.prototype.on = function (t, e) { + return layui.onevent(n, t, e) + }, c.prototype.build = function (t, i) { + i = i || {}; + var a = this, n = a.config, r = "layui-layedit", c = e("string" == typeof t ? "#" + t : t), + u = "LAY_layedit_" + ++a.index, d = c.next("." + r), y = e.extend({}, n, i), f = function () { + var t = [], e = {}; + return layui.each(y.hideTool, function (t, i) { + e[i] = !0 + }), layui.each(y.tool, function (i, a) { + C[a] && !e[a] && t.push(C[a]) + }), t.join("") + }(), + m = e(['
          ', '
          ' + f + "
          ", '
          ', '', "
          ", "
          "].join("")); + return l.ie && l.ie < 8 ? c.removeClass("layui-hide").addClass(o) : (d[0] && d.remove(), s.call(a, m, c[0], y), c.addClass("layui-hide").after(m), a.index) + }, c.prototype.getContent = function (t) { + var e = u(t); + if (e[0]) return d(e[0].document.body.innerHTML) + }, c.prototype.getText = function (t) { + var i = u(t); + if (i[0]) return e(i[0].document.body).text() + }, c.prototype.setContent = function (t, i, a) { + var l = u(t); + l[0] && (a ? e(l[0].document.body).append(i) : e(l[0].document.body).html(i), layedit.sync(t)) + }, c.prototype.sync = function (t) { + var i = u(t); + if (i[0]) { + var a = e("#" + i[1].attr("textarea")); + a.val(d(i[0].document.body.innerHTML)) + } + }, c.prototype.getSelection = function (t) { + var e = u(t); + if (e[0]) { + var i = m(e[0].document); + return document.selection ? i.text : i.toString() + } + }; + var s = function (t, i, a) { + var l = this, n = t.find("iframe"); + n.css({height: a.height}).on("load", function () { + var o = n.contents(), r = n.prop("contentWindow"), c = o.find("head"), + s = e([""].join("")), + u = o.find("body"); + c.append(s), u.attr("contenteditable", "true").css({"min-height": a.height}).html(i.value || ""), y.apply(l, [r, n, i, a]), g.call(l, r, t, a) + }) + }, u = function (t) { + var i = e("#LAY_layedit_" + t), a = i.prop("contentWindow"); + return [a, i] + }, d = function (t) { + return 8 == l.ie && (t = t.replace(/<.+>/g, function (t) { + return t.toLowerCase() + })), t + }, y = function (t, a, n, o) { + var r = t.document, c = e(r.body); + c.on("keydown", function (t) { + var e = t.keyCode; + if (13 === e) { + var a = m(r), l = p(a), n = l.parentNode; + if ("pre" === n.tagName.toLowerCase()) { + if (t.shiftKey) return; + return i.msg("\u8bf7\u6682\u65f6\u7528shift+enter"), !1 + } + r.execCommand("formatBlock", !1, "

          ") + } + }), e(n).parents("form").on("submit", function () { + var t = c.html(); + 8 == l.ie && (t = t.replace(/<.+>/g, function (t) { + return t.toLowerCase() + })), n.value = t + }), c.on("paste", function (e) { + r.execCommand("formatBlock", !1, "

          "), setTimeout(function () { + f.call(t, c), n.value = c.html() + }, 100) + }) + }, f = function (t) { + var i = this; + i.document; + t.find("*[style]").each(function () { + var t = this.style.textAlign; + this.removeAttribute("style"), e(this).css({"text-align": t || ""}) + }), t.find("table").addClass("layui-table"), t.find("script,link").remove() + }, m = function (t) { + return t.selection ? t.selection.createRange() : t.getSelection().getRangeAt(0) + }, p = function (t) { + return t.endContainer || t.parentElement().childNodes[0] + }, v = function (t, i, a) { + var l = this.document, n = document.createElement(t); + for (var o in i) n.setAttribute(o, i[o]); + if (n.removeAttribute("text"), l.selection) { + var r = a.text || i.text; + if ("a" === t && !r) return; + r && (n.innerHTML = r), a.pasteHTML(e(n).prop("outerHTML")), a.select() + } else { + var r = a.toString() || i.text; + if ("a" === t && !r) return; + r && (n.innerHTML = r), a.deleteContents(), a.insertNode(n) + } + }, h = function (t, i) { + var a = this.document, l = "layedit-tool-active", n = p(m(a)), o = function (e) { + return t.find(".layedit-tool-" + e) + }; + i && i[i.hasClass(l) ? "removeClass" : "addClass"](l), t.find(">i").removeClass(l), o("unlink").addClass(r), e(n).parents().each(function () { + var t = this.tagName.toLowerCase(), e = this.style.textAlign; + "b" !== t && "strong" !== t || o("b").addClass(l), "i" !== t && "em" !== t || o("i").addClass(l), "u" === t && o("u").addClass(l), "strike" === t && o("d").addClass(l), "p" === t && ("center" === e ? o("center").addClass(l) : "right" === e ? o("right").addClass(l) : o("left").addClass(l)), "a" === t && (o("link").addClass(l), o("unlink").removeClass(r)) + }) + }, g = function (t, a, l) { + var n = t.document, o = e(n.body), c = { + link: function (i) { + var a = p(i), l = e(a).parent(); + b.call(o, {href: l.attr("href"), target: l.attr("target")}, function (e) { + var a = l[0]; + "A" === a.tagName ? a.href = e.url : v.call(t, "a", {target: e.target, href: e.url, text: e.url}, i) + }) + }, unlink: function (t) { + n.execCommand("unlink") + }, face: function (e) { + x.call(this, function (i) { + v.call(t, "img", {src: i.src, alt: i.alt}, e) + }) + }, image: function (a) { + var n = this; + layui.use("upload", function (o) { + var r = l.uploadImage || {}; + o.render({ + url: r.url, method: r.type, elem: e(n).find("input")[0], done: function (e) { + 0 == e.code ? (e.data = e.data || {}, v.call(t, "img", { + src: e.data.src, + alt: e.data.title + }, a)) : i.msg(e.msg || "\u4e0a\u4f20\u5931\u8d25") + } + }) + }) + }, code: function (e) { + k.call(o, function (i) { + v.call(t, "pre", {text: i.code, "lay-lang": i.lang}, e) + }) + }, help: function () { + i.open({ + type: 2, + title: "\u5e2e\u52a9", + area: ["600px", "380px"], + shadeClose: !0, + shade: .1, + skin: "layui-layer-msg", + content: ["", "no"] + }) + } + }, s = a.find(".layui-layedit-tool"), u = function () { + var i = e(this), a = i.attr("layedit-event"), l = i.attr("lay-command"); + if (!i.hasClass(r)) { + o.focus(); + var u = m(n); + u.commonAncestorContainer; + l ? (n.execCommand(l), /justifyLeft|justifyCenter|justifyRight/.test(l) && n.execCommand("formatBlock", !1, "

          "), setTimeout(function () { + o.focus() + }, 10)) : c[a] && c[a].call(this, u), h.call(t, s, i) + } + }, d = /image/; + s.find(">i").on("mousedown", function () { + var t = e(this), i = t.attr("layedit-event"); + d.test(i) || u.call(this) + }).on("click", function () { + var t = e(this), i = t.attr("layedit-event"); + d.test(i) && u.call(this) + }), o.on("click", function () { + h.call(t, s), i.close(x.index) + }) + }, b = function (t, e) { + var l = this, n = i.open({ + type: 1, + id: "LAY_layedit_link", + area: "350px", + shade: .05, + shadeClose: !0, + moveType: 1, + title: "\u8d85\u94fe\u63a5", + skin: "layui-layer-msg", + content: ['

            ', '
          • ', '', '
            ', '', "
            ", "
          • ", '
          • ', '', '
            ', '", '", "
            ", "
          • ", '
          • ', '', '', "
          • ", "
          "].join(""), + success: function (t, n) { + var o = "submit(layedit-link-yes)"; + a.render("radio"), t.find(".layui-btn-primary").on("click", function () { + i.close(n), l.focus() + }), a.on(o, function (t) { + i.close(b.index), e && e(t.field) + }) + } + }); + b.index = n + }, x = function (t) { + var a = function () { + var t = ["[\u5fae\u7b11]", "[\u563b\u563b]", "[\u54c8\u54c8]", "[\u53ef\u7231]", "[\u53ef\u601c]", "[\u6316\u9f3b]", "[\u5403\u60ca]", "[\u5bb3\u7f9e]", "[\u6324\u773c]", "[\u95ed\u5634]", "[\u9119\u89c6]", "[\u7231\u4f60]", "[\u6cea]", "[\u5077\u7b11]", "[\u4eb2\u4eb2]", "[\u751f\u75c5]", "[\u592a\u5f00\u5fc3]", "[\u767d\u773c]", "[\u53f3\u54fc\u54fc]", "[\u5de6\u54fc\u54fc]", "[\u5618]", "[\u8870]", "[\u59d4\u5c48]", "[\u5410]", "[\u54c8\u6b20]", "[\u62b1\u62b1]", "[\u6012]", "[\u7591\u95ee]", "[\u998b\u5634]", "[\u62dc\u62dc]", "[\u601d\u8003]", "[\u6c57]", "[\u56f0]", "[\u7761]", "[\u94b1]", "[\u5931\u671b]", "[\u9177]", "[\u8272]", "[\u54fc]", "[\u9f13\u638c]", "[\u6655]", "[\u60b2\u4f24]", "[\u6293\u72c2]", "[\u9ed1\u7ebf]", "[\u9634\u9669]", "[\u6012\u9a82]", "[\u4e92\u7c89]", "[\u5fc3]", "[\u4f24\u5fc3]", "[\u732a\u5934]", "[\u718a\u732b]", "[\u5154\u5b50]", "[ok]", "[\u8036]", "[good]", "[NO]", "[\u8d5e]", "[\u6765]", "[\u5f31]", "[\u8349\u6ce5\u9a6c]", "[\u795e\u9a6c]", "[\u56e7]", "[\u6d6e\u4e91]", "[\u7ed9\u529b]", "[\u56f4\u89c2]", "[\u5a01\u6b66]", "[\u5965\u7279\u66fc]", "[\u793c\u7269]", "[\u949f]", "[\u8bdd\u7b52]", "[\u8721\u70db]", "[\u86cb\u7cd5]"], + e = {}; + return layui.each(t, function (t, i) { + e[i] = layui.cache.dir + "images/face/" + t + ".gif" + }), e + }(); + return x.hide = x.hide || function (t) { + "face" !== e(t.target).attr("layedit-event") && i.close(x.index) + }, x.index = i.tips(function () { + var t = []; + return layui.each(a, function (e, i) { + t.push('
        • ' + e + '
        • ') + }), '
            ' + t.join("") + "
          " + }(), this, { + tips: 1, time: 0, skin: "layui-box layui-util-face", maxWidth: 500, success: function (l, n) { + l.css({marginTop: -4, marginLeft: -10}).find(".layui-clear>li").on("click", function () { + t && t({src: a[this.title], alt: this.title}), i.close(n) + }), e(document).off("click", x.hide).on("click", x.hide) + } + }) + }, k = function (t) { + var e = this, l = i.open({ + type: 1, + id: "LAY_layedit_code", + area: "550px", + shade: .05, + shadeClose: !0, + moveType: 1, + title: "\u63d2\u5165\u4ee3\u7801", + skin: "layui-layer-msg", + content: ['
            ', '
          • ', '', '
            ', '", "
            ", "
          • ", '
          • ', '', '
            ', '', "
            ", "
          • ", '
          • ', '', '', "
          • ", "
          "].join(""), + success: function (l, n) { + var o = "submit(layedit-code-yes)"; + a.render("select"), l.find(".layui-btn-primary").on("click", function () { + i.close(n), e.focus() + }), a.on(o, function (e) { + i.close(k.index), t && t(e.field) + }) + } + }); + k.index = l + }, C = { + html: '', + strong: '', + italic: '', + underline: '', + del: '', + "|": '', + left: '', + center: '', + right: '', + link: '', + unlink: '', + face: '', + image: '', + code: '', + help: '' + }, L = new c; + t(n, L) +}); +layui.define("jquery", function (a) { + "use strict"; + var e = layui.$; + a("code", function (a) { + var l = []; + a = a || {}, a.elem = e(a.elem || ".layui-code"), a.lang = "lang" in a ? a.lang : "code", a.elem.each(function () { + l.push(this) + }), layui.each(l.reverse(), function (l, i) { + var t = e(i), c = t.html(); + (t.attr("lay-encode") || a.encode) && (c = c.replace(/&(?!#?[a-zA-Z0-9]+;)/g, "&").replace(//g, ">").replace(/'/g, "'").replace(/"/g, """)), t.html('
          1. ' + c.replace(/[\r\t\n]+/g, "
          2. ") + "
          "), t.find(">.layui-code-h3")[0] || t.prepend('

          ' + (t.attr("lay-title") || a.title || "</>") + '' + (t.attr("lay-lang") || a.lang || "") + "

          "); + var n = t.find(">.layui-code-ol"); + t.addClass("layui-box layui-code-view"), (t.attr("lay-skin") || a.skin) && t.addClass("layui-code-" + (t.attr("lay-skin") || a.skin)), (n.find("li").length / 100 | 0) > 0 && n.css("margin-left", (n.find("li").length / 100 | 0) + "px"), (t.attr("lay-height") || a.height) && n.css("max-height", t.attr("lay-height") || a.height) + }) + }) +}).addcss("modules/code.css?v=2", "skincodecss"); \ No newline at end of file diff --git a/static/mobile/layer.js b/static/mobile/layer.js new file mode 100644 index 0000000..46d2255 --- /dev/null +++ b/static/mobile/layer.js @@ -0,0 +1,2 @@ +/*! layer mobile-v2.0.0 Web 通用弹出层组件 MIT License */ + ;!function(e){"use strict";var t=document,n="querySelectorAll",i="getElementsByClassName",a=function(e){return t[n](e)},s={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},l={extend:function(e){var t=JSON.parse(JSON.stringify(s));for(var n in e)t[n]=e[n];return t},timer:{},end:{}};l.touch=function(e,t){e.addEventListener("click",function(e){t.call(this,e)},!1)};var r=0,o=["layui-m-layer"],c=function(e){var t=this;t.config=l.extend(e),t.view()};c.prototype.view=function(){var e=this,n=e.config,s=t.createElement("div");e.id=s.id=o[0]+r,s.setAttribute("class",o[0]+" "+o[0]+(n.type||0)),s.setAttribute("index",r);var l=function(){var e="object"==typeof n.title;return n.title?'

          '+(e?n.title[0]:n.title)+"

          ":""}(),c=function(){"string"==typeof n.btn&&(n.btn=[n.btn]);var e,t=(n.btn||[]).length;return 0!==t&&n.btn?(e=''+n.btn[0]+"",2===t&&(e=''+n.btn[1]+""+e),'
          '+e+"
          "):""}();if(n.fixed||(n.top=n.hasOwnProperty("top")?n.top:100,n.style=n.style||"",n.style+=" top:"+(t.body.scrollTop+n.top)+"px"),2===n.type&&(n.content='

          '+(n.content||"")+"

          "),n.skin&&(n.anim="up"),"msg"===n.skin&&(n.shade=!1),s.innerHTML=(n.shade?"
          ':"")+'
          "+l+'
          '+n.content+"
          "+c+"
          ",!n.type||2===n.type){var d=t[i](o[0]+n.type),y=d.length;y>=1&&layer.close(d[0].getAttribute("index"))}document.body.appendChild(s);var u=e.elem=a("#"+e.id)[0];n.success&&n.success(u),e.index=r++,e.action(n,u)},c.prototype.action=function(e,t){var n=this;e.time&&(l.timer[n.index]=setTimeout(function(){layer.close(n.index)},1e3*e.time));var a=function(){var t=this.getAttribute("type");0==t?(e.no&&e.no(),layer.close(n.index)):e.yes?e.yes(n.index):layer.close(n.index)};if(e.btn)for(var s=t[i]("layui-m-layerbtn")[0].children,r=s.length,o=0;odiv{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} \ No newline at end of file diff --git a/static/my_js.js b/static/my_js.js new file mode 100644 index 0000000..58a64f8 --- /dev/null +++ b/static/my_js.js @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/theme/default/icon-ext.png b/static/theme/default/icon-ext.png new file mode 100644 index 0000000..bbbb669 Binary files /dev/null and b/static/theme/default/icon-ext.png differ diff --git a/static/theme/default/icon.png b/static/theme/default/icon.png new file mode 100644 index 0000000..3e17da8 Binary files /dev/null and b/static/theme/default/icon.png differ diff --git a/static/theme/default/layer.css b/static/theme/default/layer.css new file mode 100644 index 0000000..db51f31 --- /dev/null +++ b/static/theme/default/layer.css @@ -0,0 +1 @@ +.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:50px;line-height:50px;border-bottom:1px solid #F0F0F0;font-size:14px;color:#333;overflow:hidden;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:17px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:300px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:260px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:300px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:51px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{background:0 0;box-shadow:none}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgnext,.layui-layer-imgprev{position:fixed;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:30px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:30px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:fixed;left:0;right:0;bottom:0;width:100%;height:40px;line-height:40px;background-color:#000\9;filter:Alpha(opacity=60);background-color:rgba(2,0,0,.35);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} \ No newline at end of file diff --git a/static/theme/default/loading-0.gif b/static/theme/default/loading-0.gif new file mode 100644 index 0000000..6f3c953 Binary files /dev/null and b/static/theme/default/loading-0.gif differ diff --git a/static/theme/default/loading-1.gif b/static/theme/default/loading-1.gif new file mode 100644 index 0000000..db3a483 Binary files /dev/null and b/static/theme/default/loading-1.gif differ diff --git a/static/theme/default/loading-2.gif b/static/theme/default/loading-2.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/static/theme/default/loading-2.gif differ diff --git a/templates/Correlation Box.html b/templates/Correlation Box.html new file mode 100644 index 0000000..da51b26 --- /dev/null +++ b/templates/Correlation Box.html @@ -0,0 +1,585 @@ + + + + + + Correlation Box + + + + + +
          +
          + + +
          + + +
          +
          + +
            +
          • + + +
          • + +
          • + Basic settings +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + + + + + + +
            +
          • + +
          • + Advanced setting +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
            + +
            + + + +
            +
            +
            + +
            +
          • + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • downlode eg file
          • + +
          +
          +
          + + + +
          +
          + show_img + + +
          + +
          + + + +
          + + set 限制解除 + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart.html b/templates/chart.html new file mode 100644 index 0000000..9be9bc1 --- /dev/null +++ b/templates/chart.html @@ -0,0 +1,256 @@ +{% load static %} + + + + + + {{ title }} + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          + + +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Basic.html b/templates/chart/Basic.html new file mode 100644 index 0000000..0de45c4 --- /dev/null +++ b/templates/chart/Basic.html @@ -0,0 +1,259 @@ +{% load static %} + + + + + + {{ title }} + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          + + +
          +
          + + + {# 主体 #} +
          +
          + show_img + + +
          + +
          + + + +
          + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Correllogram.html b/templates/chart/Correllogram.html new file mode 100644 index 0000000..9be9bc1 --- /dev/null +++ b/templates/chart/Correllogram.html @@ -0,0 +1,256 @@ +{% load static %} + + + + + + {{ title }} + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          + + +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Diverging_Bars.html b/templates/chart/Diverging_Bars.html new file mode 100644 index 0000000..f692e5e --- /dev/null +++ b/templates/chart/Diverging_Bars.html @@ -0,0 +1,356 @@ +{% load static %} + + + + + + Diverging Bars + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + + + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Diverging_Bars_vertical.html b/templates/chart/Diverging_Bars_vertical.html new file mode 100644 index 0000000..773328f --- /dev/null +++ b/templates/chart/Diverging_Bars_vertical.html @@ -0,0 +1,356 @@ +{% load static %} + + + + + + Diverging Bars vertical + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + + + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Dot_Plot.html b/templates/chart/Dot_Plot.html new file mode 100644 index 0000000..ce02f7a --- /dev/null +++ b/templates/chart/Dot_Plot.html @@ -0,0 +1,433 @@ +{% load static %} + + + + + + Dot Plot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + + + + + +
          • + Other +
            + +
            +
            + +
            +
            + +
            +
            + + +
            +
            +
            + + +
            +
            + +
            +
            + +
            +
            + + +
            +
            +
            +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Dumbbell_Plot.html b/templates/chart/Dumbbell_Plot.html new file mode 100644 index 0000000..da3e1f1 --- /dev/null +++ b/templates/chart/Dumbbell_Plot.html @@ -0,0 +1,326 @@ +{% load static %} + + + + + + Dumbbell Plot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Each_regression_line_in_its_own_column.html b/templates/chart/Each_regression_line_in_its_own_column.html new file mode 100644 index 0000000..352c1ce --- /dev/null +++ b/templates/chart/Each_regression_line_in_its_own_column.html @@ -0,0 +1,382 @@ +{% load static %} + + + + + + Each regression line in its own column + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Other +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Jittering_with_stripplot.html b/templates/chart/Jittering_with_stripplot.html new file mode 100644 index 0000000..83708b3 --- /dev/null +++ b/templates/chart/Jittering_with_stripplot.html @@ -0,0 +1,355 @@ +{% load static %} + + + + + + Jittering with stripplot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Lollipop_Chart.html b/templates/chart/Lollipop_Chart.html new file mode 100644 index 0000000..a995cf2 --- /dev/null +++ b/templates/chart/Lollipop_Chart.html @@ -0,0 +1,370 @@ +{% load static %} + + + + + + Lollipop Chart + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + +
          • + Other +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Marginal_Boxplot.html b/templates/chart/Marginal_Boxplot.html new file mode 100644 index 0000000..f8895f3 --- /dev/null +++ b/templates/chart/Marginal_Boxplot.html @@ -0,0 +1,356 @@ +{% load static %} + + + + + + Marginal Boxplot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + + + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Marginal_Histogram.html b/templates/chart/Marginal_Histogram.html new file mode 100644 index 0000000..1a47186 --- /dev/null +++ b/templates/chart/Marginal_Histogram.html @@ -0,0 +1,383 @@ +{% load static %} + + + + + + Marginal Histogram + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Other +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Ordered_Bar_Chart.html b/templates/chart/Ordered_Bar_Chart.html new file mode 100644 index 0000000..853e9a5 --- /dev/null +++ b/templates/chart/Ordered_Bar_Chart.html @@ -0,0 +1,370 @@ +{% load static %} + + + + + + Ordered Bar Chart + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + +
          • + Other +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Pairwise_Plot.html b/templates/chart/Pairwise_Plot.html new file mode 100644 index 0000000..06b483a --- /dev/null +++ b/templates/chart/Pairwise_Plot.html @@ -0,0 +1,289 @@ +{% load static %} + + + + + + Pairwise Plot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + + +
          • + Other +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Scatter_plot_with_linear_regression_line_of_best_fit.html b/templates/chart/Scatter_plot_with_linear_regression_line_of_best_fit.html new file mode 100644 index 0000000..81435b9 --- /dev/null +++ b/templates/chart/Scatter_plot_with_linear_regression_line_of_best_fit.html @@ -0,0 +1,383 @@ +{% load static %} + + + + + + Scatter plot with linear regression line_of best fit + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Other +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Slope_Chart.html b/templates/chart/Slope_Chart.html new file mode 100644 index 0000000..a050d59 --- /dev/null +++ b/templates/chart/Slope_Chart.html @@ -0,0 +1,338 @@ +{% load static %} + + + + + + Slope Chart + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
          • + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/Stacked_Histogram_for_Continuous_Variable.html b/templates/chart/Stacked_Histogram_for_Continuous_Variable.html new file mode 100644 index 0000000..993963c --- /dev/null +++ b/templates/chart/Stacked_Histogram_for_Continuous_Variable.html @@ -0,0 +1,355 @@ +{% load static %} + + + + + + Stacked_Histogram_for_Continuous_Variable + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + +
          • + text +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + + +
          • downlode + eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/chart/img_eg.html b/templates/chart/img_eg.html new file mode 100644 index 0000000..7218aea --- /dev/null +++ b/templates/chart/img_eg.html @@ -0,0 +1,121 @@ + + + + + + layout 管理系统大布局 - Layui + + + +
          +
          + + + + +
          + + + +
          + +
          内容主体区域。记得修改 layui.css 和 js 的路径
          +
          + + +
          + + + + + \ No newline at end of file diff --git a/templates/chart/scatter_plo.html b/templates/chart/scatter_plo.html new file mode 100644 index 0000000..b1c03bf --- /dev/null +++ b/templates/chart/scatter_plo.html @@ -0,0 +1,489 @@ +{% load static %} + + + + + + Scatter plot + + + + + +
          +
          + + +
          + + {# 导航栏 #} +
          +
          +
            +
          • + + +
          • + + +
          • + 颜色 +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            + +
            +

            +
            +
            +
            +
            +
          • + + +
          • + 文字 +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + +
          • +
          • downlode eg + file
          • + +
          +
          +
          + + + {# 主体 #} +
          +
          + aa + + +
          + +
          + + + +
          + + + + + + + + + + + \ No newline at end of file diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..566549b --- /dev/null +++ b/templates/header.html @@ -0,0 +1,10 @@ + + + + + Title + + + + + \ No newline at end of file diff --git a/templates/page/about.html b/templates/page/about.html new file mode 100644 index 0000000..2f51620 --- /dev/null +++ b/templates/page/about.html @@ -0,0 +1,288 @@ +{% load static %} + + + + + + Simple Drawing + + + + + +
          + + + +
          + + +
          + + + {# 右侧导航栏#} + +
          +
          + + +
          +
          + +
          + + + {# // 介绍#} +
          + + +
          + + + {# // 留言#} +
          +
          + + +
          +
          +
          +
          +
          +
          + +
          +
          +
          +
          +
          +   +
          + +
          This is a message to celebrate the completion of the front page +
          +
          +

          2020-06-27

          +
          +
          + + +
          + + {# 时间线#} +
          +
          + +
            + +
          • + +
            +

            2021-6-28

            +

            + 前端页面制作完成 +

            +
            +
          • + +
          • + +
            +

            2021-5

            +

            确定项目开始设计制作 +

            +
            +
          • + +
          • + +
            +

            2020-10

            +

            + 产生想法开始搜集学习相关内容 +

            +
            +
          • + +
          • + +
            +
            过去
            +
            +
          • +
          + +
          +
          + + + {# // 开源协议#} +
          +
          + 1. 使用layUI组件 +
          + +
          + + +
          + + + + +
          + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/page/index.html b/templates/page/index.html new file mode 100644 index 0000000..f254725 --- /dev/null +++ b/templates/page/index.html @@ -0,0 +1,206 @@ +{% load static %} + + + + + + Simple Drawing + + + + + + +
          +
          + + + + + +
          + + + +
          +
          +
          + + +
          +
          + +
          + + + +
          + + + + + + + + + +{#''#} + + + diff --git a/templates/page/test.html b/templates/page/test.html new file mode 100644 index 0000000..8bb84a2 --- /dev/null +++ b/templates/page/test.html @@ -0,0 +1,229 @@ +{% load static %} + + + + + + + + + Document + + + +
            + +
          • + + +
          • + +
          • + text +
            +
            +
            + +
            +
            + +
            +
            + +
            +
            + + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            +
            + + +
            +
            + +
            + +
            +
            +
            + + + 进程已结束,退出代码为 0 + + +
            +
            +
            + +
            +
            +
            +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            + +
            +
          • + +
          • + downlode +
            + +
            +
            + +
            + +
            +
            +
            + +
            + +
            + +
            +
          • + +
          • + X-axis +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
            + +
            + +
            +
            +
            +
            +
          • + + +
          • + Y-axis +
            + +
            +
            + +
            + +
            +
            +
            + +
            +
            + +
            + +
            +
            +
            + + +
            +
          • + + +
          • downlode + eg + file
          • + +
          + + + + + + \ No newline at end of file diff --git a/templates/page/text.html b/templates/page/text.html new file mode 100644 index 0000000..f3219ac --- /dev/null +++ b/templates/page/text.html @@ -0,0 +1,65 @@ +{% load static %} + + + + + upload模块快速使用 + + + + + + + +
        • + text +
          + +
          +
          + +
          + +
          +
          +
          + +
          +
        • + + + + + + + + + + + + + + diff --git a/templates/page/tools.html b/templates/page/tools.html new file mode 100644 index 0000000..e6b3a91 --- /dev/null +++ b/templates/page/tools.html @@ -0,0 +1,292 @@ +{% load static %} + + + + + + Simple Drawing + + + + + + +
          +
          + + + +
          + + + + +
          + +
          + + +
          + + + + + +
          +
          + + + + + + + + \ No newline at end of file diff --git a/templates/tools/Basics.html b/templates/tools/Basics.html new file mode 100644 index 0000000..28b83e3 --- /dev/null +++ b/templates/tools/Basics.html @@ -0,0 +1,44 @@ +
          +
          +

          Basics

          +
          +
          + + +
          +
          +
          + 选项 +
          +
          + + + + + + + + +
          + +
          + +
          + +
          + +
          +
          + 运行 +
          +
          + + +
          + +
          + +
          + + + diff --git a/templates/tools/Differential_expression_analysis.html b/templates/tools/Differential_expression_analysis.html new file mode 100644 index 0000000..895d34b --- /dev/null +++ b/templates/tools/Differential_expression_analysis.html @@ -0,0 +1,52 @@ +
          +
          +

          Differential expression analysis

          +
          + +
          + + +
          + +
          +
          + counts文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 分组文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 对比文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/GO.html b/templates/tools/GO.html new file mode 100644 index 0000000..d6648e3 --- /dev/null +++ b/templates/tools/GO.html @@ -0,0 +1,67 @@ +
          +
          +

          GO 富集

          +
          + +
          + + +
          + +
          +
          + 数据库文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 差异表达文件 +
          +
          + +
          + +
          +
          +
          +
          +
          + 参数 +
          +
          + +
          + +
          + +
          + +
          + +
          + +
          +
          +
          +
          +
          +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/MCScan_X.html b/templates/tools/MCScan_X.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/tools/blast.html b/templates/tools/blast.html new file mode 100644 index 0000000..40f9e20 --- /dev/null +++ b/templates/tools/blast.html @@ -0,0 +1,68 @@ +
          +
          +

          Blast

          +
          +
          + +
          + +
          + + +
          + +
          +
          + 建库文件 +
          +
          + +
          + +
          +
          + +
          +
          + +
          + 对比文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 参数 +
          +
          + +
          + +
          + + +
          + +
          +
          +
          +
          + + +
          +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/clustalx.html b/templates/tools/clustalx.html new file mode 100644 index 0000000..e69de29 diff --git a/templates/tools/fastqc.html b/templates/tools/fastqc.html new file mode 100644 index 0000000..9e4bdc2 --- /dev/null +++ b/templates/tools/fastqc.html @@ -0,0 +1,42 @@ +
          +
          +

          fastqc

          +
          + +
          + + +
          + +
          +
          + 检测的文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 参数 +
          +
          + +
          + +
          +
          +
          +
          +
          +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/genbank_to_fasta.html b/templates/tools/genbank_to_fasta.html new file mode 100644 index 0000000..9c59a0f --- /dev/null +++ b/templates/tools/genbank_to_fasta.html @@ -0,0 +1,34 @@ +
          +
          +

          genbank to fasta

          +
          +
          + +
          + +
          + + +
          + +
          +
          + fasta 文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 运行 +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/gff_to_gtf.html b/templates/tools/gff_to_gtf.html new file mode 100644 index 0000000..e87b71b --- /dev/null +++ b/templates/tools/gff_to_gtf.html @@ -0,0 +1,34 @@ +
          +
          +

          gff to gtf

          +
          +
          + +
          + +
          + + +
          + +
          +
          + gff 文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 运行 +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/id_transform.html b/templates/tools/id_transform.html new file mode 100644 index 0000000..e031891 --- /dev/null +++ b/templates/tools/id_transform.html @@ -0,0 +1,59 @@ +
          +
          +

          Id Transform

          +
          +
          + +
          + +
          + + +
          +
          + +
          +
          + 模式 +
          + +
          + +
          + + +
          + +
          +
          + + +
          + +
          +
          + +
          +
          + 运行 +
          +
          + + +
          + +
          + +
          + + + diff --git a/templates/tools/kegg.html b/templates/tools/kegg.html new file mode 100644 index 0000000..bc037ba --- /dev/null +++ b/templates/tools/kegg.html @@ -0,0 +1,58 @@ +
          +
          +

          KEGG 富集

          +
          + +
          + + +
          + +
          +
          + 数据库文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 差异表达文件 +
          +
          + +
          + +
          +
          +
          +
          +
          + 参数 +
          +
          + +
          + +
          + +
          + +
          +
          +
          +
          +
          +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/orf.html b/templates/tools/orf.html new file mode 100644 index 0000000..764ff6b --- /dev/null +++ b/templates/tools/orf.html @@ -0,0 +1,34 @@ +
          +
          +

          orf

          +
          +
          + +
          + +
          + + +
          + +
          +
          + gff 文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 运行 +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/pfam.html b/templates/tools/pfam.html new file mode 100644 index 0000000..a44e42f --- /dev/null +++ b/templates/tools/pfam.html @@ -0,0 +1,34 @@ +
          +
          +

          Pfam

          +
          +
          + +
          + +
          + + +
          + +
          +
          + fasta文件 +
          +
          + +
          + +
          +
          + +
          +
          +
          + 运行 +
          +
          + +
          +
          +
          \ No newline at end of file diff --git a/templates/tools/phylip.html b/templates/tools/phylip.html new file mode 100644 index 0000000..e69de29 diff --git a/test.py b/test.py new file mode 100644 index 0000000..5363914 --- /dev/null +++ b/test.py @@ -0,0 +1,1192 @@ +# # # # dd = """ title = request.GET.get("title") # 标题 +# # # # title_size = request.GET.get("title_size") # 标题字号 +# # # # xticks = request.GET.get("xticks") # x轴旋转角度 +# # # # xlabel = request.GET.get("xlabel") # x轴名称 +# # # # yticks = request.GET.get("yticks") # y旋转角度 +# # # # ylabel = request.GET.get("ylabel") # y轴名称 +# # # # file_id = request.GET.get("file_id") # 工作编号 +# # # # range_column = request.GET.get("range_column") # 范围列 +# # # # range_data = request.GET.get("range_data") # 范围 +# # # # x_col = request.GET.get("x_col") # x列 +# # # # y_col = request.GET.get("y_col") # y列 +# # # # k = request.GET.get("k") # 增加编号解决缓存问题""" +# # # # a = [] +# # # # for i in dd.split("\n"): +# # # # ddd = i.split(" ")[0] +# # # # print(f'{ddd}: (document.getElementById("{ddd}").value),') +# # # # a.append(ddd) +# # # # +# # # # print(",".join(a)) +# # # +# # # +# # # import matplotlib.pyplot as plt +# # # import numpy as np +# # # import pandas as pd +# # # import seaborn as sns +# # # +# # # +# # # def Bubble_plot_with_Encircling(file_path, chart_out_path, out_path, range_column, range_data, x_col, y_col, title, +# # # xticks, yticks, x_name, y_name): +# # # plt.figure(figsize=(9.4, 4.25), dpi=200) +# # # df = pd.read_csv(file_path) +# # # df_select = df.loc[df[range_column].isin(range_data), :] # 用那一列规范 范围 +# # # +# # # gridobj = sns.lmplot( +# # # x=x_col, +# # # y=y_col, +# # # hue=range_column, +# # # data=df_select, +# # # height=3, +# # # palette='Set1', +# # # scatter_kws=dict(s=60, linewidths=.7, edgecolors='black')) +# # # +# # # # Decorations +# # # sns.set(style="whitegrid", font_scale=1.5) +# # # gridobj.set(xlim=(0.5, 7.5), ylim=(10, 50)) +# # # gridobj.fig.set_size_inches(10, 6) +# # # plt.title(title) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=xticks, fontsize=10) +# # # +# # # # xy轴的名称 +# # # plt.xlabel(x_name, fontdict={'fontsize': 10}) +# # # plt.ylabel(y_name, fontdict={'fontsize': 10}) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # def Each_regression_line_in_its_own_column(file_path, chart_out_path, out_path, range_column, range_data, x_col, y_col, +# # # title, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # df_select = df.loc[df[range_column].isin(range_data), :] +# # # plt.figure(figsize=(5, 3), dpi=200) +# # # gridobj = sns.lmplot(x=x_col, +# # # y=y_col, +# # # data=df_select, +# # # robust=True, +# # # palette='Set1', +# # # col=range_column, +# # # scatter_kws=dict(s=60, linewidths=.7, edgecolors='black')) +# # # +# # # # Decorations +# # # sns.set(style="whitegrid", font_scale=1.5) +# # # gridobj.fig.set_size_inches(10, 6) +# # # +# # # plt.title(title) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # # xy轴的名称 +# # # plt.xlabel(x_name, fontdict={'fontsize': 10}) +# # # plt.ylabel(y_name, fontdict={'fontsize': 10}) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Each_regression_line_in_its_own_column(file_path="./datasets/mpg_ggplot2.csv", chart_out_path="./Marginal_Boxplot.png", +# # # # out_path="./ss", range_column="cyl", range_data=[4, 8], x_col='displ', +# # # # y_col='hwy', title='ddd', xticks=3, yticks=3, x_name='fsfs', y_name='sfsf') +# # # +# # # +# # # # 5、抖动图(Jittering with stripplot +# # # +# # # def Jittering_with_stripplot(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # fig, ax = plt.subplots(figsize=(5, 3), dpi=180) +# # # print(fig, ax) +# # # sns.stripplot(df[x_col], +# # # df[y_col], +# # # jitter=0.25, +# # # size=8, +# # # ax=ax, +# # # linewidth=.5, +# # # palette='Set1') +# # # +# # # sns.set(style="whitegrid", font_scale=1.1) +# # # plt.title(title) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.legend(fontsize=10) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # # xy轴的名称 +# # # plt.xlabel(x_name, fontdict={'fontsize': 10}) +# # # plt.ylabel(y_name, fontdict={'fontsize': 10}) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Jittering_with_stripplot(file_path="./datasets/mpg_ggplot2.csv", chart_out_path="./Marginal_Boxplot.png", +# # # # out_path="./ss", range_column="cyl", range_data=[4, 8], x_col='displ', +# # # # y_col='hwy', title='ddd', xticks=3, yticks=3, x_name='fsfs', y_name='sfsf') +# # # +# # # +# # # def Marginal_Histogram(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name, color1, color2): +# # # df = pd.read_csv(file_path) +# # # +# # # # Create Fig and gridspec +# # # fig = plt.figure(figsize=(9.4, 4.25), dpi=200) +# # # +# # # grid = plt.GridSpec(4, 4, hspace=0.5, wspace=0.2) +# # # +# # # # Define the axes +# # # ax_main = fig.add_subplot(grid[:-1, :-1]) +# # # ax_right = fig.add_subplot(grid[:-1, -1], xticklabels=[], yticklabels=[]) +# # # ax_bottom = fig.add_subplot(grid[-1, 0:-1], xticklabels=[], yticklabels=[]) +# # # +# # # # Scatterplot on main ax +# # # ax_main.scatter(x_col, +# # # y_col, +# # # c=df.manufacturer.astype('category').cat.codes, +# # # alpha=.9, +# # # data=df, +# # # cmap="Set1", +# # # edgecolors='gray', +# # # linewidths=.5) +# # # +# # # # histogram on the right +# # # ax_bottom.hist(df[x_col], +# # # 40, +# # # histtype='stepfilled', +# # # orientation='vertical', +# # # color=color1) +# # # ax_bottom.invert_yaxis() +# # # +# # # # histogram in the bottom +# # # ax_right.hist(df[y_col], +# # # 40, +# # # histtype='stepfilled', +# # # orientation='horizontal', +# # # color=color2) +# # # +# # # ax_main.title.set_fontsize(fontsize=int(title_s)) +# # # +# # # ax_main.set(title=title, +# # # xlabel=x_name, +# # # ylabel=y_name) +# # # +# # # for item in ([ax_main.xaxis.label, ax_main.yaxis.label] + +# # # ax_main.get_xticklabels() + ax_main.get_yticklabels()): +# # # item.set_fontsize(10) +# # # +# # # xlabels = ax_main.get_xticks().tolist() +# # # ax_main.set_xticklabels(xlabels) +# # # +# # # plt.savefig(chart_out_path) # 保存图片 +# # # +# # # plt.legend(fontsize=10) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Marginal_Histogram(file_path="./datasets/mpg_ggplot2.csv", chart_out_path="Marginal_Boxplot.png", +# # # # out_path="./ss", x_col='displ', +# # # # y_col='hwy', title='title', title_s=12, xticks=3, yticks=3, x_name='x_name', y_name='y_name', color1="#098154", color2='#098154') +# # # +# # # +# # # def Correllogram(file_path, chart_out_path, out_path, +# # # title, title_s, xticks, yticks, x_name, y_name, size, color, weight): +# # # df = pd.read_csv(file_path) +# # # plt.figure(figsize=(5, 3), dpi=200) +# # # sns.heatmap( +# # # df.corr(), +# # # xticklabels=df.corr().columns, +# # # yticklabels=df.corr().columns, +# # # cmap='Set1', +# # # center=0, +# # # annot=True, +# # # annot_kws={ +# # # 'size': size, +# # # 'weight': weight, +# # # 'color': color +# # # }, +# # # ) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.legend(fontsize=10) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # # xy轴的名称 +# # # plt.xlabel(x_name, fontdict={'fontsize': 10}) +# # # plt.ylabel(y_name, fontdict={'fontsize': 10}) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Correllogram(file_path="./datasets/mtcars.csv", +# # # # chart_out_path="Correllogram.png", +# # # # out_path="./ss", +# # # # title='title', title_s=12, xticks=3, yticks=3, x_name='x_name', y_name='y_name', size=7, color='#098154', weight=5) +# # # +# # # +# # # def Marginal_Boxplot(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # # 边缘箱图(Marginal Boxplot) +# # # df = pd.read_csv(file_path) +# # # +# # # fig = plt.figure(figsize=(9.4, 4.25), dpi=100) +# # # grid = plt.GridSpec( +# # # 4, 4, hspace=0.5, wspace=0.2 +# # # ) +# # # +# # # # Define the axes +# # # ax_main = fig.add_subplot(grid[:-1, :-1]) +# # # ax_right = fig.add_subplot(grid[:-1, -1], xticklabels=[], yticklabels=[]) +# # # ax_bottom = fig.add_subplot(grid[-1, 0:-1], xticklabels=[], yticklabels=[]) +# # # +# # # # Scatterplot on main ax +# # # ax_main.scatter(x_col, +# # # y_col, +# # # c=df.manufacturer.astype('category').cat.codes, +# # # alpha=.9, +# # # data=df, +# # # cmap="Set1", +# # # edgecolors='black', +# # # linewidths=.5) +# # # +# # # # Add a graph in each part +# # # sns.boxplot(df[y_col], ax=ax_right, orient="v", linewidth=1, palette='Set1') +# # # sns.boxplot(df[x_col], ax=ax_bottom, orient="h", linewidth=1, palette='Set1') +# # # +# # # ax_bottom.set(xlabel='') +# # # ax_right.set(ylabel='') +# # # +# # # ax_main.title.set_fontsize(fontsize=int(title_s)) +# # # ax_main.set(title=title, +# # # xlabel=x_name, +# # # ylabel=y_name) +# # # +# # # for item in ([ax_main.xaxis.label, ax_main.yaxis.label] + +# # # ax_main.get_xticklabels() + ax_main.get_yticklabels()): +# # # item.set_fontsize(11) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.legend(fontsize=10) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # # xy轴的名称 +# # # plt.xlabel(x_name, fontdict={'fontsize': 10}) +# # # plt.ylabel(y_name, fontdict={'fontsize': 10}) +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Marginal_Boxplot(file_path="./datasets/mpg_ggplot2.csv", chart_out_path="Marginal_Boxplot.png", +# # # # out_path="./ss", x_col='displ', +# # # # y_col='hwy', title='title', title_s=12, xticks=3, yticks=3, x_name='x_name', y_name='y_name') +# # # +# # # +# # # # 10、矩阵图 (Pairwise Plot) +# # # def Pairwise_Plot(file_path, chart_out_path, out_path, title, title_s, features): +# # # df = pd.read_csv(file_path) +# # # +# # # plt.figure(figsize=(9.4, 4.25), dpi=100) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # sns.pairplot(df, +# # # hue=features, +# # # palette='Set1', +# # # plot_kws=dict(s=80, edgecolor="white", linewidth=2.5)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Pairwise_Plot(file_path="./datasets/iris_test.csv", chart_out_path="Pairwise_Plot.png", +# # # # out_path="./ss", title='title', title_s=12,features="Species") +# # # +# # # +# # # # plt.title(title, fontsize=int(title_s)) +# # # def Diverging_Bars(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # x = df.loc[:, [x_col]] +# # # df[x_col + "_z"] = (x - x.mean()) / x.std() +# # # df['colors'] = ['red' if x < 0 else 'green' for x in df[x_col + "_z"]] +# # # df.sort_values(x_col + "_z", inplace=True) +# # # df.reset_index(inplace=True) +# # # +# # # # Draw plot +# # # plt.figure(figsize=(9.4, 4.25), dpi=80) +# # # plt.hlines(y=df.index, +# # # xmin=0, +# # # xmax=df.mpg_z, +# # # color=df.colors, +# # # alpha=0.8, +# # # linewidth=5) +# # # +# # # # Decorations +# # # plt.gca().set(ylabel=y_name, xlabel=x_name) +# # # plt.yticks(df.index, df[y_col], fontsize=12) +# # # plt.xticks(fontsize=12) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.grid(linestyle='--', alpha=0.5) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Diverging_Bars(file_path="./datasets/mtcars.csv", +# # # # chart_out_path="Diverging_Bars_vertical.png", +# # # # out_path="./ss", +# # # # x_col='mpg', +# # # # y_col='cars', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=3, +# # # # yticks=3, +# # # # x_name='x_name', +# # # # y_name='y_name') +# # # +# # # def Diverging_Bars_vertical(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # x = df.loc[:, [y_col]] +# # # +# # # df[y_col + 'z'] = (x - x.mean()) / x.std() +# # # df['colors'] = ['red' if x < 0 else 'green' for x in df[y_col + 'z']] +# # # df.sort_values(y_col + 'z', inplace=True) +# # # df.reset_index(inplace=True) +# # # plt.gca().set(ylabel=y_name, xlabel=x_name) +# # # # Draw plot +# # # plt.figure(figsize=(10, 6), dpi=80) +# # # plt.vlines(x=df.index, +# # # ymin=0, +# # # ymax=df[y_col + 'z'], +# # # color=df.colors, +# # # alpha=0.8, +# # # linewidth=5) +# # # for y, x, tex in zip(df[y_col + 'z'], df.index, df[y_col + 'z']): +# # # t = plt.text(x, +# # # y + 0.2, +# # # round(tex, 1), +# # # horizontalalignment='center', +# # # fontdict={ +# # # 'color': 'black' if x < 0 else 'black', +# # # 'size': 8 +# # # }) +# # # +# # # # Decorations +# # # plt.xticks(df.index, df[x_col], fontsize=12, rotation=90) +# # # plt.yticks(fontsize=12) +# # # plt.title(title, fontdict={'size': int(title_s)}) +# # # plt.grid(linestyle='--', alpha=0.5) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Diverging_Bars_vertical(file_path="./datasets/mtcars.csv", +# # # # chart_out_path="Diverging_Bars_vertical.png", +# # # # out_path="./ss", +# # # # x_col='cars', +# # # # y_col='mpg', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=3, +# # # # x_name='x_name', +# # # # y_name='y_name') +# # # +# # # +# # # def Ordered_Bar_Chart(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name, color): +# # # df_raw = pd.read_csv(file_path) +# # # df = df_raw[[x_col, y_col]].groupby(y_col).apply(lambda x: x.mean()) +# # # df.sort_values(x_col, inplace=True) +# # # df.reset_index(inplace=True) +# # # +# # # import matplotlib.patches as patches +# # # +# # # plt.gca().set(ylabel=y_name, xlabel=x_name) +# # # +# # # fig, ax = plt.subplots(figsize=(9.4, 4.25), facecolor='white', dpi=80) +# # # ax.vlines(x=df.index, +# # # ymin=0, +# # # ymax=df.cty, +# # # color=color, +# # # alpha=0.7, +# # # linewidth=20) +# # # +# # # # Annotate Text +# # # for i, cty in enumerate(df.cty): +# # # ax.text(i, cty + 0.5, round(cty, 1), horizontalalignment='center') +# # # +# # # # Title, Label, Ticks and Ylim +# # # +# # # plt.xticks(df.index, +# # # df.manufacturer.str.upper(), +# # # rotation=60, +# # # horizontalalignment='right', +# # # fontsize=10) +# # # plt.yticks(fontsize=12) +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.ylim = (0, 30) +# # # +# # # # 添加底纹 +# # # p1 = patches.Rectangle((.57, -0.005), +# # # width=.33, +# # # height=.13, +# # # alpha=.1, +# # # facecolor='green', +# # # transform=fig.transFigure) +# # # p2 = patches.Rectangle((.124, -0.005), +# # # width=.446, +# # # height=.13, +# # # alpha=.1, +# # # facecolor='red', +# # # transform=fig.transFigure) +# # # fig.add_artist(p1) +# # # fig.add_artist(p2) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # plt.title(title, fontsize=int(title_s)) +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Ordered_Bar_Chart(file_path="./datasets/mpg_ggplot2.csv", +# # # # chart_out_path="Ordered_Bar_Chart.png", +# # # # out_path="./ss", +# # # # x_col='cty', +# # # # y_col='manufacturer', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=3, +# # # # x_name='x_name', +# # # # y_name='y_name', +# # # # color="#e66765") +# # # +# # # +# # # # 18、棒棒糖图(Lollipop Chart) +# # # # 棒棒糖图(Lollipop Chart) +# # # # Prepare Data +# # # def Lollipop_Chart(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name, color): +# # # df_raw = pd.read_csv(file_path) +# # # df = df_raw[[x_col, +# # # y_col]].groupby(y_col).apply(lambda x: x.mean()) +# # # df.sort_values(x_col, inplace=True) +# # # df.reset_index(inplace=True) +# # # +# # # # Draw plot +# # # fig, ax = plt.subplots(figsize=(9.4, 4.25), dpi=200) +# # # +# # # ax.vlines(x=df.index, +# # # ymin=0, +# # # ymax=df.cty, +# # # color=color, +# # # alpha=0.7, +# # # linewidth=4) +# # # +# # # ax.scatter(x=df.index, y=df[x_col], s=85, color=color, alpha=0.7) +# # # +# # # # Title, Label, Ticks and Ylim +# # # +# # # ax.set_xticks(df.index) +# # # ax.set_xticklabels(df.manufacturer.str.upper(), +# # # rotation=60, +# # # fontdict={ +# # # 'horizontalalignment': 'right', +# # # 'size': 11 +# # # }) +# # # ax.set_ylim(0, 30) +# # # plt.yticks(fontsize=12) +# # # +# # # # Annotate +# # # for row in df.itertuples(): +# # # ax.text(row.Index, +# # # row.cty + .5, +# # # s=round(row.cty, 2), +# # # horizontalalignment='center', +# # # verticalalignment='bottom', +# # # fontsize=12) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Lollipop_Chart(file_path="./datasets/mpg_ggplot2.csv", +# # # # chart_out_path="Lollipop_Chart.png", +# # # # out_path="./ss", +# # # # x_col='cty', +# # # # y_col='manufacturer', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=3, +# # # # x_name='x_name', +# # # # y_name='y_name', +# # # # color="#e66765") +# # # +# # # +# # # def Dot_Plot(file_path, chart_out_path, out_path, x_col, y_col, +# # # title, title_s, xticks, yticks, x_name, y_name, color1, color2): +# # # df_raw = pd.read_csv(file_path) +# # # df = df_raw[[x_col, +# # # y_col]].groupby(y_col).apply(lambda x: x.mean()) +# # # df.sort_values(x_col, inplace=True) +# # # df.reset_index(inplace=True) +# # # +# # # # Draw plot +# # # fig, ax = plt.subplots(figsize=(9.4, 4.25), dpi=200) +# # # ax.hlines(y=df.index, +# # # xmin=11, +# # # xmax=26, +# # # color=color1, +# # # alpha=0.7, +# # # linewidth=1, +# # # linestyles='dashdot') +# # # ax.scatter(y=df.index, x=df.cty, s=75, color=color2, alpha=0.7) +# # # +# # # ax.set_yticks(df.index) +# # # ax.set_yticklabels(df.manufacturer.str.title(), +# # # fontdict={ +# # # 'horizontalalignment': 'right', +# # # 'fontsize': 12, +# # # }) +# # # +# # # ax.set_xlim(10, 27) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Dot_Plot(file_path="./datasets/mpg_ggplot2.csv", +# # # # chart_out_path="Dot_Plot.png", +# # # # out_path="./ss", +# # # # x_col='cty', +# # # # y_col='manufacturer', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=3, +# # # # x_name='x_name', +# # # # y_name='y_name', +# # # # color2='#3dd0b5', +# # # # color1='#d5d5d5') +# # # +# # # +# # # def Slope_Chart(file_path, chart_out_path, out_path, col_1, col_2, col_3, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # import matplotlib.lines as mlines +# # # df = pd.read_csv(file_path) +# # # +# # # def newline(p1, p2): +# # # ax = plt.gca() +# # # l = mlines.Line2D([p1[0], p2[0]], [p1[1], p2[1]], +# # # color='red' if p1[1] - p2[1] > 0 else 'green', +# # # marker='o', +# # # markersize=6) +# # # ax.add_line(l) +# # # return l +# # # +# # # fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), dpi=80) +# # # +# # # # Vertical Lines +# # # ax.vlines(x=1, +# # # ymin=500, +# # # ymax=13000, +# # # color='black', +# # # alpha=0.7, +# # # linewidth=1, +# # # linestyles='dotted') +# # # ax.vlines(x=3, +# # # ymin=500, +# # # ymax=13000, +# # # color='black', +# # # alpha=0.7, +# # # linewidth=1, +# # # linestyles='dotted') +# # # +# # # ax.scatter(y=df[col_1], +# # # x=np.repeat(1, df.shape[0]), +# # # s=10, +# # # color='black', +# # # alpha=0.7) +# # # ax.scatter(y=df[col_2], +# # # x=np.repeat(3, df.shape[0]), +# # # s=10, +# # # color='black', +# # # alpha=0.7) +# # # +# # # # Line Segmentsand Annotation +# # # for p1, p2, c in zip(df[col_1], df[col_2], df[col_3]): +# # # newline([1, p1], [3, p2]) +# # # ax.text(1 - 0.05, +# # # p1, +# # # c + ', ' + str(round(p1)), +# # # horizontalalignment='right', +# # # verticalalignment='center', +# # # fontdict={'size': 14}) +# # # ax.text(3 + 0.05, +# # # p2, +# # # c + ', ' + str(round(p2)), +# # # horizontalalignment='left', +# # # verticalalignment='center', +# # # fontdict={'size': 14}) +# # # +# # # # 'Before' and 'After' Annotations +# # # ax.text(1 - 0.05, +# # # 13000, +# # # 'BEFORE', +# # # horizontalalignment='right', +# # # verticalalignment='center', +# # # fontdict={ +# # # 'size': 15, +# # # 'weight': 700 +# # # }) +# # # ax.text(3 + 0.05, +# # # 13000, +# # # 'AFTER', +# # # horizontalalignment='left', +# # # verticalalignment='center', +# # # fontdict={ +# # # 'size': 15, +# # # 'weight': 700 +# # # }) +# # # +# # # # Decoration +# # # +# # # ax.set(xlim=(0, 4), ylim=(0, 14000)) +# # # +# # # ax.set_xticks([1, 3]) +# # # ax.set_xticklabels([col_1, col_2], fontdict={'size': 15, 'weight': 700}) +# # # plt.yticks(np.arange(500, 13000, 2000), rotation=yticks, fontsize=10) +# # # +# # # # Lighten borders +# # # plt.gca().spines["top"].set_alpha(.0) +# # # plt.gca().spines["bottom"].set_alpha(.0) +# # # plt.gca().spines["right"].set_alpha(.0) +# # # plt.gca().spines["left"].set_alpha(.0) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Slope_Chart(file_path="./datasets/gdppercap.csv", +# # # # chart_out_path="Slope_Chart.png", +# # # # out_path="./ss", +# # # # col_1="1952", +# # # # col_2='1957', +# # # # col_3='continent', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=90, +# # # # x_name="x_name", +# # # # y_name="y_name") +# # # +# # # +# # # def Dumbbell_Plot(file_path, chart_out_path, out_path, col_1, col_2, col_3, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # import matplotlib.lines as mlines +# # # +# # # # Import Data +# # # df = pd.read_csv(file_path) +# # # df.sort_values(col_1, inplace=True) +# # # df.reset_index(inplace=True) +# # # +# # # # Func to draw line segment +# # # def newline(p1, p2): +# # # ax = plt.gca() +# # # l = mlines.Line2D([p1[0], p2[0]], [p1[1], p2[1]], color='#d5695d') +# # # ax.add_line(l) +# # # return l +# # # +# # # # Figure and Axes +# # # fig, ax = plt.subplots(1, 1, figsize=(9.4, 4.25), facecolor='#f8f2e4', dpi=80) +# # # +# # # # Vertical Lines +# # # ax.vlines(x=.05, +# # # ymin=0, +# # # ymax=26, +# # # color='black', +# # # alpha=1, +# # # linewidth=1, +# # # linestyles='dotted') +# # # ax.vlines(x=.10, +# # # ymin=0, +# # # ymax=26, +# # # color='black', +# # # alpha=1, +# # # linewidth=1, +# # # linestyles='dotted') +# # # ax.vlines(x=.15, +# # # ymin=0, +# # # ymax=26, +# # # color='black', +# # # alpha=1, +# # # linewidth=1, +# # # linestyles='dotted') +# # # ax.vlines(x=.20, +# # # ymin=0, +# # # ymax=26, +# # # color='black', +# # # alpha=1, +# # # linewidth=1, +# # # linestyles='dotted') +# # # +# # # # Points +# # # ax.scatter(y=df['index'], x=df[col_1], s=50, color='#dc2624') +# # # ax.scatter(y=df['index'], x=df[col_2], s=50, color='#e87a59') +# # # +# # # # Line Segments +# # # for i, p1, p2 in zip(df['index'], df[col_1], df[col_2]): +# # # newline([p1, i], [p2, i]) +# # # +# # # # Decoration +# # # ax.set_facecolor('#f8f2e4') +# # # +# # # ax.set(xlim=(0, .25), ylim=(-1, 27)) +# # # plt.yticks(fontsize=15) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # # Dumbbell_Plot(file_path="./datasets/health.csv", +# # # # chart_out_path="Dumbbell_Plot.png", +# # # # out_path="./ss", +# # # # col_1="pct_2014", +# # # # col_2='pct_2013', +# # # # col_3='continent', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=90, +# # # # yticks=90, +# # # # x_name="x_name", +# # # # y_name="y_name") +# # # +# # # +# # # def Stacked_Histogram_for_Continuous_Variable(file_path, chart_out_path, out_path, x_col, groupby_col, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # +# # # # Prepare data +# # # x_var = x_col +# # # groupby_var = groupby_col +# # # df_agg = df.loc[:, [x_var, groupby_var]].groupby(groupby_var) +# # # vals = [df[x_var].values.tolist() for i, df in df_agg] +# # # +# # # # Draw +# # # plt.figure(figsize=(9.4, 4.25), dpi=180) +# # # colors = [plt.cm.Set1(i / float(len(vals) - 1)) for i in range(len(vals))] +# # # n, bins, patches = plt.hist(vals, +# # # 30, +# # # stacked=True, +# # # density=False, +# # # color=colors[:len(vals)]) +# # # +# # # # Decoration +# # # plt.legend({ +# # # group: col +# # # for group, col in zip( +# # # np.unique(df[groupby_var]).tolist(), colors[:len(vals)]) +# # # }) +# # # +# # # plt.xlabel(x_var) +# # # +# # # # plt.ylim(0, 25) +# # # plt.xticks(ticks=bins[::3], labels=[round(b, 1) for b in bins[::3]]) +# # # +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # (9.4, 4.25) +# # # +# # # +# # # # Stacked_Histogram_for_Continuous_Variable(file_path="./datasets/mpg_ggplot2.csv", +# # # # chart_out_path="Stacked_Histogram_for_Continuous_Variable.png", +# # # # out_path="./ss", +# # # # x_col="displ", +# # # # groupby_col='class', +# # # # title='title', +# # # # title_s=12, +# # # # xticks=0, +# # # # yticks=0, +# # # # x_name='x_name', +# # # # y_name='y_name') +# # # +# # # +# # # def Density_Plot(file_path, chart_out_path, out_path, x_col, groupby_col, +# # # title, title_s, xticks, yticks, x_name, y_name): +# # # df = pd.read_csv(file_path) +# # # +# # # # Draw Plot +# # # plt.figure(figsize=(10, 8), dpi=80) +# # # sns.kdeplot(df.loc[df['cyl'] == 4, "cty"], +# # # shade=True, +# # # color="#01a2d9", +# # # label="Cyl=4", +# # # alpha=.7) +# # # sns.kdeplot(df.loc[df['cyl'] == 5, "cty"], +# # # shade=True, +# # # color="#dc2624", +# # # label="Cyl=5", +# # # alpha=.7) +# # # sns.kdeplot(df.loc[df['cyl'] == 6, "cty"], +# # # shade=True, +# # # color="#C89F91", +# # # label="Cyl=6", +# # # alpha=.7) +# # # sns.kdeplot(df.loc[df['cyl'] == 8, "cty"], +# # # shade=True, +# # # color="#649E7D", +# # # label="Cyl=8", +# # # alpha=.7) +# # # +# # # # Decoration +# # # sns.set(style="whitegrid", font_scale=1.1) +# # # +# # # plt.legend() +# # # plt.xticks(rotation=xticks, fontsize=10) +# # # plt.yticks(rotation=yticks, fontsize=10) +# # # +# # # plt.ylabel(y_name, fontsize=12) +# # # plt.ylabel(x_name, fontsize=12) +# # # +# # # plt.title(title, fontsize=int(title_s)) +# # # +# # # plt.savefig(f"{chart_out_path}") # 保存图片 +# # # plt.savefig(f"{out_path}.png") +# # # plt.savefig(f"{out_path}.svg") +# # # plt.savefig(f"{out_path}.pdf") +# # # +# # # +# # # from Bio.Seq import Seq +# # # +# # # # my_sequence = Seq(">fjjj/n ATGACGTTGCATG") +# # # # +# # # # print ("The sequence is:", my_sequence) +# # # # #len(my_sequence) 长度 +# # # # print("The length of the sequence is:", len(my_sequence)) +# # # # #反向互补序列 +# # # # print ("Reverse complementary sequence:",my_sequence.reverse_complement()) +# # # # #计算核苷酸的出现次数 +# # # # print("The number of As in the sequence:", my_sequence.count("A")) +# # # # print("The number of Ts in the sequence:", my_sequence.count("T")) +# # # # print("The number of Gs in the sequence:", my_sequence.count("G")) +# # # # print("The number of Cs in the sequence:", my_sequence.count("C")) +# # # # #计算GC含量 +# # # # C_count=my_sequence.count("C") +# # # # G_count=my_sequence.count("G") +# # # # Length=len(my_sequence) +# # # # GC=(C_count+G_count)/Length +# # # # print ("GC percentage:","%.2f" % GC) +# # # # #查找子序列的起始索引 +# # # # print("Found TTG in the sequence at index:", my_sequence.find("TTG")) +# # # # #翻译 +# # # # print ("protein translation is:",my_sequence.translate()) +# # # tst = """>fjjj +# # # ATGACGTTGCATG +# # # >fjjj +# # # ATGACGTTGCATG +# # # >fjjj +# # # ATGACGTTGCATG +# # # >fjjj +# # # ATGACGTTGCATG""" +# # # +# # # def 反向互补序列(in_seq): +# # # def in_seq(a): +# # # a = a.replace("\r", "") +# # # a_list = a.split(">")[1:] +# # # data_ = [] +# # # for i in a_list: +# # # all_seq = [] +# # # for s, j in enumerate(i.split("\n")): +# # # if s == 0: +# # # data_.append(f">{j}") +# # # all_seq.append(j) +# # # data_.append("".join(all_seq)) +# # # return data_ +# # # +# # # data_all = [] +# # # +# # # for i, data in enumerate(in_seq(tst)): +# # # if i % 2 == 0: +# # # data_all.append(data + "\n") +# # # else: +# # # my_sequence = Seq(data) +# # # data_all.append(str(my_sequence.reverse_complement())+"\n") +# # # return "".join(data_all) +# # +# +# url = '' +# +# +# class Tool(object): +# def __init__(self): +# self.jg = { +# 'Basics': {}, +# 'senior': {}, +# } +# +# def ex_file(self, file_name): +# self.jg["ex_file"] = url + file_name +# +# def Basics(self, title, option, label, vale): +# +# if self.jg["Basics"].get(title): +# self.jg["Basics"][title].append({'name': option, 'data': label, 'vale': vale}) +# else: +# self.jg["Basics"][title] = [{'name': option, 'data': label, 'vale': vale}] +# +# def Senior(self, title, option, label, vale): +# +# if self.jg["senior"].get(title): +# self.jg["senior"][title].append({'name': option, 'data': label, 'vale': vale}) +# else: +# self.jg["senior"][title] = [{'name': option, 'data': label, 'vale': vale}] +# +# def row_back(self, lable, value): +# return f""" +#
          +#
          +# +#
          +# +#
          +#
          +#
          +# """ +# +# def head_back(self, title): +# return f""" +#
          +#
          +# +#
          +#
          +# """ +# +# def back_(self, sort): +# tmp = [] +# for i in self.jg[sort].keys(): +# tmp.append(self.head_back(i)) +# for j in self.jg[sort][i]: +# tmp.append(self.row_back(j["data"], j['vale'])) +# return '\n'.join(tmp) +# +# def html_out(self): +# print("基础------->") +# print(self.back_("Basics")) +# print('高级------->') +# print(self.back_("senior")) +# +# def js_out(self): +# js_list = [] +# all_dict = dict(self.jg["Basics"], **self.jg["senior"]) +# for i in all_dict.keys(): +# for j in all_dict[i]: +# js_list.append(f'{j["data"]}: (document.getElementById("{j["data"]}").value),') +# +# print("\n".join(js_list)) +# +# def view_out(self): +# py_list = [] +# all_dict = dict(self.jg["Basics"], **self.jg["senior"]) +# for i in all_dict.keys(): +# for j in all_dict[i]: +# py_list.append(f'{j["data"]} = request.GET.get("{j["data"]}", "{j["vale"]}")') +# +# print("\n".join(py_list)) +# +# on_num = ' oninput = "value=value.replace(/[^\d]/g,'').slice(0,3)" ' +# +# def html_out(data): +# all_list = [] +# for i in data: +# title = f""" +#
          +#
          +# +#
          +#
          +# """ +# all_list.append(title) +# +# for j in i['data']: +# code = f""" +#
          +#
          +# +#
          +# +#
          +#
          +#
          +# """ +# all_list.append(code) +# +# return all_list +# +# +# def js_out(data): +# all_list = [] +# new_list = data["Basics"] + data["senior"] +# for i in new_list: +# for j in i['data']: +# all_list.append(f'{j["name"]}: (document.getElementById("{j["name"]}").value),') +# +# return "\n".join(all_list) +# +# +# def py_out(data): +# all_list = [] +# new_list = data["Basics"] + data["senior"] +# for i in new_list: +# for j in i['data']: +# all_list.append(f'{j["name"]}: (document.getElementById("{j["name"]}").value),') +# return "\n".join(all_list) +# +# +# +# +# +# +# +# +# +# +# +# data = { +# 'Basics': [{'title': 'lable', 'data': [ +# {'name': 'x_name', "value": 'x', 'astrict': ''}, +# {'name': 'x_name', "value": 'x', 'astrict': ''}, +# {'name': 'x_col', "value": 'x_col', 'astrict': ''}, +# {'name': 'x_col', "value": 'x_col', 'astrict': ''}, +# ]}, +# {'title': 'title', 'data': [ +# {'name': 'title', "value": 'title', 'astrict': ''}, +# {'name': 'title_size', "value": '12', +# 'astrict': ' oninput = "value=value.replace(/[^\d]/g,'').slice(0,2)" '}, +# ]}, +# {'title': 'data', 'data': [ +# {'name': 'range_column', "value": 'range_column', 'astrict': ''}, +# {'name': 'range_data', "value": '1-2', 'astrict': ''}, +# ]}, +# +# ], +# +# 'Senior': [{'title': 'lable', 'data': [ +# {'name': 'xticks', "value": '0', 'astrict': on_num}, +# {'name': 'yticks', "value": '0', 'astrict': on_num}] +# }] +# } +# +# + + +a = "font_color, x_color, x_axis_color, y_color, y_axis_color, line_color, color, line_color_bar, color_bar, y_color_bar, y_axis_color_bar, x_axis_color_bar, background" + +a = a.split(",") +for i in a: + i = i.strip() + print(f"{{'name': '{i}', 'value': '', 'astrict': ''}},") \ No newline at end of file diff --git a/tools/__init__.py b/tools/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/admin.py b/tools/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/tools/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/tools/apps.py b/tools/apps.py new file mode 100644 index 0000000..1bf1e60 --- /dev/null +++ b/tools/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ToolsConfig(AppConfig): + name = 'tools' diff --git a/tools/migrations/0001_initial.py b/tools/migrations/0001_initial.py new file mode 100644 index 0000000..f04e00b --- /dev/null +++ b/tools/migrations/0001_initial.py @@ -0,0 +1,28 @@ +# Generated by Django 3.1.7 on 2021-06-29 16:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='ToolsLibrary', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('name', models.CharField(blank=True, db_column='name', max_length=100)), + ('sort', models.CharField(blank=True, db_column='sort', max_length=200)), + ('example_file', models.CharField(blank=True, db_column='example_file', max_length=200)), + ('show_chart', models.CharField(blank=True, db_column='show_chart', max_length=200)), + ('visiting_time', models.IntegerField(db_column='visiting_time')), + ('downlode_time', models.IntegerField(db_column='downlode_time')), + ('page', models.IntegerField(db_column='page')), + ('chart', models.CharField(blank=True, db_column='chart', max_length=200, null=True)), + ], + ), + ] diff --git a/tools/migrations/0002_toolslibrary_url.py b/tools/migrations/0002_toolslibrary_url.py new file mode 100644 index 0000000..e93372c --- /dev/null +++ b/tools/migrations/0002_toolslibrary_url.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.7 on 2021-06-30 04:02 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tools', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='toolslibrary', + name='url', + field=models.CharField(blank=True, db_column='url', max_length=200), + ), + ] diff --git a/tools/migrations/0003_auto_20210701_1422.py b/tools/migrations/0003_auto_20210701_1422.py new file mode 100644 index 0000000..1830b94 --- /dev/null +++ b/tools/migrations/0003_auto_20210701_1422.py @@ -0,0 +1,53 @@ +# Generated by Django 3.1.7 on 2021-07-01 06:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tools', '0002_toolslibrary_url'), + ] + + operations = [ + migrations.AlterField( + model_name='toolslibrary', + name='downlode_time', + field=models.IntegerField(blank=True, db_column='downlode_time', null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='example_file', + field=models.CharField(blank=True, db_column='example_file', max_length=200, null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='name', + field=models.CharField(blank=True, db_column='name', max_length=100, null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='page', + field=models.IntegerField(blank=True, db_column='page', null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='show_chart', + field=models.CharField(blank=True, db_column='show_chart', max_length=200, null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='sort', + field=models.CharField(blank=True, db_column='sort', max_length=200, null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='url', + field=models.CharField(blank=True, db_column='url', max_length=200, null=True), + ), + migrations.AlterField( + model_name='toolslibrary', + name='visiting_time', + field=models.IntegerField(blank=True, db_column='visiting_time', null=True), + ), + ] diff --git a/tools/migrations/__init__.py b/tools/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tools/models.py b/tools/models.py new file mode 100644 index 0000000..332cd44 --- /dev/null +++ b/tools/models.py @@ -0,0 +1,14 @@ +from django.db import models + + +class ToolsLibrary(models.Model): + id = models.IntegerField(primary_key=True) + name = models.CharField(db_column='name', max_length=100, blank=True, null=True) + sort = models.CharField(db_column='sort', max_length=200, blank=True, null=True) + example_file = models.CharField(db_column='example_file', max_length=200, blank=True, null=True) + show_chart = models.CharField(db_column='show_chart', max_length=200, blank=True, null=True) + visiting_time = models.IntegerField(db_column='visiting_time', blank=True, null=True) + downlode_time = models.IntegerField(db_column='downlode_time', blank=True, null=True) + page = models.IntegerField(db_column='page', blank=True, null=True) + chart = models.CharField(db_column='chart', max_length=200, blank=True, null=True) + url = models.CharField(db_column='url', max_length=200, blank=True, null=True) diff --git a/tools/tests.py b/tools/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/tools/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/tools/urls.py b/tools/urls.py new file mode 100644 index 0000000..f0f8d9e --- /dev/null +++ b/tools/urls.py @@ -0,0 +1,9 @@ +from django.conf.urls import url + +from tools import views + +urlpatterns = [ + url("(.*\.html$)", views.out_page), + url("id_transform", views.id_transform), + url("blast", views.blast) +] diff --git a/tools/views.py b/tools/views.py new file mode 100644 index 0000000..a0fce8e --- /dev/null +++ b/tools/views.py @@ -0,0 +1,31 @@ +import os + +from django.http import JsonResponse +from django.shortcuts import render +from chart import tools + + +def out_page(request, page): + return render(request, f'/tools/{page}') + + +def id_transform(request): + file = request.FILES.get('file', None) + to = request.POST.get("to", None) + from_ = request.POST.get("from", None) + if file is None: + return JsonResponse({}) + return JsonResponse({}) + +def blast(request): + + file1 = request.FILES.get('file1', None) + pass + + + + + + + +