# 浮动柱状

¥Floating Bars

使用 [number, number][] 作为 data 的类型来定义每个柱的开始和结束值。这不是让每个柱都从 0 开始。

¥Using [number, number][] as the type for data to define the beginning and end value for each bar. This is instead of having every bar start at 0.

const config = {
  type: 'bar',
  data: data,
  options: {
    responsive: true,
    plugins: {
      legend: {
        position: 'top',
      },
      title: {
        display: true,
        text: 'Chart.js Floating Bar Chart'
      }
    }
  }
};

# 文档

¥Docs