Settings and activity

1 result found

  1. 31 votes
    How important is this to you?
    An error occurred while saving the comment
    Stephan Brugger commented  · 

    I did it this way:

    function callback(chart){
    var text = chart.renderer.text('Hide / Show all', xPos, yPos);
    text.add() ;
    text.css({
    'cursor':'pointer',
    'color': '#3E576F'
    });
    text.on('click',function(){
    for(var i = 0; i < chart.series.length; i++) {
    var series = chart.series[i];
    if (series.visible) {
    series.hide();
    } else {
    series.show();
    }
    }
    });
    }

    Stephan Brugger supported this idea  ·