Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
bf32ef61
Unverified
提交
bf32ef61
authored
10月 21, 2021
作者:
XiaJunjie2020
提交者:
GitHub
10月 21, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #994 from dataease/pr@dev@feat_waterfall
feat:瀑布图
上级
c3e354c7
485304b1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
waterfall.js
frontend/src/views/chart/chart/waterfall/waterfall.js
+7
-2
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+2
-2
没有找到文件。
frontend/src/views/chart/chart/waterfall/waterfall.js
浏览文件 @
bf32ef61
...
@@ -16,9 +16,14 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) {
...
@@ -16,9 +16,14 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) {
const
label
=
getLabel
(
chart
)
const
label
=
getLabel
(
chart
)
const
tooltip
=
getTooltip
(
chart
)
const
tooltip
=
getTooltip
(
chart
)
// style
// style
const
legend
=
getLegend
(
chart
)
//
const legend = getLegend(chart)
const
xAxis
=
getXAxis
(
chart
)
const
xAxis
=
getXAxis
(
chart
)
const
yAxis
=
getYAxis
(
chart
)
const
yAxis
=
getYAxis
(
chart
)
// fix yAxis
yAxis
.
min
=
yAxis
.
minLimit
yAxis
.
max
=
yAxis
.
maxLimit
delete
yAxis
.
minLimit
delete
yAxis
.
maxLimit
// data
// data
const
data
=
chart
.
data
.
datas
const
data
=
chart
.
data
.
datas
// total
// total
...
@@ -67,7 +72,7 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) {
...
@@ -67,7 +72,7 @@ export function baseWaterfallOptionAntV(plot, container, chart, action) {
start
:
[{
trigger
:
'interval:mousemove'
,
action
:
'tooltip:show'
}],
start
:
[{
trigger
:
'interval:mousemove'
,
action
:
'tooltip:show'
}],
end
:
[{
trigger
:
'interval:mouseleave'
,
action
:
'tooltip:hide'
}]
end
:
[{
trigger
:
'interval:mouseleave'
,
action
:
'tooltip:hide'
}]
}
}
}
,
}
// {
// {
// type: 'active-region', cfg: {
// type: 'active-region', cfg: {
// start: [{ trigger: 'interval:mousemove', action: 'active-region:show' }],
// start: [{ trigger: 'interval:mousemove', action: 'active-region:show' }],
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
bf32ef61
...
@@ -385,11 +385,11 @@
...
@@ -385,11 +385,11 @@
<el-row>
<el-row>
<span
class=
"padding-lr"
>
{{
$t
(
'chart.module_style'
)
}}
</span>
<span
class=
"padding-lr"
>
{{
$t
(
'chart.module_style'
)
}}
</span>
<el-collapse
v-model=
"styleActiveNames"
class=
"style-collapse"
>
<el-collapse
v-model=
"styleActiveNames"
class=
"style-collapse"
>
<el-collapse-item
v-show=
"view.type && (view.type.includes('bar') || view.type.includes('line') || view.type.includes('scatter') || view.type === 'chart-mix')"
name=
"xAxis"
:title=
"$t('chart.xAxis')"
>
<el-collapse-item
v-show=
"view.type && (view.type.includes('bar') || view.type.includes('line') || view.type.includes('scatter') || view.type === 'chart-mix'
|| view.type === 'waterfall'
)"
name=
"xAxis"
:title=
"$t('chart.xAxis')"
>
<x-axis-selector
v-if=
"view.render && view.render === 'echarts'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeXAxisForm=
"onChangeXAxisForm"
/>
<x-axis-selector
v-if=
"view.render && view.render === 'echarts'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeXAxisForm=
"onChangeXAxisForm"
/>
<x-axis-selector-ant-v
v-else-if=
"view.render && view.render === 'antv'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeXAxisForm=
"onChangeXAxisForm"
/>
<x-axis-selector-ant-v
v-else-if=
"view.render && view.render === 'antv'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeXAxisForm=
"onChangeXAxisForm"
/>
</el-collapse-item>
</el-collapse-item>
<el-collapse-item
v-show=
"view.type && (view.type.includes('bar') || view.type.includes('line') || view.type.includes('scatter') || view.type === 'chart-mix')"
name=
"yAxis"
:title=
"view.type === 'chart-mix' ? $t('chart.yAxis_main') : $t('chart.yAxis')"
>
<el-collapse-item
v-show=
"view.type && (view.type.includes('bar') || view.type.includes('line') || view.type.includes('scatter') || view.type === 'chart-mix'
|| view.type === 'waterfall'
)"
name=
"yAxis"
:title=
"view.type === 'chart-mix' ? $t('chart.yAxis_main') : $t('chart.yAxis')"
>
<y-axis-selector
v-if=
"view.render && view.render === 'echarts'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeYAxisForm=
"onChangeYAxisForm"
/>
<y-axis-selector
v-if=
"view.render && view.render === 'echarts'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeYAxisForm=
"onChangeYAxisForm"
/>
<y-axis-selector-ant-v
v-else-if=
"view.render && view.render === 'antv'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeYAxisForm=
"onChangeYAxisForm"
/>
<y-axis-selector-ant-v
v-else-if=
"view.render && view.render === 'antv'"
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onChangeYAxisForm=
"onChangeYAxisForm"
/>
</el-collapse-item>
</el-collapse-item>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论