|
|
@@ -13,7 +13,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
if(chartType === 'bar' || chartType === 'line' || chartType === 'scatter') {
|
|
|
return legendVisible ? [{
|
|
|
query: { minWidth: 1000, minHeight: 1000 }, // I
|
|
|
- option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', width: '35%' }, grid: { right: '20%'} }
|
|
|
+ option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', height: '80%', width: '35%' }, grid: { right: '20%'} }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, minHeight: 1000 }, // H
|
|
|
option: !dataZoomVisible ? { legend: { type: 'scroll', right: 'center', bottom: 50, orient: 'horizontal', width: '90%' }, } :
|
|
|
@@ -24,7 +24,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
{ legend: { type: 'scroll', right: 'center', top: 50, orient: 'horizontal', width: '90%' }, }
|
|
|
}, {
|
|
|
query: { minWidth: 1000, maxHeight: 1000 }, // F
|
|
|
- option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', width: '35%' }, grid: { right: '16%' } }
|
|
|
+ option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', height: '80%', width: '35%' }, grid: { right: '16%' } }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, maxHeight: 1000 }, // E
|
|
|
option: !dataZoomVisible ? { legend: { type: 'scroll', right: 'center', bottom: 50, orient: 'horizontal', width: '90%' }, } :
|
|
|
@@ -35,7 +35,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
{ legend: { type: 'scroll', right: 'center', top: 0, orient: 'horizontal', width: '90%' }, }
|
|
|
}, {
|
|
|
query: { minWidth: 1000, maxHeight: 500 }, // C
|
|
|
- option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', width: '35%' }, grid: { right: '20%'} }
|
|
|
+ option: { legend: { type: 'scroll', top: 50, right: 50, orient: 'vertical', height: '80%', width: '35%' }, grid: { right: '20%'} }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, maxHeight: 500 }, // B
|
|
|
option: !dataZoomVisible ? { legend: { type: 'scroll', right: 'center', bottom: 0, orient: 'horizontal', width: '90%' }, grid: { top: 50, left: 80, right: 80 } } :
|
|
|
@@ -48,7 +48,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
}else if(chartType === 'pie') {
|
|
|
return [{
|
|
|
query: { minWidth: 1000, minHeight: 1000 }, // I
|
|
|
- option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
+ option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', height: '80%', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, minHeight: 1000 }, // H
|
|
|
option: { legend: { type: 'scroll', right: 'center', bottom: 50, orient: 'horizontal', width: '90%' }, series: [{ radius: [0, '55%'], center: ['50%', '40%'] }] }
|
|
|
@@ -57,7 +57,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
option: { legend: { type: 'scroll', right: 'center', bottom: 50, orient: 'horizontal', width: '90%' }, series: [{ radius: [0, '65%'], center: ['50%', '55%'] }] }
|
|
|
}, {
|
|
|
query: { minWidth: 1000, maxHeight: 1000 }, // F
|
|
|
- option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
+ option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', height: '80%', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, maxHeight: 1000 }, // E
|
|
|
option: { legend: { type: 'scroll', right: 'center', bottom: 50, orient: 'horizontal', width: '90%' }, series: [{ radius: [0, '55%'], center: ['50%', '40%'] }] }
|
|
|
@@ -66,7 +66,7 @@ export default function(chartType, legendVisible, dataZoomVisible) {
|
|
|
option: { legend: { type: 'scroll', right: 'center', bottom: 0, orient: 'horizontal', width: '90%' }, series: [{ radius: [0, '55%'], center: ['50%', '40%'] }] }
|
|
|
}, {
|
|
|
query: { minWidth: 1000, maxHeight: 500 }, // C
|
|
|
- option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
+ option: { legend: { type: 'scroll', top: 'center', right: 50, orient: 'vertical', height: '80%', width: '35%' }, series: [{ radius: [0, '65%'], center: ['35%', '50%'] }] }
|
|
|
}, {
|
|
|
query: { maxWidth: 1000, maxHeight: 500 }, // B
|
|
|
option: { legend: { type: 'scroll', right: 'center', bottom: 0, orient: 'horizontal', width: '90%' }, series: [{ radius: [0, '65%'], center: ['50%', '45%'] }] }
|