Newer
Older
KaiFengPC / src / views / dataAnalysis / syntheticData / chartYs.js
@zhangdeliang zhangdeliang on 23 May 948 bytes 初始化项目
// 多Y轴折线图
let chartOptionYs = {
  color: [], //颜色设置
  grid: {
    left: '5%',
    right: '2%',
    bottom: '2%',
    top: '13%',
    containLabel: true,
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
    },
  },
  legend: {
    data: ['巡查次数', '巡查次数2'],
    selected: {},
    left: '3%',
    right: '3%',
    type: 'scroll',
    textStyle: {
      color: '#fff',
    },
    pageIconColor: 'red', //图例分页左右箭头图标颜色
    pageTextStyle: {
      color: 'red', //图例分页页码的颜色设置
    },
    pageIconSize: 12, //当然就是按钮的大小
    pageButtonItemGap: -2, //翻页按钮的两个之间的间距
    pageIconInactiveColor: '#7f7f7f', // 禁用的按钮颜色
  },
  xAxis: {
    type: 'category',
    data: [],
    axisTick: {
      show: false,
    },
    boundaryGap: false,
  },
  yAxis: [],
  series: [],
};
export default chartOptionYs;