提交 a83864e1 authored 作者: junjie's avatar junjie

feat(视图): 漏斗图配置调整

上级 f891dc5a
......@@ -94,7 +94,7 @@ export const BASE_FUNNEL = {
{
name: '',
type: 'funnel',
left: '10%',
left: 'center',
top: 60,
bottom: 60,
width: '80%',
......
......@@ -15,6 +15,7 @@ export function baseFunnelOption(chart_option, chart) {
if (chart.data.series.length > 0) {
chart_option.series[0].name = chart.data.series[0].name
const valueArr = chart.data.series[0].data
chart_option.series[0].max = Math.max.apply(Math, valueArr)
for (let i = 0; i < valueArr.length; i++) {
const y = {
name: chart.data.x[i],
......
......@@ -53,7 +53,7 @@ export default {
} else if (chart.type === 'funnel') {
chart_option = baseFunnelOption(JSON.parse(JSON.stringify(BASE_FUNNEL)), chart)
}
// console.log(chart_option);
console.log(chart_option)
this.myEcharts(chart_option)
},
myEcharts(option) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论