How to remove the horizontal lines of chart & its axis lines in angular?

后端 未结 2 402
离开以前
离开以前 2020-12-07 03:58

Following is an angular app with graphs made of apex charts

https://codesandbox.io/s/apx-column-distributed-d3ns7?from-embed

How can I remove the horizontal li

相关标签:
2条回答
  • 2020-12-07 04:10

    The grid-lines can be hidden using the following ways.

    grid: {
        show: false
    }
    

    or

    grid: {
        xaxis: {
            lines: {
                show: false
            }
        },   
        yaxis: {
            lines: {
                show: false
            }
        }
    }
    

    Edit: In your example, you were missing

      <apx-chart
        [grid]="chartOptions.grid"
      ></apx-chart>
    
    0 讨论(0)
  • 2020-12-07 04:21

    in your configuration add axisBorder and axisTicks configurations, I couldn't find how to remove the horizontal bars completely though. If I find it I will be back.

    xaxis
      categories: [
        ["John", "Doe"],
        ["Joe", "Smith"],
      ],
      axisBorder: {
        show: false
      },
      axisTicks: {
        show: false,
      },
    
    0 讨论(0)
提交回复
热议问题