隐藏X轴下方图例 - 图1

基本配置

  1. legend:false

完整配置

  1. new uCharts({
  2. $this:_self,
  3. canvasId: canvasId,
  4. type: 'line',
  5. fontSize:11,
  6. legend:false,
  7. dataLabel:true,
  8. dataPointShape:true,
  9. background:'#FFFFFF',
  10. pixelRatio:_self.pixelRatio,
  11. categories: chartData.categories,
  12. series: chartData.series,
  13. animation: true,
  14. xAxis: {
  15. type:'grid',
  16. gridColor:'#CCCCCC',
  17. gridType:'dash',
  18. dashLength:8
  19. },
  20. yAxis: {
  21. gridType:'dash',
  22. gridColor:'#CCCCCC',
  23. dashLength:8,
  24. splitNumber:5,
  25. min:10,
  26. max:180,
  27. format:(val)=>{return val.toFixed(0)+'元'}
  28. },
  29. width: _self.cWidth*_self.pixelRatio,
  30. height: _self.cHeight*_self.pixelRatio,
  31. extra: {
  32. lineStyle: 'straight'
  33. }
  34. });