修改测试问题
This commit is contained in:
@@ -43,6 +43,7 @@ const initChart = () => {
|
||||
left: 'center',
|
||||
// textStyle: {
|
||||
color: '#000',
|
||||
top: 5,
|
||||
textStyle: {
|
||||
color: '#000',
|
||||
fontSize: '15'
|
||||
@@ -66,7 +67,7 @@ const initChart = () => {
|
||||
},
|
||||
toolbox: {
|
||||
right: 20,
|
||||
top: 15,
|
||||
top: props.options?.title?.text ? 20 : 0,
|
||||
feature: {
|
||||
saveAsImage: {
|
||||
title: '下载图片',
|
||||
@@ -78,10 +79,11 @@ const initChart = () => {
|
||||
...(props.options?.toolbox || null)
|
||||
},
|
||||
legend: {
|
||||
right: 50,
|
||||
top: 25,
|
||||
right: 100,
|
||||
top: props.options?.title?.text ? 25 : 5,
|
||||
itemGap: 10,
|
||||
itemStyle: {},
|
||||
type: 'scroll', // 开启滚动分页
|
||||
// textStyle: {
|
||||
fontSize: 12,
|
||||
// padding: [2, 0, 0, 0], //[上、右、下、左]
|
||||
@@ -91,7 +93,7 @@ const initChart = () => {
|
||||
...(props.options?.legend || null)
|
||||
},
|
||||
grid: {
|
||||
top: '50px',
|
||||
top: props.options?.title?.text ? '50px' : '25px',
|
||||
left: '30px',
|
||||
right: '70px',
|
||||
bottom: props.options?.options?.dataZoom === null ? '10px' : '40px',
|
||||
|
||||
Reference in New Issue
Block a user