Skip to content

Commit

Permalink
Merge pull request #12 from zprobot/main
Browse files Browse the repository at this point in the history
border
  • Loading branch information
ypriverol authored Aug 5, 2023
2 parents 7b9102b + a59c6ee commit b9d655e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/components/AeShow/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,19 @@ const options = {
].join('')
}
},
color: tagsColor,
// color: tagsColor,
legend: {
show: true,
orient: 'vertical',
right: 10,
top: 60,
data: []
// bottom: 20,
},
grid: {
left: '10%',
right: '10%',
bottom: '5%'
bottom: '7%'
},
yAxis: {
type: 'category',
Expand Down Expand Up @@ -314,8 +315,8 @@ const init = () => {
itemStyle: {
color: tagsColor[0],
color0: '#FA0000',
borderColor: null,
borderColor0: null
borderColor: '#030609',
borderColor0: '#030609'
},
})
} else {
Expand All @@ -342,6 +343,7 @@ const init = () => {
})
options.dataset = []
options.series = []
options.legend.data = []
datas.forEach((item,index) => {
options.dataset.push({
source: item
Expand All @@ -353,10 +355,17 @@ const init = () => {
itemStyle: {
color: tagsColor[index],
color0: '#FA0000',
borderColor: null,
borderColor0: null
borderColor: '#030609',
borderColor0: '#030609'
},
})
options.legend.data.push({
name: proteinTags.value[index],
itemStyle: {
color: tagsColor[index],
borderColor: tagsColor[index]
}
})
})
datas.forEach((item, index) => {
options.dataset.push({
Expand Down

0 comments on commit b9d655e

Please sign in to comment.