【问题标题】:How to place the x-axis of chart at the top instead bottom?我如何解决它? Chartjs
【发布时间】:2022-10-09 16:24:28
【问题描述】:

我希望第一个图表转到第二个图表的 X 轴。不在边界线以下编号。

我会附上源代码。

请帮我。

current chart

want chart

      borderSkipped: false,
      indexAxis: 'y',
      // aspectRatio: 4,
      scales: {
        y: {          
          beginAtZero: true
          // suggestedMax: 24,          
        },
        x: {          
          suggestedMax: 24,          
          ticks: {
            stepSize: 1            
          }
        }        
      }
    },

【问题讨论】:

    标签: chart.js


    【解决方案1】:

    尝试添加到 scales.x.position :'top'

    【讨论】:

      猜你喜欢
      • 2022-10-26
      • 2019-02-18
      • 2017-10-28
      • 2023-01-29
      • 1970-01-01
      • 2022-09-30
      • 1970-01-01
      • 2011-03-31
      相关资源
      最近更新 更多