English 中文(简体)
添加额外右 树图
原标题:Apexchart Treemap adding extra right padding

我有使用阿普切特(Angular)的树图。 当筛查粉碎机尺寸时,该表在右面上添加了部分dding(~20px)。

我一直在尝试这么多不同的组合,但不幸的是,这种dding子并没有因某种原因消失。

任何帮助都经过计算。

“entertext

法典:

this.categoryChartOptions = {
  series: [{
    data: [
      {x:  New Delhi , y: 150},
      ...
    ]
  }],
  chart: {
    height: 320,
    type:  treemap ,
    foreColor:  white ,
    fontFamily: fontFamily,
    redrawOnParentResize: true,
    redrawOnWindowResize: true,
    parentHeightOffset: 0,
    toolbar: {show: false},
    selection: {enabled: false},
    animations: {enabled: true},
    offsetX: 0,
    offsetY: 0
  },
  legend: {show: false},
  title: {
    text:  Treemap ,
    align:  center ,
    style: {fontWeight:  normal , fontSize:  12 },
  },
  dataLabels: {
    enabled: true,
    style: {fontWeight:  normal , fontSize:  12 },
    formatter: (text, {value}) => [`${text}`, `$${value}`],
    offsetY: -4,
    dropShadow: {enabled: false}
  },
  grid: {
    show: false,
    padding: {top: 0, bottom: 0, right: 0, left: 0}
  },
  colors: [
     #3B93A5 , ...
  ],
  plotOptions: {
    treemap: {
      distributed: true,
      enableShades: false,
      useFillColorAsStroke: true,
    }
  },
  tooltip: {enabled: false}
};
问题回答

看看这一问题:https://github.com/apexcharts/apexcharts.js/issues/4011

利用这一问题解决了我的问题:

xaxis: {
      show: false,
      labels: {
        show: false,
      },
      axisBorder: {
        show: false,
      },
      axisTicks: {
        show: false,
      },
    },




相关问题
Angular matSort not working on Date column by desc

Trying to sort the material table with date column , date format is MM/DD/YYYY ,h:mm A , order of date is not by latest date and time. Anything which i missed from the below stackblitz code. https:/...

热门标签