我在这里有一个问题图表的演示。
这是我用来生成高图的代码。当图表呈现时,它会切断 x 轴标签的 option2 吗?什么会导致这种情况?
我没有使用 step 参数,所以不应该有任何理由跳过标签...当您将鼠标悬停在栏上时,它会使用 mouseover 事件呈现 find 以显示类别名称,但它不会显示栏旁边的类别名称。
任何建议表示赞赏。
$(function () {
    prchart3 = new Highcharts.Chart({
        chart: {
            renderTo: 'prcont23',
            type: 'bar',
            width: 300,
            height: 180
        },
        title: {
            text: 'Test results'
        },
        xAxis: {
            categories: ['option1', 'option2', 'opt3'],
            title: {
                text: null
            }
        },
        yAxis: {
            min: 0,
            title: {
                text: '0 Total Votes',
                align: 'high'
            },
            labels: {
                overflow: 'justify'
            }
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
        legend: {
            enabled: false
        },
        exporting: {
            enabled: false
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'vote test',
            data: [20, 50, 1000]
        }]
    });
});