当前位置:网站首页>[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)
[data visualization] Apache superset 1.2.0 tutorial (II) - Quick Start (visualizing King hero data)
2022-06-11 20:38:00 【Rookie millet】
List of articles

In the last article, we have successfully installed superset, So how to visualize our data ? This article will visualize the data of the king hero , A quick introduction Superset.
One 、 Connect to data source
First, make sure mysql It can be connected and used normally , And get the data ready .

Log in superset, choice Databases

Click on the top right + Number , New database

superset It's through SQLAlchemy Connected to the database . Find... Through official documents mysql Mode of connection .
https://docs.sqlalchemy.org/
MySQL
The MySQL dialect uses mysql-python as the default DBAPI. There are many MySQL DBAPIs available, including MySQL-connector-python and OurSQL:
# default
engine = create_engine('mysql://scott:[email protected]/foo')
# mysqlclient (a maintained fork of MySQL-Python)
engine = create_engine('mysql+mysqldb://scott:[email protected]/foo')
# PyMySQL
engine = create_engine('mysql+pymysql://scott:[email protected]/foo')
Here we're going to install pymysql
Then set the connection in this format
mysql+pymysql://root:[email protected]/honor
Successful connection !

Two 、 To configure SQL Lab function
After configuring the database , We also want to query it flexibly , It's time to use SQL Lab The function of .
First , Turn on sql lab jurisdiction
choice ADVANCED page , take SQL Lab Check the relevant permissions .

After saving, you can see that the relevant permissions are turned on .

choice Sql Lab Under menu Sql Editor

choice Database,Schema,Table. Input sql sentence ,RUN To perform , You can see the query results .

3、 ... and 、 Simple visualization
Data source configuration complete , And can be normal query , Now let's do a simple visualization of the data .
First choose EXPLORE, Save the query as dataset.

Enter into dataset Setup page , You can see here that the default type is Table, We know superset Support a lot of visual charts , This chapter is just for you Table Type of , We will continue to explain the specific operation of each chart in the future .

choice SAVE, Save as Charts. In this way, the query we just made is saved in the form of graph .

Create a new one Dashboard, Choose... On the right CHARTS, Select the chart we created and drag it over . You can adjust the size and layout . preservation .

Saved successfully , New Dashboard It's in the list . In the future, we choose to embed it in our web pages , Or send it by email .

such , We use Superset The first chart is ready .

This article explains in detail Apache Superset 1.2.0 Visualizing the whole process of data , Next, let's do superset The operation and practice of various charts .
Record on pit
One 、 Connect mysql Failure
ERROR: Could not load database driver: MySQLEngineSpec
MySQLdb I won't support it Python 3, Need to use pymysql.
install pymysql:
Use the following notation
mysql+pymysql://user:[email protected]/databasename
Two 、 install pymysql Failure
Please check the network , Under normal network speed, there is no problem
边栏推荐
- [Unity插件]着色器关键字分析工具ShaderControl
- Current situation and future development trend of hot isostatic pressing service market in the world and China from 2022 to 2028
- 电源防反接和防倒灌 - 使用MOS 管和运放实现理想二极管
- ICML 2022 𞓜 rethinking anomaly detection based on structured data: what kind of graph neural network do we need
- Black circle display implementation
- 12 date and time in R
- 【数据可视化】Apache Superset 1.2.0教程 (三)—— 图表功能详解
- 9 r remove missing values
- 26. timer
- 周鸿祎:想做直播带货抹不下面子 数据勒索成突出的安全威胁
猜你喜欢

Première formation sur les largeurs modernes

修改本地微信小程序的AppID

UDP、TCP

11 r create random number

周刊02|不瞒你说,我其实是MIT的学生

7905 和TL431 负电压稳压电路 - 相对于电源正极的稳压和浮地电路

The tutor transferred me 800 yuan and asked me to simulate a circuit (power supply design)

STC 纯硬件自动下载电路 V2

unity里面使用opencv,qt建立plugin(一)

Database introduction
随机推荐
芝诺悖论的计算
浅谈UGUI中Canvas RectTransform的Scale
【数据可视化】Apache Superset 1.2.0教程 (三)—— 图表功能详解
【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
Rtd2171u, substitute for trd2171u, substitute for trd2171u, cs5261 C to hdmi4k_ 30Hz
Edit the project steps to run QT and opencv in the clion
26. timer
[Unity插件]着色器关键字分析工具ShaderControl
STC hardware only automatic download circuit V2
Current situation and future development trend of global and Chinese cogeneration system market from 2022 to 2028
The tutor transferred me 800 yuan and asked me to simulate a circuit (power supply design)
Mysql add 新增多个新字段并指定字段位置
27. this指向问题
[unity plug-in] shader keyword analysis tool shadercontrol
2022-2028 current situation and future development trend of fuel cell market for cogeneration application in the world and China
【数据可视化】使用 Apache Superset 可视化 ClickHouse 数据
Flutter doctor 顯示xcode沒有安裝的解决辦法
[Err] 1045 - Access denied for user ‘root‘@‘%‘ (using password: YES)
Final examination of theory and practice of socialism with Chinese characteristics 1
Yintai department store and Taobao tmall jointly create a green fashion show to help "carbon neutrality"