Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
E
enterprise-opt-kit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fubaole
enterprise-opt-kit
Commits
eada1527
Commit
eada1527
authored
Jun 01, 2021
by
乐宝呗666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
饼图图例加滚动条
parent
b76c2b29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
barChart.vue
src/components/echarts/barChart.vue
+2
-1
pieChart.vue
src/components/echarts/pieChart.vue
+8
-1
No files found.
src/components/echarts/barChart.vue
View file @
eada1527
...
@@ -88,7 +88,8 @@ export default {
...
@@ -88,7 +88,8 @@ export default {
vm
.
option
.
dataZoom
=
[{
vm
.
option
.
dataZoom
=
[{
type
:
'inside'
,
type
:
'inside'
,
startValue
:
0
,
startValue
:
0
,
endValue
:
8
endValue
:
8
,
maxValueSpan
:
vm
.
message
.
xAxis
.
length
>
10
?
10
:
vm
.
message
.
xAxis
.
length
},
{
},
{
type
:
'slider'
,
type
:
'slider'
,
fillerColor
:
'#30DDF4'
,
fillerColor
:
'#30DDF4'
,
...
...
src/components/echarts/pieChart.vue
View file @
eada1527
...
@@ -34,8 +34,9 @@ export default {
...
@@ -34,8 +34,9 @@ export default {
trigger
:
'item'
,
trigger
:
'item'
,
formatter
:
'{b}: {c}'
+
unit
+
' ({d}%)'
formatter
:
'{b}: {c}'
+
unit
+
' ({d}%)'
},
},
color
:
[
'#30DDF4'
,
'#E23AA2'
,
'#F5A623'
,
'#D6FFBA'
,
'#9FFED7'
],
color
:
[
'#30DDF4'
,
'#E23AA2'
,
'#F5A623'
,
'#D6FFBA'
,
'#9FFED7'
,
'#4f19c7'
,
'#c71969'
,
'#1984c7'
,
'#c76919'
,
'#8419c7'
,
'#c79f19'
,
'#c71919'
,
'#c78419'
,
'#c719b9'
,
'#199fc7'
,
'#9f19c7'
,
'#69c719'
,
'#19c719'
],
legend
:
{
legend
:
{
type
:
'scroll'
,
orient
:
'vertical'
,
orient
:
'vertical'
,
data
:
vm
.
message
.
legend
,
data
:
vm
.
message
.
legend
,
left
:
10
,
left
:
10
,
...
@@ -43,6 +44,12 @@ export default {
...
@@ -43,6 +44,12 @@ export default {
textStyle
:
{
textStyle
:
{
color
:
'#ffffff'
color
:
'#ffffff'
},
},
pageIconColor
:
'#fff'
,
pageIconInactiveColor
:
'#30DDF4'
,
pageIconSize
:
12
,
pageTextStyle
:
{
color
:
'#fff'
},
icon
:
'circle'
,
// 这个字段控制形状类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
icon
:
'circle'
,
// 这个字段控制形状类型包括 circle,rect ,roundRect,triangle,diamond,pin,arrow,none
itemWidth
:
10
,
// 设置宽度
itemWidth
:
10
,
// 设置宽度
itemHeight
:
4
,
// 设置高度
itemHeight
:
4
,
// 设置高度
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment