Forum Discussion

harish's avatar
harish
Cloud Apps
01-18-2024
Solved

Formatting the widgets

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.

 

  • DRay's avatar
    DRay
    01-19-2024

    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?

3 Replies

Replies have been turned off for this discussion
  • 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!

    • harish's avatar
      harish
      Cloud Apps

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

       

      • DRay's avatar
        DRay
        Admin

        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?