Forum Discussion

francoisvv's avatar
francoisvv
Cloud Apps
09-27-2022
Solved

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;
    });

     

2 Replies

Replies have been turned off for this discussion
  • taras's avatar
    taras
    Sisense Employee

    Hi francoisvv , please update the script as follows:

    widget.on('beforeviewloaded', function(se, ev) {
        ev.options.plotOptions.series.lineWidth = 2;
    });

     

    • francoisvv's avatar
      francoisvv
      Cloud Apps

      Worked like a charm! Thanks a million for this valuable information!!