lb #17

Merged
gtz217 merged 29 commits from lb into master 2022-11-25 16:46:41 +08:00
3 changed files with 7 additions and 3 deletions
Showing only changes of commit ff0bda0dba - Show all commits

View File

@ -124,6 +124,7 @@ export default {
},
legend: {
selectedMode: false,
top: 0,
bottom: 0,
left: 0,
@ -208,6 +209,7 @@ export default {
series: [
{
silent: true,
name: 'PieForm',
type: 'pie',
center: ['68%', '61%'],

View File

@ -19,7 +19,7 @@ import { Random } from 'mockjs'
class ChartOption {
constructor() {
this.color = ['#1A99FF', '#F0D63C', '#E02094', '#559833']
this.color = ['#1A99FF', '#F0D63C', '#E02094', '#52FFF1']
this.legend = {
top: 28,
@ -271,7 +271,7 @@ class ChartOption {
colorStops: [
{
offset: 0,
color: '#55983366' // 0%
color: '#52FFF166' // 0%
},
{
offset: 1,

View File

@ -129,6 +129,7 @@ export default {
}
},
legend: {
selectedMode: false,
top: '12%',
bottom: 0,
left: 0,
@ -213,6 +214,7 @@ export default {
{
name: 'PieForm',
type: 'pie',
silent: true,
center: ['66%', '56%'],
radius: ['45%', '65%'],
avoidLabelOverlap: true,
@ -310,7 +312,7 @@ export default {
const fs18 = this.calcFontsize(18 /** px*/)
const fs20 = this.calcFontsize(20 /** px*/)
const legendTextFixWidth = this.calcFontsize(48 /** px*/)
const legnedTop = this.calcFontsize(64 /** px*/)
const legnedTop = this.calcFontsize(72 /** px*/)
const legendTopRate = this.calcFontsize(30 /** % */)
this.configs.title.text =