Scatter chart lines connecting data points suddenly not showing
I use a script to connect the data points on a scatter chart. The script worked fine, but since this morning, the line connecting the points on the scatter chart does not show. When I go to EDIT WIDGET, it then displays and when I click APPLY, it then displays but only until you refresh the dashboard or change a filter on the dashboard, when the line disappears again. Any advice would be greatly appreciated!
The script I use on the widget is the following:
widget.on('processresult', function(se,ev){
ev.result.plotOptions.series.dataLabels.formatter = function(){
var temp = this.point.pointText.toString().substring(4,7) + '<br><b>' +this.point.breakByValue + '</b>';
return temp;
};
});
widget.on('render', function(se, ev){
se.queryResult.plotOptions.series.lineWidth = 2;
});
Hi francoisvv , please update the script as follows:
widget.on('beforeviewloaded', function(se, ev) { ev.options.plotOptions.series.lineWidth = 2; });