export const ramDataOption = {
  // title: {
  //   text: '内存使用量',
  //   top: 'auto'
  // },
  // legend: {
  //   type: 'scroll'
  // },
  textStyle: {
    color: '#333',
    fontStyle: 'normal',
    fontSize: 8
  },
  xAxis: {
    nameTextStyle:{
      fontSize: 6
    },
    type: 'category',
    boundaryGap: false,
    data: [1, 2, 3, 4, 5, 6, 7],
    splitLine: {
      show: true,
      lineStyle: {
        color: '#d1a0de'
      }
    },
    axisLine: {
      lineStyle: {
        color: '#d1a0de',
        width: 1
      }
    },
    axisTick: {
      show: false,
      interval: 10
    }
  },
  grid: {
    z: 120,
    show: true,
    width: '99%',
    height: '90%',
    // width: 'auto', //图例宽度
    // height: 'auto', //图例高度
    left: '1%',
    right: '1%',
    bottom: '1%',
    top: '1%',
    containLabel: false,
    borderColor: '#d1a0de' ,
    borderWidth: 1
  },
  yAxis: {
    min: 0,
    max: 1,
    boundaryGap: false,
    type: 'value',
    splitLine: {
      show: true,
      lineStyle: {
        color: '#d1a0de'
      }
    },
    axisLine: {
      lineStyle: {
        color: '#d1a0de',
        width: 1
      }
    },
    offet: 5,
    name: '% 利用率',
    nameLocation: 'end',
    axisTick: {
      show: false
    }
  },
  axisLabel: {
    interval: 1
  },
  series: [
    {
      data: [0.44, 0.44, 0.44, 0.44, 0.44, 0.44, 0.44],
      type: 'line',
      areaStyle: {},
      areaStyle: {
        normal: {
          color: {
            type: 'linear', //设置线性渐变
            x: 0,
            y: 0,
            colorStops: [
              {
                offset: 0,
                color: '#f4f2f4' // 0% 处的颜色
              }
            ],
            globalCoord: false // 缺省为 false
          }
        }
      },
      itemStyle: {
        normal: {
          color: '#bad9eb', //改变折线点的颜色
          lineStyle: {
            color: '#d1a0de', //改变折线颜色,
            width: 1
          }
        }
      }
    }
  ]
};
