Removing Value Labels And Markers From A Specific Series
Updated 03-02-2023
No problem DRay
The below updated code works in newer versions of Sisense can be used as a template to hide the labels of specific series in a line chart widget:
/******* user configuration **********/
// Change to name of series which labels should be hidden
var seriesName = "TestName";
/*************************************/
widget.on('processresult', function (sender, ev) {
var matchingSeries = _.find(ev.result.series, function (ser) { return ser.name == seriesName })
matchingSeries.dataLabels = {
enabled: false,
}
})
A screenshot of hiding one series labels in a line chart while other series are enabled:
This can be modified as needed to work with specific scenarios such as hiding multiple series.