小编Niv*_*han的帖子

如何隐藏顶点图表上的x轴栏?

我使用react-apexcharts来制作下面的图表,我需要显示图表的最小视图,所以我隐藏x、y轴、图例、网格和所有内容,但底部的这个栏没有隐藏。我在文档中找不到正确的选项!有什么办法可以隐藏这个吗?

这是我得到的当前输出!

电流输出

const ProductivityGraph = () => {
  const series = [{
    name: 'Series A',
    data: [23, 24, 25, 15, 25, 28, 38, 46],
  },
  {
    name: 'Series B',
    data: [20, 29, 37, 36, 44, 45, 50, 58],
  },
  ];
  const options:any = {
    chart: {
      toolbar: { // Hamburger menu at top
        show: false,
      },
      height: 350,
      type: 'line',
      zoom: {
        enabled: false,
      },
    },
    dataLabels: {
      enabled: false,
    },
    stroke: {
      curve: 'smooth',
      width: 2,
    }, …
Run Code Online (Sandbox Code Playgroud)

charts reactjs apexcharts

4
推荐指数
1
解决办法
7620
查看次数

标签 统计

apexcharts ×1

charts ×1

reactjs ×1