smartchart数据可视化平台 v6.0是什么样的

古风汉服美女图集

源码属性:
作者 JohnYan 授权方式:开源 源码大小:3.08MB 源码语言:Python
功能介绍:

SmartChart是基于Echarts的微代码开发平台,适用于任何WEB项目,比拖拽开发更方便。简单, 敏捷, 高效,通用化, 高度可定制化, 让你的项目瞬间档次提升,完全真正打通前后端, 图形数据联动, 筛选开发毫无压力。积木式的开发模式, 开箱即用, 安装简单, 依赖少, 适应各种平台。

安装使用说明:

如果你是非Python语言的开发者你可以把smartchart当作服务来嵌入你的页面使用

1. 安装Python环境(参考上面的环境准备)

2. 命令行安装: 

   pip3 install smartchart

   pip3 install smartchart -U (升级)

# Mac or Linux 初始化方法

3. 初始化DB, 命令行输入

    smartchart makemigrations

    smartchart migrate

4. 建立管理员帐号, 如果已有可忽略

   smartchart createsuperuser 

5. 本地命令行启动: 

   smartchart

   如果你需要远程访问,启动方式: 

   smartchart runserver 0.0.0.0:8000 –insecure

6. 访问http://127.0.0.1:8000/echart/init_db/ 进行数据初始化

   

# Window 初始化方法

3. 初始化DB, 你需要找到你的python安装地址,不记得了参考下图方法

   如C:\Users\xxx\AppData\Local\Programs\Python\Python39

   命令行输入

   cd  C:\Users\….\Python39\Scripts\

   python smartchart makemigrations

   python smartchart migrate

4. 建立管理员帐号, 如果已有可忽略

   python smartchart createsuperuser  

5. 本地命令行启动: 

   python smartchart

   如果你需要远程访问

   启动方式: 

   python smartchart runserver 0.0.0.0:8000 –insecure

6. 访问http://127.0.0.1:8000/echart/init_db/ 进行数据初始化

如果你是python开发者,可以在django项目中当作apps使用pip install smartchart

简单配置一下, 你可以参考此demo

1. 在你的setting.py的INSTALL_APPS中加入’smart_chart.echart’

2. MIDDLEWARE 中注释掉XFrameOptionsMiddleware

3. setting.py中设定为中国时区, 支持中文基础平台建设!

    LANGUAGE_CODE = ‘zh-hans’

    TIME_ZONE = ‘Asia/Shanghai’

    USE_I18N = True

    USE_L10N = True

    USE_TZ = False  # 此处必须为False

4. 在你的url.py中加入引用

    from django.conf.urls import include

    from django.views.generic import RedirectView

5. url.py的urlpatterns中加入路由

    path(‘echart/’, include(‘smart_chart.echart.urls’)),

    path(”, RedirectView.as_view(url=’echart/index/’)),  #首页,可自定义路由

6. 初始化DB, 命令行输入: 

    python manage.py makemigrations

    python manage.py migrate

7. 建立管理员帐号, 如果已有可忽略

   python manage.py createsuperuser

8. 启动服务

   python manage.py runserver

9. 访问http://127.0.0.1:8000/echart/init_db/ 进行数据初始化

对应的项目目录说明:

templates/echart  — 编辑器界面

templates/index   — 首页Portal

static/echart     — 扩展前端数据处理函数(图形编辑中可用)

static/editor     — 编辑器界面js

static/index      — Portal对应js, css

CharResource      — 存放echarts转化后的smartchart

git clone 项目

pip install smartchart

启动方式 python manage.py runserver

smartchart数据可视化平台 v6.0是什么样的

© 版权声明

相关文章