范围选择器输入字段不能在hide()show()之后编辑 [英] Range selector input fields can't edit after hide() show()

查看:103
本文介绍了范围选择器输入字段不能在hide()show()之后编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在选择器字段中发现了一些问题。在图表容器上使用jQuery hide()和show()方法后,它们无法更改。这是一个错误,或者我做错了什么?

I've found some issue with selectors fields. They can't be changed after using jQuery hide() and show() methods on chart container. Is this a bug, or I've do something wrong?

这是我的例子: http://jsfiddle.net/hal9000pro/jL3SX/

$(function(){
    $('#stock-mails-diagram').hide().
        highcharts('StockChart', {
            rangeSelector : {
                inputDateFormat:"%Y-%m-%d",
                inputEditDateFormat:"%Y-%m-%d"
            },

            title : {
                text : 'Emails sent per day'
            },
            series : [
            {
                name : 'mails sent',
                type: 'area',
                step: 'true',
                data : mails
            }],
            plotOptions:{
                area:{
                    dataLabels:{
                        enabled:false
                    }
                }
            }
        });
    $('#stock-mails-diagram').show();
});


推荐答案

可以使用此处的解决方法 http://www.highcharts.com/docs/frequently-asked-问题

Generally highcharts should be created in hidden div, so you can use workaround like here http://www.highcharts.com/docs/frequently-asked-questions

这篇关于范围选择器输入字段不能在hide()show()之后编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆