小编Nur*_*sad的帖子

如何隐藏高图x轴数据值

我正在绘制条形图 highchart.js

我不想显示x轴数据值.

谁能告诉我哪个选项呢?
完整配置:

var chart = new Highcharts.Chart({
                chart: {
                    renderTo: container,
                    defaultSeriesType: 'bar'
                },
                title: {
                    text: null
                },
                subtitle: {
                    text: null
                },
                xAxis: {
                    categories: [''],
                    title: {
                        text: null
                    },
                    labels: {enabled:true,y : 20, rotation: -45, align: 'right' }

                },
                yAxis: {
                    min: 0,
                    gridLineWidth: 0,
                    title: {
                        text: '',
                        align: 'high'
                    }
                },
                tooltip: {
                    formatter: function () {
                        return '';
                    }
                },
                plotOptions: {
                    bar: {
                        dataLabels: {
                            enabled: true
                        },
                        pointWidth: …
Run Code Online (Sandbox Code Playgroud)

javascript jquery charts bar-chart highcharts

47
推荐指数
3
解决办法
9万
查看次数

标签 统计

bar-chart ×1

charts ×1

highcharts ×1

javascript ×1

jquery ×1