@@ -26,12 +26,17 @@ export default {
option: {
xAxis: {
name: "任务数量",
+ nameTextStyle: {
+ padding: [25, 0, 0, 0],
+ verticalAlign:'top'
+ },
+ nameGap: -45
},
grid: {
top: "10%",
left: "5%",
- right: "20%",
- bottom: "5%",
+ right: "5%",
+ bottom: "6%",
containLabel: true,
yAxis: {
@@ -16,8 +16,39 @@ export default {
return {
chartObj: null,
- xAxis: {},
- yAxis: {},
+ xAxis: {
+ name: "任务数量",
+ yAxis: {
+ name: "作业提交数量",
+ color: ["#3681FC"],
+ tooltip: {
+ formatter: function (params) {
+ return (
+ params.marker +
+ params.data[2] +
+ "<br/>" +
+ "任务数量:" +
+ params.data[0] +
+ "作业提交数量:" +
+ params.data[1]
+ );
+ grid: {
+ top: '30',
+ left: '5%',
+ right: '5%',
+ bottom: '6%',
+ containLabel: true
color: ["#3681FC"],
series: [
{