Highcharts: Visible does not work

Asked

Viewed 95 times

1

I’m trying to remove the Xaxis with visible: false as shown in documentation, but it’s not working.

The version of Jquery is: v1.10.2 (2013-07-03). The Highcharts version is: v4.0.3 (2014-07-03)

Excerpt from my graphic JS code:

    $('#container').highcharts({
            chart: {
                type: 'spline'
            },
            credits:{
                enabled: false
            },
            title: {
                text: 'Relatório'
            },

            subtitle: {
                text: 'Estatística de Desempenho'
            },

            xAxis:{
            visible: false
            },

            yAxis: {
                allowDecimals: false,
                title: {
                    text: 'Fruit'
                }
            },

            series: [{
                name: 'Tendência',
                data: <?php echo $encodeValorTendencia; ?>
            }, {
                name: 'Obtenção',
                data: <?php echo $encodeValorObtencao; ?>
            }],

            legend: {
                align: 'center',
                verticalAlign: 'bottom'
            },

            tooltip: {
                shared: true
            },

            plotOptions: {
                series: {
                    animation: {
                        duration: 8000
                    }
                }
            }
        });

1 answer

3


  • This solved, but only when I call by https://code.highcharts.com/highcharts.js, but if I lower the contents of this address, and call a directory file, the graph works, however, the Visible function does not work. Do you have any idea what it might be?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.