highcharts 如何增加乐队的高度?

ffscu2ro  于 2022-11-10  发布在  Highcharts
关注(0)|答案(1)|浏览(148)

我已经用下面的脚本创建了一个漏斗。

Highcharts.chart('container', {
    chart: {
        type: 'funnel'
    },
    title: {
        text: 'Sales funnel'
    },
    plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
                format: "Sales Chart:<br>{point.name}<br>Cart: {point.value:,.0f}<br>New Users: {point.unique:,.0f}<br>Total Orders Rate: {point.cr}%",
                softConnector: true,
                inside: true,
            },
            neckHeight: "0%",
                neckWidth: "80%",
                width: '15%',
                reversed: true,
        }
    },
    legend: {
        enabled: false
    },
    series: [{
    name: 'Unique users',
    keys: ["name", "y", "value", "unique", "did", "cr"],
    data: [
      ['Website visits', 1, 659, 541, '1', '1.31'],
      ['Downloads', 1, 392, 288, '38', '0.70'],
      ['Requested price list', 1, 562, 467, '101', '1.13'],
      ['Invoice sent', 1, 338, 282, '97', '0.68' ],
      ['Finalized', 1, 77, 59, '25', '0.14' ]
    ]
  }],
});

jsfiddle:https://jsfiddle.net/kiranuk/xhfbyj64/的参数值
乐队看起来很拥挤。我如何增加乐队的高度?

谢谢你的帮助。

flseospp

flseospp1#

您需要增加图表的高度。例如:

chart: {
    type: 'funnel',
    height: 600
  }

现场演示:https://jsfiddle.net/BlackLabel/a6sr93fo/
API引用:https://api.highcharts.com/highcharts/chart.height

相关问题