Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_22812535
incubator-superset
提交
af864e9f
I
incubator-superset
项目概览
qq_22812535
/
incubator-superset
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-superset
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
af864e9f
编写于
7月 09, 2020
作者:
J
Jesse Yang
提交者:
GitHub
7月 09, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: deckgl dimension select missing options (#10277)
Fixes #10246
上级
a460fdf0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
48 deletion
+21
-48
superset-frontend/src/explore/controlPanels/DeckArc.js
superset-frontend/src/explore/controlPanels/DeckArc.js
+9
-7
superset-frontend/src/explore/controlPanels/DeckScatter.js
superset-frontend/src/explore/controlPanels/DeckScatter.js
+9
-7
superset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx
...rset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx
+3
-34
未找到文件。
superset-frontend/src/explore/controlPanels/DeckArc.js
浏览文件 @
af864e9f
...
...
@@ -99,15 +99,17 @@ export default {
],
[
{
...
dimension
,
label
:
t
(
'
Categorical Color
'
),
description
:
t
(
'
Pick a dimension from which categorical colors are defined
'
,
),
name
:
'
dimension
'
,
config
:
{
...
dimension
.
config
,
label
:
t
(
'
Categorical Color
'
),
description
:
t
(
'
Pick a dimension from which categorical colors are defined
'
,
),
},
},
'
color_scheme
'
,
'
label_colors
'
,
],
[
'
color_scheme
'
,
'
label_colors
'
],
[
{
name
:
'
stroke_width
'
,
...
...
superset-frontend/src/explore/controlPanels/DeckScatter.js
浏览文件 @
af864e9f
...
...
@@ -134,15 +134,17 @@ export default {
[
null
,
legendFormat
],
[
{
...
dimension
,
label
:
t
(
'
Categorical Color
'
),
description
:
t
(
'
Pick a dimension from which categorical colors are defined
'
,
),
name
:
'
dimension
'
,
config
:
{
...
dimension
.
config
,
label
:
t
(
'
Categorical Color
'
),
description
:
t
(
'
Pick a dimension from which categorical colors are defined
'
,
),
},
},
'
color_scheme
'
,
'
label_colors
'
,
],
[
'
color_scheme
'
,
'
label_colors
'
],
],
},
{
...
...
superset-frontend/src/explore/controlPanels/Shared_DeckGL.jsx
浏览文件 @
af864e9f
...
...
@@ -22,7 +22,7 @@
import
React
from
'
react
'
;
import
{
t
}
from
'
@superset-ui/translation
'
;
import
{
validateNonEmpty
}
from
'
@superset-ui/validator
'
;
import
{
ColumnOption
}
from
'
@superset-ui/chart-controls
'
;
import
{
ColumnOption
,
sharedControls
}
from
'
@superset-ui/chart-controls
'
;
import
{
D3_FORMAT_OPTIONS
,
columnChoices
,
PRIMARY_COLOR
}
from
'
../controls
'
;
import
{
DEFAULT_VIEWPORT
}
from
'
../../explore/components/controls/ViewportControl
'
;
...
...
@@ -35,37 +35,6 @@ const timeColumnOption = {
),
};
const
groupByControl
=
{
type
:
'
SelectControl
'
,
multi
:
true
,
freeForm
:
true
,
label
:
t
(
'
Group by
'
),
default
:
[],
includeTime
:
false
,
description
:
t
(
'
One or many controls to group by
'
),
optionRenderer
:
c
=>
<
ColumnOption
column
=
{
c
}
showType
/>,
valueRenderer
:
c
=>
<
ColumnOption
column
=
{
c
}
/>,
valueKey
:
'
column_name
'
,
allowAll
:
true
,
filterOption
:
(
opt
,
text
)
=>
(
opt
.
column_name
&&
opt
.
column_name
.
toLowerCase
().
indexOf
(
text
.
toLowerCase
())
>=
0
)
||
(
opt
.
verbose_name
&&
opt
.
verbose_name
.
toLowerCase
().
indexOf
(
text
.
toLowerCase
())
>=
0
),
promptTextCreator
:
label
=>
label
,
mapStateToProps
:
(
state
,
control
)
=>
{
const
newState
=
{};
if
(
state
.
datasource
)
{
newState
.
options
=
state
.
datasource
.
columns
.
filter
(
c
=>
c
.
groupby
);
if
(
control
&&
control
.
includeTime
)
{
newState
.
options
.
push
(
timeColumnOption
);
}
}
return
newState
;
},
commaChoosesOption
:
false
,
};
const
sandboxUrl
=
'
https://github.com/apache/incubator-superset/
'
+
'
blob/master/superset-frontend/src/modules/sandbox.js
'
;
...
...
@@ -137,7 +106,7 @@ export const autozoom = {
export
const
dimension
=
{
name
:
'
dimension
'
,
config
:
{
...
groupByControl
,
...
sharedControls
.
groupby
,
label
:
t
(
'
Dimension
'
),
description
:
t
(
'
Select a dimension
'
),
multi
:
false
,
...
...
@@ -148,7 +117,7 @@ export const dimension = {
export
const
jsColumns
=
{
name
:
'
js_columns
'
,
config
:
{
...
groupByControl
,
...
sharedControls
.
groupby
,
label
:
t
(
'
Extra data for JS
'
),
default
:
[],
description
:
t
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录