javascript - highcharts 打印图表/图表上下文菜单不可点击

标签 javascript jquery css highcharts

我使用 highchart一切正常,除了图表打印按钮不可点击,下面是我的 Highcharts 实现和引用图像。有什么想法、线索、建议、推荐、帮助吗?

$('#chart_portfolio').highcharts({
                        chart: {
                        borderColor: '#ff0000',
                        width: null,
                        height: null
                        },
                        title: {
                            text: false,
                            x: -20 //center
                        },
                        xAxis: {
                            categories: portfolio_creation_date
                        },
                        yAxis: {
                            title: {
                                text: false
                            },
                            plotLines: [{
                                value: 0,
                                width: 1,
                                color: '#ff0000'
                            }]
                        },
                        tooltip: {
                                shared: true,
                                crosshairs: true
                            },  
                        series: [{
                            name: 'Future',
                            data: portfolio_future,
                            color: '#0f00ff'
                        }, {
                            name: 'In Grace Period',
                            data: portfolio_ingrace_period,
                            color: '#fda800'
                        }, {
                            name: 'Arrears',
                            data: portfolio_in_arrears,
                            color: '#f40404'
                        }, {
                            name: 'Good standing',
                            data: portfolio_good_standing,
                            color: '#4da74d'
                        }]
                    }); //end of highcharts 

发行引用图片

enter image description here

最佳答案

只需为该按钮设置更高的 zIndex:http://jsfiddle.net/9P5fC/488/

exporting: {
    buttons: {
        contextButton: {
            theme: {
                zIndex: 100   
            }
        }
    }
}

关于javascript - highcharts 打印图表/图表上下文菜单不可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31180875/

相关文章:

javascript - 我如何实现将多个用户作为收件人的类似 google 的撰写框,

javascript - 除了切换内容之外,关闭页面上任何位置的切换 div

php - 使用嵌套 AJAX 函数将新数据插入 MYSQL

javascript - jQuery - 在 $(this) 上切换类并删除所有其他类

css - 在 IE 中显示下拉列表时遇到问题

javascript - Angular js 无法识别我的应用程序?

javascript - Angular 属性绑定(bind)循环超过应有的范围

jquery - 单击 div 上的任意位置而不是直接单击 Link

javascript - Framework7 和单页应用程序 : preload all pages

php - 更多 PHP 站点和一个模板