cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting the widgets

harish
8 - Cloud Apps
8 - Cloud Apps

I have created two pivot table widgets , when i am trying to export to pdf the gap between two widgets is more in the pdf , i want to reduce the gap between them , is there any script to reduce the gap between visuals.

harish_0-1705562596244.png

 

1 ACCEPTED SOLUTION

DRay
Community Team Member
Community Team Member

Right, and currently Dashboard scripts don't get run when exporting. If the script won't work, were you able to get good results by using the Space Around setting shown in the Styling doc I linked?

David Raynor (DRay)

View solution in original post

3 REPLIES 3

DRay
Community Team Member
Community Team Member

Hello @harish,

Thank you for participating in the Sisense Community!

I think this document may provide the spacing options you are looking for. 

You could also use a Dashboard script for more specific control using CSS.

Here is some sample code: 

dashboard.on('widgetready',function(d) {
   $('.dashboard-layout').css('padding-right', '20px');
   $('.dashboard-layout').css('padding-left', '20px');
});

 Please note that is sample code. Please consult a qualified developer before implementing this into production.

I hope that helps. Please let us know how it goes!

David Raynor (DRay)

harish
8 - Cloud Apps
8 - Cloud Apps

The above script is making changes in dashboard , i want to reduce the gap when i export it to PDF .

harish_0-1705641606492.png

 

DRay
Community Team Member
Community Team Member

Right, and currently Dashboard scripts don't get run when exporting. If the script won't work, were you able to get good results by using the Space Around setting shown in the Styling doc I linked?

David Raynor (DRay)