mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 18:46:36 +08:00
commit
This commit is contained in:
56
orange-demo-web/src/utils/chartOption.js
Normal file
56
orange-demo-web/src/utils/chartOption.js
Normal file
@@ -0,0 +1,56 @@
|
||||
const defaultLineChartOption = {
|
||||
grid: {
|
||||
left: '3%',
|
||||
right: '4%',
|
||||
bottom: '20px',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: {
|
||||
axisLabel: {
|
||||
interval: 0,
|
||||
showMaxLabel: true
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
top: '3%'
|
||||
}
|
||||
}
|
||||
|
||||
const defaultBarChartOption = {
|
||||
grid: {
|
||||
left: '3%',
|
||||
right: '4%',
|
||||
bottom: '20px',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: {
|
||||
axisLabel: {
|
||||
interval: 0,
|
||||
showMaxLabel: true
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
top: '3%'
|
||||
}
|
||||
}
|
||||
|
||||
const defaultPieChartOption = {
|
||||
grid: {
|
||||
left: '3%',
|
||||
right: '4%',
|
||||
bottom: '20px',
|
||||
containLabel: true
|
||||
},
|
||||
legend: {
|
||||
top: '3%'
|
||||
},
|
||||
series: {
|
||||
center: ['50%', '60%']
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
defaultLineChartOption,
|
||||
defaultBarChartOption,
|
||||
defaultPieChartOption
|
||||
}
|
||||
Reference in New Issue
Block a user