{
  "title": {
    "show": true,
    "text": "利润统计",
    "left": "left",
    "padding": [5,20,5,20],
    "textStyle": {
      "fontSize": 18,
      "fontWeight": "bolder",
      "color": "#c23531"
    }
  },
  "legend": {
    "show": true,
    "data": [ "利润", "支出", "收入"],
    "top": "top",
    "left": "center",
    "orient": "horizontal",
    "padding":[25,20,25,10],
    "textStyle": {
      "color":  "#333",
      "fontSize": 12
    }
  },
  "grid": {
    "left": 60,
    "top": 60,
    "right": 60,
    "bottom": 60
  },
  "tooltip": {
    "show":true,
    "trigger":"axis",
    "axisPointer": {
      "type": "shadow"
    },
    "textStyle":{
      "color":"#fff",
      "fontSize": 18
    }
  },
  "xAxis": {
    "show":true,
    "type ": "value",
    "splitLine":{
      "show":true,
      "lineStyle":{
        "color":"red",
        "width":1,
        "type":"solid"
      }
    },
    "axisLabel":{
      "textStyle":{
        "fontSize":12,
        "color": "#333"
      }
    },
    "axisLine": {
      "lineStyle": {
        "color": "#333"
      }
    }
  },
  "yAxis": {
    "show":true,
    "type": "category",
    "splitLine":{
      "show":false,
      "lineStyle":{
        "color":"red",
        "width":1,
        "type":"solid"
      }
    },
    "axisLabel":{
      "interval":"auto",
      "rotate":0,
      "textStyle":{
        "fontSize":12,
        "color": "#333"
      }
    },
    "axisLine": {
      "lineStyle": {
        "color": "#333"
      }
    },
    "data": ["周一", "周二", "周三", "周四", "周五", "周六", "周日"]
  },
  "series": [
    {
      "name": "利润",
      "type": "bar",
      "stack": "利润",
      "label": {
        "show": true,
        "position": "inside"
      },
      "barWidth": 25,
      "barMinHeight": 2,
      "itemStyle": {
        "barBorderRadius":0,
        "color":""
      },
      "data": [200, 170, 240, 244, 200, 220, 210]
    },
    {
      "name": "收入",
      "type": "bar",
      "stack": "总量",
      "label": {
        "show": true
      },
      "barWidth": 25,
      "barMinHeight": 2,
      "itemStyle": {
        "barBorderRadius":0,
        "color":""
      },
      "data": [320, 302, 341, 374, 390, 450, 420]
    },
    {
      "name": "支出",
      "type": "bar",
      "stack": "总量",
      "label": {
        "show": true,
        "position": "left"
      },
      "barWidth": 5,
      "barMinHeight": 2,
      "itemStyle": {
        "barBorderRadius":0,
        "color":""
      },
      "data": [-120, -132, -101, -134, -190, -230, -210]
    }
  ]
}
