簡體   English   中英

如何在 Apex 圖表中設置 BoxPlot 圖表中框的寬度?

[英]How to set the width of the box in BoxPlot chart in Apex charts?

我在 Angular 項目中使用apexcharts(版本 3.35.3)並想設置框的寬度。 我瀏覽了 apexcharts 的文檔,沒有看到任何設置框寬度的選項。

是否有任何選項可以減小 BoxPlot 圖表中框的寬度? 或任何解決方法?

參考圖片: 在此處輸入圖像描述

要解決它,您必須在選項和帶有 columnWidth 屬性的內部欄中添加plotOptions標記。 默認值為 70%

plotOptions: {
    bar: {
      columnWidth: "40%"
      // columnWidth: "70%"
    }
  }

Apexcharts 文檔

代碼沙盒解決方案

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM