Removing Value Labels and Markers from a specific series

Comments

2 comments

  • Avatar
    Dustin

    Works Great, thank you.

    0
    Comment actions Permalink
  • Avatar
    Dan Chalmers

    Hi Arik,

    I am trying to use this on a basic column chart, with a break-by clause - but no luck.

    Could you confirm this still work in V6 for break-by?

    My script is;


    widget.on("beforeloadedview",function(w,args){
    var seriesToRemoveMarkerFrom = ['x1,'x2','x3','x4'];

    var seriesWithoutMarkers = _.filter(args.options.series,function(ser){
    return (seriesToRemoveMarkerFrom.indexOf(ser.name) > -1);
    });

    if(seriesWithoutMarkers.length > 0){
    seriesWithoutMarkers.forEach(function(s){
    s.marker = {enabled : false};
    }) ;
    }}

    );

     

    Furthermore, the issue for me comes when their is more than 1 break-by's selected. So, I'd like to add logic of;

    if(args.result.series.length > 1){   }

    Do you see any issues?

    0
    Comment actions Permalink

Please sign in to leave a comment.