Removing Value Labels and Markers from a specific series

Comments

4 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
  • Avatar
    Adarsh S (Edited )

    Hi , 

    I want to show legends for each line , but in top of each lines

    Thanks

    Adarsh

    0
    Comment actions Permalink
  • Avatar
    Marina Doria

    Hi!

    Instead of calling the series by their names, is there a way of calling them by the index they have in the widget. Example.

    var seriesName = sender.queryResult.series[0];

    I am translating the dashboard, and this is very important in order to have the functionality. 

    0
    Comment actions Permalink

Please sign in to leave a comment.