fixed issue 183

pull/109/head
Caozhenhui 2022-01-04 11:53:31 +08:00
parent 4d5e58f9cf
commit 827d42e898
5 changed files with 15 additions and 5 deletions

View File

@ -35,7 +35,9 @@ const getOption = (data, isDark) => {
type: 'pie', type: 'pie',
radius: ['100%', '87%'], radius: ['100%', '87%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: false, emphasis: {
scale: false
},
itemStyle: { itemStyle: {
borderWidth: 2, borderWidth: 2,
borderColor: isDark ? '#0E1C2F' : '#fff' borderColor: isDark ? '#0E1C2F' : '#fff'

View File

@ -35,7 +35,9 @@ const getOption = (data, isDark) => {
type: 'pie', type: 'pie',
radius: ['100%', '87%'], radius: ['100%', '87%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
hoverAnimation: false, emphasis: {
scale: false
},
itemStyle: { itemStyle: {
borderWidth: 2, borderWidth: 2,
borderColor: isDark ? '#0E1C2F' : '#fff' borderColor: isDark ? '#0E1C2F' : '#fff'

View File

@ -64,7 +64,9 @@ const getOption = (data, isDark) => {
borderColor: themeColors.primary, borderColor: themeColors.primary,
borderWidth: 2 borderWidth: 2
}, },
hoverAnimation: true, emphasis: {
scale: true
},
data: data, data: data,
connectNulls: true, connectNulls: true,
smooth: 0.6, smooth: 0.6,

View File

@ -95,7 +95,9 @@ const getOption = (month, isDark) => {
symbol: 'circle', symbol: 'circle',
symbolSize: 10, symbolSize: 10,
smooth: false, smooth: false,
hoverAnimation: true, emphasis: {
scale: true
},
areaStyle: { areaStyle: {
color: { color: {
type: 'linear', type: 'linear',

View File

@ -140,7 +140,9 @@ const lineChartCode = `function linechartExample(){
borderColor: themeColors.primary, borderColor: themeColors.primary,
borderWidth: 2 borderWidth: 2
}, },
hoverAnimation: true, emphasis: {
scale: true
},
data: totalOrderData, data: totalOrderData,
connectNulls: true, connectNulls: true,
smooth: 0.6, smooth: 0.6,