-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30c9615
commit 53ad0e2
Showing
10 changed files
with
119 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default [ | ||
{ | ||
title: '漏斗图-基础漏斗', | ||
title: '漏斗图', | ||
routeName: 'BasicFunnelDemo', | ||
showItem: true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
packages/bi-chart/components/basic-chart/chart-option/funnel/basic-arrow-funnel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export default { | ||
color: ['#FFC420', '#646b7a', '#2ED4A9', '#FF7125', '#0056FF'], | ||
title: { | ||
text: '尖漏斗', | ||
top: '28px', | ||
left: '28px', | ||
textStyle: { | ||
color: '#242934', | ||
fontSize: 16, | ||
fontFamily: 'PingFangSC-Semibold, "PingFang SC"' | ||
} | ||
}, | ||
tooltip: { | ||
show: true, | ||
trigger: 'item', | ||
formatter: '{b} : {c}条', | ||
textStyle: { | ||
fontFamily: 'Montserrat-Regular, Montserrat' | ||
} | ||
}, | ||
series: [ | ||
{ | ||
type: 'funnel', | ||
top: 100, | ||
left: '25%', | ||
width: '55%', | ||
min: 0, | ||
max: 100, | ||
minSize: '0%', // 漏斗最小值的宽度 | ||
maxSize: '100%', // 漏斗最大值的宽度 | ||
sort: 'descending', // 漏斗数据降序排列, ascending 升序 | ||
gap: 2, | ||
label: { | ||
show: true, // 显示漏斗每部分名称 | ||
position: 'left', | ||
fontSize: 14, | ||
color: '#646B7A' | ||
}, | ||
labelLine: { | ||
normal: { | ||
show: false, // 是否显示引导线 | ||
length: 50 // 视觉引导线长度。 | ||
} | ||
}, | ||
data: [ | ||
{ value: 50, name: 'Visit' }, | ||
{ value: 70, name: 'Inquiry' }, | ||
{ value: 80, name: 'Order' }, | ||
{ value: 90, name: 'Click' }, | ||
{ value: 100, name: 'Show' } | ||
] | ||
} | ||
] | ||
} | ||
|
2 changes: 1 addition & 1 deletion
2
packages/bi-chart/components/basic-chart/chart-option/funnel/basic-funnel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/bi-chart/components/basic-chart/chart-option/funnel/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as basicFunnel } from './basic-funnel' | ||
export { default as basicFunnel } from './basic-funnel' | ||
export { default as basicArrowFunnel } from './basic-arrow-funnel' |
21 changes: 21 additions & 0 deletions
21
packages/bi-chart/components/basic-chart/chart-option/pie/basic-two-rose-pie.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { colorToolTipLegend, labelEmphasis } from './basic' | ||
|
||
export default { | ||
...colorToolTipLegend, | ||
series: [ | ||
{ | ||
name: 'Nightingale Chart', | ||
type: 'pie', | ||
radius: ['60', '90'], | ||
minAngle: 20, | ||
center: ['30%', '52.5%'], | ||
avoidLabelOverlap: false, | ||
roseType: 'area', | ||
...labelEmphasis, | ||
data: [ | ||
{ value: 70, name: 'rose 1' }, | ||
{ value: 90, name: 'rose 2' }, | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters