cancel
Showing results for 
Search instead for 
Did you mean: 

Scatter chart lines connecting data points suddenly not showing

francoisvv
8 - Cloud Apps
8 - Cloud Apps

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

1 ACCEPTED SOLUTION

taras
Sisense Team Member
Sisense Team Member

Hi @francoisvv , please update the script as follows:

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

 

Taras Skvarko
Technical Consultant

View solution in original post

2 REPLIES 2

taras
Sisense Team Member
Sisense Team Member

Hi @francoisvv , please update the script as follows:

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

 

Taras Skvarko
Technical Consultant

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

Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]