当前位置:网站首页>[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions
[data visualization] Apache superset 1.2.0 tutorial (III) - detailed explanation of chart functions
2022-06-11 20:38:00 【Rookie millet】
@[TOC]
Through the previous chapters , We have successfully installed superset, And connect mysql database , Visualizing the data of the king hero . Using the simplest Table Type of chart , however superset It also supports a lot of chart types .
In this article, we will demonstrate each chart type one by one , The article is longer , Suggest reading after collection .
Chart classification
Superset A large number of charts are provided to help us Data visualization .
The types of charts can be divided into the following categories :
- Time series chart : These graphs show data over time , It's best used to find trends . Examples of time series diagrams include line charts 、 Time series bar charts and so on .
- Combination chart : These types of graphs show the distribution of data in specific areas , for example “ most …”、“ least …” and “ front 10 name ” Type of chart . Examples of composite graphs include bar graphs 、 Pie and tree charts .
- Distribution map : This kind of chart shows how data is distributed in one or more fields , Best for data with multidimensional properties . Examples of distribution maps include histograms 、 Box lines and levels .
- The diagram : This kind of chart shows the relationship between two or more variables , Usually used to convey commonalities 、 Non generic or causal types . Examples of diagrams include PivotTables 、 Heat and bubble charts .
- Geospatial charts : This kind of chart shows data based on geography .superset It also provides a variety of services based on deck.gl The geospatial chart of .

Only if you choose the right chart , In order to accurately convey what you want to express . So how to determine the chart type ?
The first thing to consider is what you want to achieve , A good chart must be able to clearly express the answer to the question . Here are some criteria for selecting tables , For reference :
- When you want to show how data changes over time ( for example , Changes in product sales in the last quarter ) when , Please use Time series chart .
- When your data focuses on a single factor ( for example , Number of graduates 、 The most popular cities, etc ) when , Please use Combination chart .
- Use... When your data is assigned to different categories Distribution map ( for example , The distribution of the number of people in a certain interval ).
- Use... When you compare between two or more values The diagram ( for example , Compared to the temperature change , sea level rise ).
- When your data depends on geography ( for example , The population density of the city 、 Air traffic routes, etc ) when , Please use Geospatial charts .
Data set preparation
For these charts , Different data sets are prepared for visualization operation . Namely :
Time series chart : “ Big Joe ” key word , Search index change data in the past month .
Combination chart : The ranking of the maximum health value of each hero of the king .
Distribution map : The maximum health value of each hero of the king , Statistics on the number of heroes in each health interval .
The diagram : Take a look at the relationship between the greatest defense and the greatest life .
Geospatial charts : Here's a simple visualization of the number of new crown diagnoses in the United States and India .
Let's explain the usage of different types of charts :
One 、 Time series chart
First, prepare the data . The data comes from Big Joe's search index data .

First of all to enter Datasets page , Add this table to .


After the table is successfully added , Get into Charts page , Create a new chart .

Select chart type as Time-series Bar Chart

New chart

Go to the chart settings page , Here you can make a series of settings for the chart , First change the name .

The statistical index of the default table is COUNT, This is changed into SUM.

Modify the time frame , The default is LAST WEEK.

You can also make some custom settings , Color , Axis and so on .

preservation , such , The time series diagram is completed successfully .

Two 、 Combination chart
This data source uses King hero data , It's related to . Now let's use this data to make a pie chart .
First, create a new chart , Select type as Pie Chart

Choose a good data source

Make the basic settings , Here are the heroes , The statistical dimension is the largest life

Make some custom settings

Click on RUN Inquire about , So the pie chart is done .

3、 ... and 、 Distribution charts
Still using King hero data , Make a histogram
First, create a new chart , Select chart type as Histogram

Make some custom settings

Select statistics column as The greatest life , Adjust the interval .
You can clearly see the distribution of the maximum health value .

Click on RUN Inquire about , So the histogram is done , preservation .
Four 、 Relationship charts
Still using existing data
choice Heatmap Type chart

Then do some basic setup ,X Axis selection maximum object defense
Y Axis chooses maximum life .

Click on RUN Inquire about , So the heat map is done , preservation .
5、 ... and 、 Geospatial charts
Prepare the data , Select chart type as World Map

Make some settings , Country code , Statistical columns and so on .

Click on RUN The query , preservation .
Through this paper , We're right superset We have a basic understanding of the various charts in .superset What other functions are there ? The next chapter goes on ~
This article is shared from the author's personal site / Blog :https://www.cnblogs.com/tree1123/ Copy
If there is any infringement , Please contact me
Delete .
边栏推荐
- Space transcriptome experiment | what factors will affect the quality of space transcriptome sequencing during the preparation of clinical tissue samples?
- 12 date and time in R
- 29. location object
- Modify appid of local wechat applet
- 2022-2028 current market situation and future development trend of thermopile Pyranometers in the world and China
- 2022-2028 global and Chinese thermopile and microbolometer infrared detector Market Status and future development trend
- Rtd2171u, substitute for trd2171u, substitute for trd2171u, cs5261 C to hdmi4k_ 30Hz
- 芝诺悖论的计算
- Flutter doctor 显示xcode没有安装的解决办法
- Vectordrawable error
猜你喜欢
![[file upload vulnerability 04] server side mime detection and bypass experiment (based on upload-labs-2 shooting range)](/img/b8/521ca4bb8931afab9a3a4d0b015125.jpg)
[file upload vulnerability 04] server side mime detection and bypass experiment (based on upload-labs-2 shooting range)

导师转我800块,让我仿真一个电路(电源设计)

黑圆圈显示实现

Two minutes to show you the charging standard of the Sub Ledger System

Gestionnaire de paquets d'Unit é Starting Server Stuck

8 r subset

7905 and TL431 negative voltage regulator circuit - regulator and floating circuit relative to the positive pole of the power supply

28. JS执行机制

使用flask框架写挡板

29. location object
随机推荐
Date of SQL optimization_ Format() function
ORA-01089 ORA-19809 ORA-19815 超过了恢复文件的限制
【计算机推免】哈尔滨工业大学物联网与泛在智能研究中心面向全国高校推免生招收2023级研究生(硕、博、直博生)
2022-2028 current situation and future development trend of global and Chinese thermocouple belt Market
2022-2028 global and Chinese thermopile detector Market Status and future development trend
Capriccio in the Internet Age
【数据可视化】使用 Apache Superset 可视化 ClickHouse 数据
Redis第四话 -- redis高性能原理(多路复用)和高可用分析(备份、主从)
UI automated interview questions
Unity package manager starting server stuck
moderlarts第二次作业
2022-2028 global and Chinese thermopile and microbolometer infrared detector Market Status and future development trend
银泰百货与淘宝天猫联合打造绿色潮玩展,助力“碳中和”
QQ贴吧那种图片一点开,就变了的原理
ICML 2022 | 基于结构化数据的异常检测再思考:我们究竟需要怎样的图神经网络?...
Black circle display implementation
The first bullet of comparative learning
29. location object
Flutter doctor 顯示xcode沒有安裝的解决辦法
Flutter doctor shows the solution that Xcode is not installed