代码之家  ›  专栏  ›  技术社区  ›  user3616977

Extjs 6 .x:增加轴和轴标签之间的空间

  •  0
  • user3616977  · 技术社区  · 6 年前

    我正在使用extjs 6.0.1。我们想要增加轴和轴标签之间的空间(x和y轴)。

    这里的任何帮助都很好。

    Increase distance between axis & axis label

    1 回复  |  直到 6 年前
        1
  •  0
  •   Fabio Barros    6 年前

    只是使用 铁精氨酸 轴中的配置:

              axes: [{
                    type: 'numeric',
                    title: 'My Title',
                    titleMargin: 100,
                    fields: ['field1', 'field2'],
                    position: 'left',
                    grid: true
                }, {
                    type: 'category',
                    title: 'Period',
                    titleMargin: 100,
                    position: 'bottom',
                    fields: 'period_field',
                    label: {
                        rotate: {
                            degrees: -45
                        }
                    }                    
                }]