Newer
Older
KaiFengPC / src / views / dataAnalysis / syntheticData / chartYs.js
@zhangdeliang zhangdeliang on 23 May 948 bytes 初始化项目
  1. // 多Y轴折线图
  2. let chartOptionYs = {
  3. color: [], //颜色设置
  4. grid: {
  5. left: '5%',
  6. right: '2%',
  7. bottom: '2%',
  8. top: '13%',
  9. containLabel: true,
  10. },
  11. tooltip: {
  12. trigger: 'axis',
  13. axisPointer: {
  14. type: 'cross',
  15. },
  16. },
  17. legend: {
  18. data: ['巡查次数', '巡查次数2'],
  19. selected: {},
  20. left: '3%',
  21. right: '3%',
  22. type: 'scroll',
  23. textStyle: {
  24. color: '#fff',
  25. },
  26. pageIconColor: 'red', //图例分页左右箭头图标颜色
  27. pageTextStyle: {
  28. color: 'red', //图例分页页码的颜色设置
  29. },
  30. pageIconSize: 12, //当然就是按钮的大小
  31. pageButtonItemGap: -2, //翻页按钮的两个之间的间距
  32. pageIconInactiveColor: '#7f7f7f', // 禁用的按钮颜色
  33. },
  34. xAxis: {
  35. type: 'category',
  36. data: [],
  37. axisTick: {
  38. show: false,
  39. },
  40. boundaryGap: false,
  41. },
  42. yAxis: [],
  43. series: [],
  44. };
  45. export default chartOptionYs;