javascript - 在 Highcharts 中以百分比设置列宽

标签 javascript highcharts

<分区>

如何在highcharts中设置列宽百分比

options = {
        chart: {
            renderTo: 'container',
            type: 'column'
        },
        title: {
            text: 'Data extracted from a HTML table in the page'
        },
        xAxis: {
        },
        yAxis: {
            title: {
                text: 'Units'
            }
        },
        tooltip: {
            formatter: function() {
                return '<b>'+ this.series.name +'</b><br/>'+
                    this.y +' '+ this.x.toLowerCase()+''+this.percentage;
            }
        },
         plotOptions: {
            column: {
                pointWidth: 50
            }

        }
    };

最佳答案

很遗憾,不支持百分比点宽度。

关于javascript - 在 Highcharts 中以百分比设置列宽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14849930/

相关文章:

javascript - 从使用 React Native 中的映射函数渲染的组件的父级调用子方法

javascript - 可观察的自定义映射函数

javascript - Highcharts 错误 "cannot read property of undefined"

javascript - 使用 Highcharts 构建仪表板

javascript - 使用 HighCharts 格式化数据点和 Y 轴标签

javascript - 如何更改标签的文本?

javascript - JS 对象属性继承

javascript - backbone.js model.save 没有设置 id

javascript - 为什么 HighChart 会挂起浏览器?

css - Highcharts 中的工具提示文本对齐方式为 'direction: rtl'