Skip to content

Settings and activity

1 result found

  1. 31 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    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  ·